Java Mailing List Archive

http://www.ant-tasks.com/

Home » Ant Users List »

On error Redo some TasK

Carlos Ortiz

2008-05-13

Replies:

Author LoginPost Reply
Hi,Here is my question, how do i redo or execute some task's when another
fail

for example , if targetA fail go to onErrorTargetATarget...

<target name="targetA" >
    ....
  </target>

<target name="onErrorTargetATarget" >
    ....
<delete ..... />
  </target>

been the main mainTarget


<target name="mainTarget" depends="targetA, targetB, targetC" >
    ....
  </target>

thks in advance
©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.