ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <hol...@yahoo.com>
Subject Re: uptodate -- a second set of eyes
Date Thu, 14 Jun 2001 20:18:26 GMT
Can't say for sure, but you mention ${efc.jar} in your text and
${efc.jarfile} in your build.xml -- which one is defined?

BTW: Since you're only checking against the one file, you could just do:
    <uptodate property="efc.tarGZBuild.notRequired"
              targetfile="${efc.gzfile}"
              srcfile="${efc.lib}/${efc.jarfile}"/>
and save a little typing.  (Although I just checked, and it looks
undocumented -- oops.)

Diane

--- Christopher Berry <christopher.berry@etrade.com> wrote:
> 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
> 


=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Spot the hottest trends in music, movies, and more.
http://buzz.yahoo.com/

Mime
View raw message