ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Nicholson <rob...@elastica.com>
Subject Flags with available
Date Sat, 31 Jan 2004 15:07:01 GMT
Tomcat-5's build.xml has a rule like the following.

<target name="check.source">

     <available property="source.exists"
                    file="${basedir}/${tomcat.project}" type="dir" />

   </target>

  <target name="get.source" unless="source.exists">

     <antcall target="checkout" />

   </target>

however, there are actually many things it should be checking not just 
tomcat.project
so I wanted to ask how in Ant can you write the rule in such a way that 
it sets source.exists
to false only if one of those items isn't present. So as soon as it 
finds one dependency that
doesn't exist it should abort checking for the others because it would 
reset source.exists if the other dependencies do.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message