ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Agnew" <br...@oopsconsultancy.com>
Subject Re: AW: Using Replace
Date Fri, 12 Oct 2007 09:05:54 GMT
If you want to use XMLTask (and your input is XML - the below doesn't look
quite right), the following will work:

<replace path="//...xpath to node.../@value" withText="value to insert"/>

http://www.oopsconsultancy.com/software/xmltask/

Brian


On Fri, October 12, 2007 08:22, Jan.Materne@rzf.fin-nrw.de wrote:
> Use a template which you copy and modify.
> See <copy>, <filter> and <filterchain>
> especially in the <copy> manual the example
> "Copy a set of files to a directory, replacing @TITLE@ with Foo Bar in all
> files."
>
> Jan
>
>>-----Urspr√ľngliche Nachricht-----
>>Von: Dharmesh Vyas [mailto:dharmesh.mail@gmail.com]
>>Gesendet: Donnerstag, 11. Oktober 2007 14:48
>>An: Ant Users List
>>Betreff: 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.
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>


-- 
Brian Agnew                  http://www.oopsconsultancy.com
OOPS Consultancy Ltd
Tel: +44 (0)7720 397526
Fax: +44 (0)20 8682 0012


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


Mime
View raw message