I’m using this script to replace a value in a property file located into a jar file.
<replace file="/cygdrive/d/ant/test/target/com/test/resources.properties" token="MyKey" value="MyNewValue">
the property file is :
MyKey=My Old Value
This script will replace MyKey by MyNewValue
Or what I need is to replace the My Old Value by the MyNewValue?
You might use the Ant
propertyfiletask, something like: