On Wed, 20 Feb 2002, Steve Donie <[EMAIL PROTECTED]> wrote:
> <!-- need to just keep one week worth on the server -->
> <propertyfile file="${logs}/DistDeleteList.log"
> comment="a file containing what the date was a week ago, for use in
> deleting directories from the build server" >
> <entry key="olderThanAWeek" type="date" default="now"
> operation="-" value="8" pattern="MMdd"/>
> </propertyfile>
> <property file="${logs}/DistDeleteList.log" />
I'd suggest to replace that with
<tstamp>
<format property="olderThanAWeek" pattern="MMdd" offset="-1" unit="week" />
</tstamp>
but I'm not sure which version of Ant you need to make that work -
1.4, I guess.
Anyway, thank you for the use case.
Stefan
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>