Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

Camel Filter appears to delete files instead of leaving them be.

$
0
0
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

Viewing all articles
Browse latest Browse all 5648

Trending Articles