Hi Claus,

After upgrading to Camel 2.12.1, my integration test of the job fails with
the same route which was working in Camel 2.10.3. 
The file doesn't get move to the appropriate directory after the batch job
is done.

In Camel 2.12.1, it  seems to consider the property in the "move" as the
filename instead of the directory name. With further debugging, the problem
appeares that the expression for the move attribute expression is evaluted
in the GenericFileExpressionRenamer class. I can see that the expression
appends the {file:onlyname} to the end of the directory we mention. 
However this does not evaluate correctly in 2.12.1 but works fine in 2.10.3.
I suspect it might be because of how the new handling of properties are
happening  between spring and apache camel. Here is my file url:

                        <from
                        
uri="file:{{batch.process.watch.directory}}?include={{lowBalance.file.name.pattern}}&amp;delay={{lowBalance.file.poll.delay}}&amp;doneFileName=LOWBAL_2013-23-00-00-00.70.DAT.sig&amp;move={{batch.process.done.directory}}&amp;moveFailed={{batch.process.failed.directory}}"
/>

As a separate issue, using the $simple{file:name} in the doneFileName wasnt
working either. Could you please help ?

Regards,
Q-A
 




--
View this message in context: 
http://camel.465427.n5.nabble.com/doneFileName-file-name-in-Camel-2-12-1-doesn-t-get-replaced-correctly-with-camel-spring-batch-tp5740839p5741627.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to