ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <>
Subject RE: propertyfile task to calculate yesterday's date
Date Fri, 09 Aug 2002 00:59:15 GMT
--- Bwana McCall <> wrote:
> doh.  That did it.  Didn't even think of clearing it first.

Why not just use <tstamp>, then just write it out using <propertyfile>
(I'm assuming you have other properties in ${} --
otherwise, you could just <echo> it out to the file). This way, you don't
have to "clear" anything, since you're not reading in the properties file
to begin with:

  <format property="yesterday" pattern="dd MMM yyyy hh:mm"
          offset="-1" unit="day"/>
  <entry key="yesterday" value="${yesterday}/>



Do You Yahoo!?
HotJobs - Search Thousands of New Jobs

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message