Hi Looks like some information got lost in your mail?
Anyway try with CAMEL 2.3-SNAPSHOT as we fixed some Windows File stuff in there. http://camel.apache.org/download.html Camel 2.3 is planned to be released later this month. On Wed, May 12, 2010 at 8:17 AM, Marcin Za-pa <se...@vp.pl> wrote: > > Using Camel 2.2 JVM 1.5 + tomcat 6.0 and Windows XP SP3 > Hi, I spent much time trying to figure out why my solution doesn't work as > written in documentation. > I want to configure file endpoint with move parameter, but only the last > case from those described below works: (Am I doing sth wrong or there is a > bug in CAMEL ?) > I Case > > > > > > > > > > > Result: > org.apache.camel.component.file.GenericFileOperationFailedException: Cannot > create directory: c:\test\hotfolder\backup\now:yyyyMMdd\name > II Case DSL > from("file://c:/test/myfolder?preMove=inprogress&moveFailed=backup/${date:now:yyyyMMdd}/${file:name}") > .to("file://c:/test/myfolder/toEnd"); > Result > preMove works fine (inprogress folder created), but move throws exception: > GenericFileOperationFailedException: Cannot rename file: > GenericFile[c:\test\hotfolder\xxx.txt] to: GenericFile[backup\20100512] > III case > > > > > > > > > > IV Case > > > > > > > > Result: work as expected > -- > View this message in context: > http://old.nabble.com/FileEndpoint-definition-%2B-File-Language-tp28532364p28532364.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