uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexandre Patry <alexandre.pa...@keatext.com>
Subject Re: Loading a resource from the classpath
Date Thu, 07 Aug 2014 16:26:03 GMT
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


Mime
View raw message