uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marshall Schor <...@schor.com>
Subject Re: Referring to file resources
Date Wed, 02 Mar 2011 22:36:01 GMT


On 3/2/2011 10:05 AM, Jörn Kottmann wrote:
> On 3/2/11 3:25 PM, Adam Lally wrote:
>> file:com/apache.d.txt  is a relative path; relative paths for resources are
>> resolved using the
>> classpath and/or the datapath. For the file protocol, URLs starting with
>> file:/  orfile:///  are absolute.
>
> What is the default data path directory when deploying an UIMA AS Service
> with the deploy script ? 

I think the default is that no datapath is set.  You can the default by setting
the environment variable UIMA_DATAPATH (see
http://uima.apache.org/d/uimaj-2.3.1/tutorials_and_users_guides.html#ugr.tug.aae.using_shell_scripts
)

If you try this, please let the list know if it works :-)

-Marshall

> I tried something like this but that does not
> work file:models/en-sent.bin, that would be relative to the working directory
> which I guess is not the datapath.
>
> Jörn
>
>

Mime
View raw message