THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
Info |
---|
Please note that this aggregation strategy requires eager completion check to work properly. |
In this example we aggregate all text files found in the input directory into a singel single Zip file that is stored in the output directory.
Code Block |
---|
from("file:input/directory?antInclude=*/.txt") .aggregate(new ZipAggregationStrategy()) .constant(true) .completionFromBatchConsumer() .eagerCheckCompletion() .to("file:output/directory"); |
...