ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kasper Nielsen <>
Subject bug i uptodate???
Date Sun, 18 Aug 2002 08:50:25 GMT

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"/>

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

- Kasper

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message