and condition in fileset : Condition « Ant « Java Tutorial






<?xml version="1.0"?>
<project name="Apache Ant Properties Project" basedir=".">

  <fileset dir="${src.web}/pages">
    <and>
      <modified>
        <param name="cache.cachefile" value="custom.properties"/>
        <param name="algorithm.algorithm" value="SHA"/>
      </modified>
      <type type="file"/>
    </and>
  </fileset>

</project>








38.8.Condition
38.8.1.Check condition
38.8.2.Compile if upto date
38.8.3.Condition properties
38.8.4.or condition with containsregexp
38.8.5.and condition in fileset