Do you all have any opinions about which class loader to use to load the
tika-config.xml file? I used the one I was more familiar with, but Sami
brought up a question about it (see below). Someone else I spoke with
suggested using both classloaders (try #1, if it fails, try #2).
- Keith
Sami Siren-2 wrote:
>
> kbennett wrote:
>
>> Is there another way we can specify the location of the config.xml file
>> that
>> would be more reliable? Maybe by the following?:
>>
>> URL configUrl = this.getClass().getResource("/config.xml");
>
> This sounds like a good direction to me, I would however use a context
> classloader to find the resource and not a static one.
>
--
View this message in context:
http://www.nabble.com/TestParser-Fails-to-Find-config.xml-tf4418767.html#a13177786
Sent from the Apache Tika - Development mailing list archive at Nabble.com.