You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Praveen Acharya <pr...@yahoo.com> on 2002/08/19 08:09:18 UTC
query
......
<property name='account.no' value='66497' />
<property name='rel.no' value='2' />
<target name='change-account' >
<replace dir='C:\acctmmnt_msgs' >
<include name='**/gti-${rel.no}-*.xml' />
<replacetoken><![CDATA[<CustomerSecsAccNo>.*</CustomerSecsAccNo>]]></replacetoken>
<replacevalue><![CDATA[<CustomerSecsAccNo>${account.no}</CustomerSecsAccNo>]]></replacevalue>
</replace>
</target>
.......
how can i achive wht i am trying to do above..
thnkz in advance.
__________________________________________________
Do You Yahoo!?
HotJobs - Search Thousands of New Jobs
http://www.hotjobs.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: query
Posted by Stefan Bodewig <bo...@apache.org>.
On Sun, 18 Aug 2002, Praveen Acharya <pr...@yahoo.com>
wrote:
> <replacevalue><![CDATA[<CustomerSecsAccNo>${account.no}</CustomerSecsAccNo>]]></replacevalue>
>
> how can i achive wht i am trying to do above..
Use the value attribute of <replace> instead - properties are not
expanded for the nested elements, but get expanded for the attributes.
So what you want is
<replace value="<CustomerSecsAccNo>${account.no}</CustomerSecsAccNo>"
...
Stefan
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>