ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Jain" <>
Subject Re: Testing for File.lastModified > 1d
Date Fri, 02 May 2003 11:41:57 GMT
> Is there a task or combination of tasks that allows you to set a
> variable to true, if a specified file is older than e.g. one day?

The following is about the closest I get. It might even work,
unfortunately ${taxonomy.path} contains an absolute file name and
therefore can't be put into a fileset, it seems...

  <target name="taxonomy.verify">

        pattern="MM/dd/yyyy hh:mm aa"
        offset="-1" unit="day"

      <fileset dir="/" includes="${taxonomy.path}">
        <date when="before" datetime="${oldest.time}"/>



Eric Jain

View raw message