Well, the error was on the other side of the screen. This works perfectly well with fileUrl, I only had a typo in my path.

On 07/08/2014 11:37, Alexandre Patry wrote:
Hi,

I would like to locate a resource in the classpath, something along the lines of:

<externalResource>
  <name>LocationDictionary</name>
  <description>Dictionary of locations</description>
  <fileResourceSpecifier>
    <!-- Search this file in the classpath instead of the filesystem -->
<fileUrl>path/in/jar/location-dictionary.xml</fileUrl>
  </fileResourceSpecifier>
<implementationName>org.apache.uima.conceptMapper.support.dictionaryResource.DictionaryResource_impl</implementationName>
</externalResource>

Is it possible with existing resource specifiers or do I have to write my own and use a CustomResourceSpecifier?

Thanks!

Alexandre



--
Alexandre Patry, Ph.D
Chercheur Principal / Principal Researcher
http://KeaText.com

Reply via email to