Condition properties : Condition « Ant « Java Tutorial






<?xml version="1.0"?>
<project name="Apache Ant Properties Project" basedir=".">
  
  <fileset dir="." id="uptodate.id">
    <include name="src/jstl/One.java"/>
  </fileset>

  <condition property="is.fileset">
    <isreference refid="uptodate.id" type="fileset"/>
  </condition>
  
  
  <target name="fileset-prepare">
    <echo message="Value of is.fileset = ${is.fileset}"/>
  </target>


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