You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Robert Nicholson <ro...@elastica.com> on 2001/05/12 22:52:41 UTC

How do you not execute one rule if another fails?

What constitutes failure with ant?

ie. if I run

<target name="ck_customerejbjar" depends="init">
     <java classname="weblogic.EJBComplianceChecker" fork="no"
classpath="${weblogic.classpath}" args="${customer.ejbjar}"/>
  </target>

and I have another rule say "deploy" that depends on this.

how can I ensure that deploy doesn't run if this rule "failed"

How is failure determined" via the exit status of the java binary
or the detection of an exception?