ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Donie <sdo...@zycor.lgc.com>
Subject RE: uptodate -- a second set of eyes
Date Thu, 14 Jun 2001 20:33:21 GMT
Uptodate looks like it is intended for a many-to-one check (many input files
to one output file). Try running with -verbose to see what it is doing.

-----Original Message-----
From: Christopher Berry [mailto:christopher.berry@etrade.com]
Sent: Thursday, June 14, 2001 1:45 PM
To: Ant-User (E-mail)
Subject: uptodate -- a second set of eyes


Hi, 

I'm wondering if someone would kindly be a second set of eyes for me..
I am attempting to use the uptodate task as follows:
But the property seems to always be true -- even when I can see (in the file
system) that ${efc.jar} is more recent than ${efc.gzfile}
I am probably doing something obvious wrong, yet I don't see it.
Can anyone else see my error???
Thanks very much,
-- Chris

  <!-- ............................. -->
  <!--   check if TAR.GZ is up-to-date   -->
  <!-- ............................. -->

  <target name="checkTarGZUpToDate" depends="jar" >
    <uptodate property="efc.tarGZBuild.notRequired"
targetfile="${efc.gzfile}" >
      <srcfiles dir="${efc.lib}" includes="${efc.jarfile}" />
    </uptodate>

    <echo>
      efc.tarGZBuild.notRequired= ${efc.tarGZBuild.notRequired}
    </echo>
  </target>

  <!-- ....................... -->
  <!--        dist           -->
  <!-- ....................... -->

  <target name="tar" depends="checkTarGZUpToDate"
unless="efc.tarGZBuild.notRequired" >
      .....

Chris Berry  --- christopher.berry@etrade.com  -- 512-323-9479

Mime
View raw message