On Fri, Jun 4, 2010 at 10:53 AM, dherla2 <dimitri.he...@nrb.be> wrote: > > I have a configuration problem. > > The development environment and the production environment have different > directory structure. > > I need a way to parametrize the directoryName with a system property. > Is there is a way ? > > Example : > dev : > from("file://C:/test/docbtodocumentum/data/?include=.*(.ged)").enrich(.... > prod : > from("file://d:/ftproot/docbtodocumentum/data/?include=.*(.ged)").enrich(.... > > Thanks in advance >
Is all Java code so just build a String with that system property In Camel 2.3 you can use property placeholders directly in the endpoint uris http://camel.apache.org/using-propertyplaceholder.html And in theory you could provide a custom resolver and have it lookup system properties instead of files which is the default. But we could maybe consider having an option on the properties component to let it lookup system properties first, so you can override provide them if you want. > Dimitri > -- > View this message in context: > http://old.nabble.com/File-Consumer-directoryName-problem-tp28777347p28777347.html > Sent from the Camel - Users mailing list archive at Nabble.com. > > -- Claus Ibsen Apache Camel Committer Author of Camel in Action: http://www.manning.com/ibsen/ Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus