You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Daniel Winterstein <d....@thinktankmaths.co.uk> on 2006/09/05 19:18:39 UTC
Dealing with failed target
How can I recover when an ant target fails?
I have several ant targets, and I want the top-level target to keep
running even if some of the sub-targets fail.
Is this possible?
Thanks,
- Daniel
-----------------------------------------
There are 3 types of mathematician:
those who can count, and those who can't.
Dr Daniel Winterstein
ThinkTank Mathematics Ltd http://thinktankmaths.co.uk
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org
Re: Dealing with failed target
Posted by "Alexey N. Solofnenko" <A....@mdl.com>.
You can use try/catch from Ant-Contribs or -keep-going option. The later
will still fail the build, but it will execute as much targets as possible.
- Alexey.
Daniel Winterstein wrote:
> How can I recover when an ant target fails?
> I have several ant targets, and I want the top-level target to keep
> running even if some of the sub-targets fail.
> Is this possible?
> Thanks,
> - Daniel
>
> -----------------------------------------
> There are 3 types of mathematician:
> those who can count, and those who can't.
>
> Dr Daniel Winterstein ThinkTank Mathematics Ltd
> http://thinktankmaths.co.uk
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
--
------------------------------------------------------------------------
Alexey N. Solofnenko <http://trelony.cjb.net/>
Pleasant Hill, CA (GMT-8 usually)
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org