ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Riaan Oberholzer <riaanoberhol...@yahoo.com>
Subject Re: Antw: [Q] How to insert file into another?
Date Fri, 19 Dec 2003 10:59:56 GMT
Great, thanks... I assume the imported file does not
need to be an actual property file and can be
anything?

I'm specificly trying to add the servlets generated by
Tomcat's Jasper compiler in the generated_web.xml to
my standard web.xml....



--- Marc Klein <Marc.Klein@ids-scheer.de> wrote:
> you can load  fileB into a property:
> 
> <loadfile property="content" srcFile="fileB"/>
> 
> and then replace token in fileA with the property:
> 
> <replace file="fileA" token="#insertHere#"
> value="${content}"/>
> 
> regards
> 
> Marc
> 
> >>> riaanoberholzer@yahoo.com 19.12.03 11:52:25 >>>
> Question:
> 
> how can I insert one file into another using ant?
> 
> Eg, fileA has a token "insertHere" and I somehow
> want
> to import all of fileB to replace this token.
> 
> Somehow with copy and filtersets?
> 
> __________________________________
> Do you Yahoo!?
> New Yahoo! Photos - easier uploading and sharing.
> http://photos.yahoo.com/ 
> 
>
---------------------------------------------------------------------
> 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
> 


__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/

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


Mime
View raw message