You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Steve Loughran <st...@iseran.com> on 2003/06/10 22:21:45 UTC
adding success & failure to
I think I posted this last week, but it got lost
1. What do people think about adding the ability to set properties if a
subant or ant call failed/succeeded. This lets me do complex things in
cruise control.
2. How best to do it?
Here is one example implementation
<subant antfile="driver/" target="build"
succeeded="driver.built" failoneerror="false"/>
<target name="test-driver" depends="driver"if="driver.built" >
<subant antfile="driver/" target="test"
succeeded="driver.tested" failoneerror="false"/>
</target>
<target name="app" depends="driver" if="driver.built" >
<subant antfile="app/" succeeded="app.built" failoneerror="false"/>
</target>
<target name="test-app" depends="app" if="app.built" >
<subant antfile="app/" succeeded="app.built" failoneerror="false"/>
</target>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org
Re: adding success & failure to
Posted by Mariano Benitez <ma...@fuegolabs.com>.
I completely desire that, for long nested builds for regression testing
makes life really easy to just send a build to run, and if fails, no
problem, keep going to the next build.
MAriano
Steve Loughran wrote:
>
> I think I posted this last week, but it got lost
>
>
> 1. What do people think about adding the ability to set properties if
> a subant or ant call failed/succeeded. This lets me do complex things
> in cruise control.
>
> 2. How best to do it?
>
> Here is one example implementation
>
> <subant antfile="driver/" target="build"
> succeeded="driver.built" failoneerror="false"/>
>
> <target name="test-driver" depends="driver"if="driver.built" >
> <subant antfile="driver/" target="test"
> succeeded="driver.tested" failoneerror="false"/>
> </target>
>
> <target name="app" depends="driver" if="driver.built" >
> <subant antfile="app/" succeeded="app.built" failoneerror="false"/>
> </target>
>
> <target name="test-app" depends="app" if="app.built" >
> <subant antfile="app/" succeeded="app.built" failoneerror="false"/>
> </target>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org