ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ian Pilcher <>
Subject Can these targets be combined?
Date Fri, 17 Feb 2006 22:28:53 GMT
I need to execute a single task if a file exists.  Here's what I've been
able to glean from the Ant manual (which desperately needs an index,

  <target name="check-bootstrap">
    <available file="project/${env.PROJECT_NAME}/bootstrap.xml"

  <target name="bootstrap" if="bootstrap" depends="check-bootstrap">
    <ant antfile="project/${env.PROJECT_NAME}/bootstrap.xml"/>

Is there a way to combine these two targets into one?


Ian Pilcher                              

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message