How to edit XML parameter using Ant

irichie

New Member
I'm trying to write a timestamp as a context parameter into my context.xml at that time I execute my Ant script. I was trying the following:my context.xml\[code\]<Parameter name="deployingTimeStamp" value="http://stackoverflow.com/questions/11507569/16.07.2012" <!-- shall be changed! --> override="true" />\[/code\]my build.xml\[code\]<tstamp> <format property="time" pattern="dd.MM.yyyy" unit="hour"/></tstamp><replace file="${conf.dir}/dev/context.xml" > <replacefilter token="deployingTimeStamp" value="http://stackoverflow.com/questions/11507569/${time}" /></replace>\[/code\]Unfortunately it doesn't replace the value, it just replaces the name "deployingTimeStamp" itself and changes it to the current date.How can I solve this problem?
 
Back
Top