Can ANT change values in a XML files?
I am working on a Java, Spring system and in the XML files we have things like server name, user name, password that has to change for each env that we are promoting the system too. I would like to have the ANT script ask prompt the SA for the server name, user name and then replace the values in the xml files.
You might also look into loading the properties in your Spring xml file from a PropertyPlaceholderConfigurator. Then, you can keep your properties in a standard Java .properties file and edit that however you want when promoting your project through the tiers. There’s a halfway decent example here: example