ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Keith Hatton" <>
Subject <ant> and build failure
Date Thu, 31 Jul 2003 14:14:45 GMT
Hi all,

Background: I'm using <ant> to run my JUnit tests as part of a <parallel>/<sequential>
task while an application server is running.

What I would like to be able to do is prevent the user from thinking all is well if any of
the test cases fail. I can set a property in <junit> on failure, and <fail> the
build if this is set ... but this is all going on in the <ant> task of the master build

If I do this, at the moment the net result is my build hangs ... I think one thread of the
<parallel> task has failed and so nothing is stopping the application server (which
would stop the other thread).

Is there any way to set a property in <ant> if the called file/target fails, rather
than just fail (apparently silently)? I couldn't see a "failonerror" or "failure" attribute
in the manual ( but I think this would be useful. Any other suggestions on how to
achieve this welcome.


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

View raw message