camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From White_Sox <rui.ab...@gmail.com>
Subject Re: Apache Camel working directory
Date Thu, 13 Sep 2012 09:39:22 GMT
My bad. The working directory is always the directory where you invoke the
java command.
Thank you for time.


Claus Ibsen-2 wrote
> 
> On Thu, Sep 13, 2012 at 10:32 AM, White_Sox &lt;rui.abreu@&gt; wrote:
>> Apache Camel starting directory seems to be the project's root
>> path.Example:
>>
>> <route>
>> <from uri="file:src/data?noop=true"/>
>> <to uri="jms:incomingOrders"/>
>> </route>
>>
>> The file endpoint will load order files from the relative src/data
>> directory.
>>
>> Isn't the working directory supposed to be the one where the class being
>> executed is located? Why is it the project's root path?
>>
> 
> Its the starting path of the JVM, eg it does something a like
> File dir = new File(".");
> 
> 
>>
>>
>>
>> --
>> View this message in context:
>> http://camel.465427.n5.nabble.com/Apache-Camel-working-directory-tp5719251.html
>> Sent from the Camel - Users mailing list archive at Nabble.com.
> 
> 
> 
> -- 
> Claus Ibsen
> -----------------
> FuseSource
> Email: cibsen@
> Web: http://fusesource.com
> Twitter: davsclaus, fusenews
> Blog: http://davsclaus.com
> Author of Camel in Action: http://www.manning.com/ibsen
> 




--
View this message in context: http://camel.465427.n5.nabble.com/Apache-Camel-working-directory-tp5719251p5719263.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message