ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject RE: How Insert content od one file to Anotherfile after some patt ern matching
Date Mon, 11 Aug 2003 06:20:45 GMT
<loadfile property="file" srcFile="newText.txt"/>
<replace file="rest.txt" token="[seet]" value="${file}"/>

Not tested.


Jan

> -----Original Message-----
> From: Nagarajan Murugesan [mailto:NMURUGESAN@selectica.com]
> Sent: Friday, August 08, 2003 9:00 PM
> To: Ant Users List
> Subject: How Insert content od one file to Anotherfile after some
> pattern matching
> 
> 
> 
> Hai Friends,
> 
> I need a clarification on ANT script. I need your help on that.
> 
> I have a file called rest.txt which contains a pattern [seet]
> Now I want to replace the pattern [seet] with the contents in the 
> another file say replace.txt instead og giving values.
> 
> Is there anyway to achieve that? Or
> 
> Is there any ANT task is available to insert a content of the 
> file after 
> some pattern?
> 
> 
> Thanks,
> Nagarajan M.
> 
> 
> -
> 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message