camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pontus Ullgren <ullg...@gmail.com>
Subject Re: How to route the file like lst_20140427.tar.gz if the lst_20140427.done file exists
Date Thu, 12 Mar 2015 13:14:56 GMT
I think something like this should work

from("file:bar?doneFileName=${file:onlyname.noext}.done");

Have a look at the  File Expression Language[1] documentation.

[1] http://camel.apache.org/file-language.html

// Pontus

On Thu, Mar 12, 2015 at 12:53 PM, skasish <asish_sam@hotmail.com> wrote:
> I have to route file with the pattern
> lst_20140427.tar.gz if the lst_20140427.done file exists
>
> How to define a camel route with doneFileName ??
>
> Please help me.
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/How-to-route-the-file-like-lst-20140427-tar-gz-if-the-lst-20140427-done-file-exists-tp5764034.html
> Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message