ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kasper Nielsen <kniel...@apache.org>
Subject bug i uptodate???
Date Sun, 18 Aug 2002 08:50:25 GMT
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:ant-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-dev-help@jakarta.apache.org>


Mime
View raw message