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 <[EMAIL PROTECTED]> 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 --- [EMAIL PROTECTED] -- 512-323-9479
>
=====
([EMAIL PROTECTED])
__________________________________________________
Do You Yahoo!?
Spot the hottest trends in music, movies, and more.
http://buzz.yahoo.com/