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: Camel Filter appears to delete files instead of leaving them be.
Date Fri, 22 Aug 2014 06:41:07 GMT
Use the noop=true to leave the file untouched. Camel moves the file to
.camel by default. Check the file documentation
http://camel.apache.org/file2

On Fri, Aug 22, 2014 at 8:38 AM, grimfury <timt992@gmail.com> wrote:
> Hi all,
> This task seems so easy and yet I can't get it done.
>
> The task is to look through the files in a directory and compress some which
> are older than a certain date, and leave the others untouched.
>
> I've attached all the code needed to run the test.
> The compression occurs but it deletes the other files that do have to be
> compressed.
>
> If I move the files to a different directory, it works ok - BUT I don't want
> to have to do that.
>
> Appreciate any help on this.
>
>
>
> My filter class is shown here:
>
>
> And here is my spring-camel context xml
>
>
>
> I'm also attaching here my JUnit test so that it's easy to run
>
>
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-Filter-appears-to-delete-files-instead-of-leaving-them-be-tp5755540.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
hawtio: http://hawt.io/
fabric8: http://fabric8.io/

Mime
View raw message