You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Dharmesh Vyas <dh...@gmail.com> on 2007/10/11 14:47:36 UTC

Using Replace

 Hello Group,

I have a configuration file for running my test scripts. It's in this format
<FieldName="TestCases" value="A.xml"/>
I need to change the values of A.xml to B.xml or C.xml or D.xml. Previously
I used to know the order of it so I used to have token A.xml and replace it
with B.xml, after B to C and likewise.
But right now I am in a condition where I will require to change A.xml to
anyvalue. I won't be knowing what value will this configuration file be
holding (Prob. A.xml, or B.xml etc.) before replacing that to any other
value.

Please let me know if there is a way to implement this.

Thanks in advance,
- Dharmesh.