Sure, we had the same problem in Karaf and i've fixed that as part of https://issues.apache.org/jira/browse/FELIX-2307 Basically, just add '\' before the '{' and '}' and it should work:
file://inbox?move=backup/$\{date:now:yyyMMdd\}/$\{file:name\} On Thu, May 27, 2010 at 23:22, Bengt Rodehav <be...@rodehav.com> wrote: > Hello everyone, > > My question didn't get much attention on my first attempt so I'll make > another one... > > Maybe a clarifaction of what I'm trying to do helps. I'm using Karaf as a > deployment container for Camel routes. I start services, using file > install, > that house camel routes. The routes are configurable using the > configuration > admin via file install. E g I have a general file transfer route in Camel > that looks like this: > > from(mFromUri).to(mToUri); > > ...where "mFromUri" and "mToUri" are properties configured via > configuration > admin. Camel itself supports a "property concept" and an example of a > "mFromUri" I might want to use is: > > file://inbox?move=backup/${date:now:yyyMMdd}/${file:name} > > This will cause Camel to poll the inbox folder and archive completed files > in a backup folder that is named with todays date. > > However, since file install always does property substitution itself (in > this case I want Camel to do it - not file install), the URI sent to Camel > will be: > > file://inbox?move=backup// > > This is because the strings ${date:now:yyyMMdd} and ${file:name} will be > transformed to empty strings since file install will regard them as > properties that are not defined. > > How can I work around this? Any clues? > > /Bengt > > > 2010/5/26 Bengt Rodehav <be...@rodehav.com> > > > I'm using the File Install component and cannot find a way to set values > > like "${abc}" (without the quotes). File install insists on performing > > property substitution which I do not want in this case. I noticed that > this > > seems to have been addressed in version 3.0.0 but I cannot get it to > work. > > My question is: How can I set a value to "${abc}" (without the quotes) > > without File install trying to perform property substitution? > > > > /Bengt > > > -- Cheers, Guillaume Nodet ------------------------ Blog: http://gnodet.blogspot.com/ ------------------------ Open Source SOA http://fusesource.com