I would like to save the UNIX timestamp (i.e. seconds from the era) in the Ant property for later use in a pair of build targets. This seems impossible:
<tstamp>
<format property="build.time" />
</tstamp>`
... generates a formatted timestamp.
<propertyfile file="foo.properties">
<entry key="build.time" type="date" default="now" />
</propertyfile>
... also generates a formatted timestamp.
I hope this is possible without use <exec>or the like (since we will sometimes run builds on Windows).
source
share