Thank you guys. But with TikaConfig I think I need to redefine all default mimetypes?
And Nick, any alternative to this package like path? I have used it before but I think it is a bit unfriendly to be edited by the final user. Thank you again, Luis Em 13/01/2015 06:47, "Nick Burch" <[email protected]> escreveu: > 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
