I came across this error while running Camel 2.17.0 with Spring 4.3.7.
One of our unit tests had the file move syntax given in the example in the
Camel documentation of the File component:
move=backup/${date:now:yyyyMMdd}/${file:name}
and produced that error.
What seems to have happened is that Spring saw the "${" construct and went
to do a property substitution. It then passed the resulting string
move=backup/date:now:yyyyMMdd/file:name
to Camel which passed it to Java and threw and IO error because the ":x:" is
an illegal sequence in file paths. I changed the syntax to
move=backup/$simple{date:now:yyyyMMdd}/$simple{file:name}
and it started working!
Other unit tests had something similar, with
{{archive.dir}}
being a property
archive.dir=archive/${date:now:yyyyMMdd}/
and failed with the same error. When I changed the properties files to use
archive.dir=archive/$simple{date:now:yyyyMMdd}/
they started working.
--
View this message in context:
http://camel.465427.n5.nabble.com/File-component-move-option-tp3388470p5810399.html
Sent from the Camel - Users mailing list archive at Nabble.com.