<project basedir=".">

  <target name="setUp">
    <touch file="source"/>
    <sleep seconds="3"/>
    <touch file="target"/>
  </target>

  <target name="tearDown">
    <delete file="source"/>
    <delete file="target"/>
  </target>

  <target name="testFilesetUpToDate" depends="setUp">
    <uptodate property="foo" targetfile="target">
      <srcfiles dir="." includes="source"/>
    </uptodate>
  </target>

  <target name="testFilesetOutOfDate" depends="setUp">
    <uptodate property="foo" targetfile="source">
      <srcfiles dir="." includes="target"/>
    </uptodate>
  </target>

  <target name="testRCUpToDate" depends="setUp">
    <uptodate property="foo" targetfile="target">
      <srcresources>
        <fileset dir="." includes="source"/>
      </srcresources>
    </uptodate>
  </target>

  <target name="testRCOutOfDate" depends="setUp">
    <uptodate property="foo" targetfile="source">
      <srcresources>
        <fileset dir="." includes="target"/>
      </srcresources>
    </uptodate>
  </target>
</project>