ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: Is there an ANT task to replace a <TAG:filename> in the source with the contents of the specified file???
Date Mon, 19 Dec 2005 08:02:23 GMT
The simplest thing would be a <copy> with a nested <filterchain>s and <filterset>s.
Your TAG would be an Ant property in the snippet.

Jan

http://ant.apache.org/manual/CoreTypes/filterchain.html#expandproperties


>-----Urspr√ľngliche Nachricht-----
>Von: gregsfm@tpg.com.au [mailto:gregsfm@tpg.com.au] 
>Gesendet: Montag, 19. Dezember 2005 08:08
>An: user@ant.apache.org
>Betreff: Is there an ANT task to replace a <TAG:filename> in 
>the source with the contents of the specified file???
>
>Hi,
>
>Is there an ANT task to replace a <TAG:filename> in the source 
>with the contents of the specified file???
>
>That is I working with some scripting languages where I'd like 
>to identify common code and keep these in separate files (e.g. 
>like JSP TAG replacement concept but simpler).  What I'm 
>looking for is a way to specific a TAG in the source file, 
>which within the TAG it identified the file which has the 
>common code.  Then when running the ANT task and "building" 
>from the SOURCE to the BUILD area the TAGS would be replaced 
>by the contents of the files.  
>
>Any suggestions re how to do this with ANT?
>
>An optional (ideal) extra would be the ability to handle 
>recursion (i.e.
>a file with a snippet of text itself could contain a TAG).
>
>Thanks
>
>---------------------------------------------------------------------
>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