ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Weintraub" <>
Subject Re: parallel targets
Date Tue, 04 Nov 2008 00:16:44 GMT
There are several things:

First of all, if you want true parallel in running tasks, take a look
at the Ant <parallel> task. This truly allows you to run tasks in
parallel to each other.

Are you using <JUnit> tasks and these are failing, or is something
else failing. For example, you are calling JUnit from the command

Most tasks have a way of saying "ignore failures". I believe the
<JUnit> task won't stop on failures unless configured otherwise.

Worse comes to worse, you can try the AntContrib tasks at
<>. These include a very helpful
<trycatch> task. You can "try" something, and if it fails, you can
catch it or continue onward.

David Weintraub

On Mon, Nov 3, 2008 at 10:43 AM, car_car_car <> wrote:
> My targets contain junit. when they fail - the whole target fails - this
> information is usfull to me for other reasons.
> I want to be able to keep running the other targets DESPITE the failure.
> what's happening now is that if one of the target fails its tests - the
> other targets won't start.
> car_car_car wrote:
>> Hello
>> I'm using ant in cruise control and I'm having trouble defining my target
>> order.
>> I have a project with single 'init' target and multiple independent
>> 'target_A...Z'.
>> I couldn't find the syntax that runs the 'init' target and only after its
>> success runs the other target independently.
>> meaning - run the next target regardless to the previous target's success.
>> I only know a way to run one dependent on the other.
>> <target name="target_B" depends="target_A">
>> this way, if target_a fails - all the other targets won't run.
>> Thanks,
>> Carmen
> --
> View this message in context:
> Sent from the Ant - Users mailing list archive at
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message