The PropertyFile task is pretty perfect for what I want to do, and the following illustrates what I want to do:
<PropertyFile file="${warSrc}/web/WEB-INF/my.properties">
<entry key="compilationDate" operation="=" type="date" default="now" />
</PropertyFile>
I just want to set that property to the date the compile script was last run. Unfortunately, this task appears to not be distributed with my ant bundle, and while I could alter my workspace to have it, that means everyone who brings this project in will have to do the same, and I want to use just the core ant tasks to avoid that extra config step.
Some kind of usage of the Replace tasks seems perfect, but I am not sure how to use those to look for a line starting with compilationDate=, and then replace the rest of the content of the line with the current date.