ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Henk van Voorthuijsen <voo...@xs4all.nl>
Subject Re: how to have <junit> execute a task on failure ?
Date Sun, 04 Nov 2007 09:24:24 GMT

On Nov 4, 2007, at 9:11 AM, Claude Brisson wrote:

> Hi.
>
> I need to execute a task when junit encounters an error or a failure.
>
> Is there any way to do so?
>
> If I set haltonerror/failure to false, is there a way to get junit
> success status in a property, so that I can then trigger the  
> subsequent
> flow?
>

There is. You set the "errorproperty" or "failureproperty" attribute:

http://ant.apache.org/manual/OptionalTasks/junit.html

Henk

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


Mime
View raw message