Hi Then you have to move the files yourself.
Use noop=true on the file endpoint. And then in your AggregatationStrategy "remember" the files. And then move those files manually. On Tue, Jul 13, 2010 at 11:03 PM, Z4zz <[email protected]> wrote: > > 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. > -- Claus Ibsen Apache Camel Committer Author of Camel in Action: http://www.manning.com/ibsen/ Open Source Integration: http://fusesource.com Blog: http://davsclaus.blogspot.com/ Twitter: http://twitter.com/davsclaus
