Hi,

Im having some problems with the uptodateproperty, as I understand, it simply compares the dates of the files.
If that is so, howcome uptodate.classes isn't set in this little sample??


<?xml version="1.0"?>

<project name="antbug" default="test" basedir=".">

<target name="test">
   <copy file="build.xml" todir="${basedir}/src"/>
   <copy file="build.xml" todir="${basedir}/target"/>

<sleep seconds="1"/>
<touch file="${basedir}/src/build.xml"/>
<sleep seconds="1"/>
<touch file="${basedir}/target/build.xml"/>
<uptodate property="uptodate.classes" targetfile="${basedir}\target" >
<srcfiles dir= "${basedir}\src"/>
</uptodate>


 <echo message="target is uptodate: ${uptodate.classes}"/>

 <delete dir="${basedir}/src"/>
 <delete dir="${basedir}/target"/>
</target>

</project>


- Kasper


-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>



Reply via email to