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, BTW):
<target name="check-bootstrap"> <available file="project/${env.PROJECT_NAME}/bootstrap.xml" property="bootstrap"/> </target> <target name="bootstrap" if="bootstrap" depends="check-bootstrap"> <ant antfile="project/${env.PROJECT_NAME}/bootstrap.xml"/> </target> Is there a way to combine these two targets into one? Thanks! -- ======================================================================== Ian Pilcher [EMAIL PROTECTED] ======================================================================== --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]