ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Hüttermann <mich...@huettermann.net>
Subject Use/Expand property inside a CDATA section in a replacetoken element
Date Wed, 09 Feb 2011 19:15:48 GMT

 Hello,

 how can I use/expand properties inside a cdata section in a 
 replacetoken element?
 I need dynamic values (injected by the user of the script) in both, 
 replacetoken and replacevalue. I need to address the searched string 
 crossing multi lines.

 Example:

 <property name="name" value="value"/>
 <replace dir="${src}">
   <include name="**/*.xml"/>
   <replacetoken><![CDATA[abc
         def${name}ghi]]></replacetoken>
   <replacevalue><![CDATA[abc
         defghijk]]></replacevalue>
 </replace>

 The property is not expanded.


 Thank you.

 Michael



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


Mime
View raw message