On Tue, 13 Jan 2015, Luís Filipe Nassif wrote:
I would like to load a custom-mimetypes.xml file from a directory, not
from the jar files. Is it possible?
Yup, I do it quite often when testing
Just make sure that you have a directory structure like:
somewhere/org/apache/tika/mime/custom-mimetypes.xml
Then ensure that that "somewhere" is on your classpath, eg
find test-mimetypes -type f
test-mimetypes/org/apache/tika/mime/custom-mimetypes.xml
java -classpath tika-app-1.8-SNAPSHOT.jar:test-mimetypes
org.apache.tika.cli.TikaCLI --detect foo.bin
That'll run the tika app, along with your additional custom mimetype
definition from the "test-mimetypes" directory
Nick