I want to create a custom ANT task that will find a build.xml file, find a specific property element, and change the value attribute. Is there existing ant tasks that do this? What Ant Tasks manipulate xml files, instead of just building files?
Example:
<property name="version" value="1.0.1.2">
I want to change the above value to something else, from 1.0.1.2 to something like 1.0.1.3. Is there a Ant Task that will take an XML element and change the attribute value?
If not, this is what I was thinking of doing:
1. Use a SAX parser to find original value
2. Then using the REPLACE anttask to replace that value as a token.
Any help would be appreciated! Thanks in advance.