camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: File Component: Rename an existing file
Date Mon, 16 Jul 2012 19:36:02 GMT
Hi

I actually don't think this would be possible. I don't recall we have
a hook to allow a custom plugin on the producer side, to eg as you
want, to rename the existing file beforehand.

We could possible introduce an out of the box solution with a new
enum: MoveExisting
And then have a new moveExisting option where you can set a pattern
for the name (like the move, preMove options also support a pattern
etc).



On Mon, Jul 16, 2012 at 11:39 AM, santoshjoshi
<santoshjoshi2003@gmail.com> wrote:
> Environment:
>
> Camel :2.8.1
> Java : jdk 6
>
>
> The default behaviour of Camel file component is to Override an existing
> file:
>
> Below are the options the applies when a file already exists
> public enum GenericFileExist {
>     Override, Append, Fail, Ignore
> }
>
> I would like to have an option like where an existing file is renamed,
> before producing new file.
> How can this be possible.
>
> Regards,
> Santosh
>
>
>
>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/File-Component-Rename-an-existing-file-tp5716075.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
FuseSource
Email: cibsen@fusesource.com
Web: http://fusesource.com
Twitter: davsclaus, fusenews
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Mime
View raw message