PDA

View Full Version : Overriding FileTargetAdapter



puran
Apr 24th, 2008, 12:35 PM
Hello All,

I was trying that file copy sample, is there any way to override the default FileTargetAdapter class, basically i want to avoid deletion of files from the source and also have a different file name generator class
but i could not set the custom file name generator by any means

Thanks

Mark Fisher
Apr 24th, 2008, 12:43 PM
Could you please open an issue in JIRA for the configurability of the mapper and filename generator?

Also note that there are some related changes on the M4 roadmap: http://jira.springframework.org/browse/INT-185
http://jira.springframework.org/browse/INT-188

By the way, you can always set the filename in the MessageHeader. The key is FileNameGenerator.FILENAME_PROPERTY_KEY.

Thanks,
Mark

puran
Apr 24th, 2008, 12:47 PM
Ok Mark, i'll create a JIRA issue.

Thanks

puran
Apr 24th, 2008, 01:45 PM
Hi Mark,
i created an issue, but mistakely in Spring Batch(scrolled somehow i think). Can you please move it to spring integration.

http://jira.springframework.org/browse/BATCH-602

Thanks