I am trying to collect files from a directory, aggregate them and finally
zip put them in a common zip file. The problem is that after the
aggregation, but before marshal part, the files are moved to their final
directory, but the file references points to the “preMove” directory.
Instead I want the final move to be postponed until after the zip step is
finished.
<CODE>
// formatter:off
public void configure() throws Exception {
from("file:input?&preMove=processing&move=processed")
.aggregate(constant(""), new AggregateFilesAsList())
.completionSize(4)
.marshal(new CustomizedZipDataFormat())
.to("file:output?fileName=${file:name}_[${date:now:yyyyMMdd}].zip");
});
}
// formatter:on
</CODE>
--
View this message in context:
http://camel.465427.n5.nabble.com/Do-not-move-files-to-final-directory-after-aggregation-tp1046964p1046964.html
Sent from the Camel - Users mailing list archive at Nabble.com.