While working on Apache Camel, whenever a file is zipped using camel-zip or copied via canel-ftp, Camel moves the file in .Camel folder and does not retain it in source folder after processing. I want my file to stay in the source folder after the processing has been done. Please advice how to achieve the same.
CamelContext context = new DefaultCamelContext(); context.addRoutes(new RouteBuilder() {
@Override
public void configure() throws Exception {
from("file:src/main/zip?delete=false").marshal().zipFile()
.to("file:C:/Users/kdewan/Desktop");
}
});
context.start();
Thread.sleep(5000);
context.stop();