Check existance of source code : Existance Check « Ant « Java Tutorial





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


  <property name="jstl.src" value="jstl"/>
 
  
  <condition property="jstl.src.exists">
    <available file="${jstl.src}" filepath="./src"/>
  </condition>



  <target name="checkout-jstl" unless="jstl.src.exists">
    <echo message="Checking out ${jstl.jar}"/>
  </target>

</project>










38.9.Existance Check
38.9.1.Check jar file existance
38.9.2.Check existance of source code