Thanks Benjamin!! -----Original Message----- From: Burgess, Benjamin [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 24, 2006 1:14 PM To: Ant Users List Subject: RE: F1- file content copy using ant
Sure, use multiple concat tasks with FilterChains. So the first would use a Headfilter, then the next would take the entire other file, then the last would use a Tailfilter, all concatenating to the output file. -----Original Message----- From: Manisha Mauni [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 24, 2006 1:06 PM To: Ant Users List Subject: RE: F1- file content copy using ant Sorry actually I mean inserting content in a file from other file. Say inserting content in targer.txt from source.txt after line say 10. -----Original Message----- From: Burgess, Benjamin [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 24, 2006 1:02 PM To: Ant Users List Subject: RE: F1- file content copy using ant <concat destfile="C:\jspc\Redemption\src\web\WEB-INF\target.txt" append="true" encoding="${encoding}" fixlastline="yes"> <filelist dir="C:\jspc\Redemption\src\web\WEB-INF" files="source.txt"/> </concat> -----Original Message----- From: Manisha Mauni [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 24, 2006 12:30 PM To: Ant Users List Subject: RE: F1- file content copy using ant Thanks Benjamin!! Is there any way I can insert the content from one file to the other at the desired location? I don't want to use entity. Thanks Manisha -----Original Message----- From: Burgess, Benjamin [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 24, 2006 12:24 PM To: Ant Users List Subject: RE: F1- file content copy using ant Concat? http://ant.apache.org/manual/CoreTasks/concat.html -----Original Message----- From: Manisha Mauni [mailto:[EMAIL PROTECTED] Sent: Wednesday, May 24, 2006 12:17 PM To: Ant Users List Subject: F1- file content copy using ant Hello, I have to append content of one file to other using ant task. Is there any ant task which can do that? I tried "xclude" but it is replacing the content instead of appending <xclude in="C:\jspc\Redemption\src\web\WEB-INF\source.txt" out="C:\jspc\Redemption\src\web\WEB-INF\target.txt" encoding="${encoding}" indent="yes"/> Thanks n rgds Manisha ************************************************************** This message, including any attachments, contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, please contact sender immediately by reply e-mail and destroy all copies. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. TIAA-CREF ************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ************************************************************** This message, including any attachments, contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, please contact sender immediately by reply e-mail and destroy all copies. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. TIAA-CREF ************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ************************************************************** This message, including any attachments, contains confidential information intended for a specific individual and purpose, and is protected by law. If you are not the intended recipient, please contact sender immediately by reply e-mail and destroy all copies. You are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. TIAA-CREF ************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
