ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Manisha Mauni" <mma...@SportsLoyaltySystems.com>
Subject RE: F1- file content copy using ant
Date Wed, 24 May 2006 17:05:33 GMT
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:BBurgess@tiaa-cref.org] 
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:mmauni@SportsLoyaltySystems.com] 
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:BBurgess@tiaa-cref.org] 
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:mmauni@SportsLoyaltySystems.com] 
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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org



**************************************************************
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: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message