You would probably want to use the <replace> task. When I have environment specific 
configuration stuff, I usually create a properties file for each environment...

dev.properties
test.properties
prod.properties

Then I have my build file load the properties with the following...

<property file="${env}.properties"/>


Then I run ant like this...

ant -Denv=test target

I hope this helps.

-Rob Anderson

> -----Original Message-----
> From: Travis Quarterman [mailto:[EMAIL PROTECTED]
> Sent: Friday, October 22, 2004 12:29 PM
> To: Ant users
> Subject: Replace test in file
> 
> 
> What is the best way of change the name in a xml file or any file for
> that mattter? Between deployments there is a need to chage the my
> web-uri name in my application.xml.
> 
> Thanks
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to