ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Weintraub" <qazw...@gmail.com>
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
line.

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
<http://ant-contrib.sourceforge.net/>. These include a very helpful
<trycatch> task. You can "try" something, and if it fails, you can
catch it or continue onward.

--
David Weintraub
qazwart@gmail.com



On Mon, Nov 3, 2008 at 10:43 AM, car_car_car <carola@walla.co.il> 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: http://www.nabble.com/parallel-targets-tp20302370p20305052.html
> Sent from the Ant - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message