ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim White <>
Subject Re: Continue after a failing ant task
Date Wed, 23 Jan 2002 05:34:59 GMT
At 11:04 AM 1/22/2002 -0600, wrote:
>We use a solution which gets around most of the build problems we
>The <javac> and <jar> tasks support 'failonerror' and 'whenempty'
>attributes, respectively.

The <java> and <exec> tasks also have "failonerror" attributes and either 
can be used to invoke Ant on another build script.

This identifies what would be yet-another-nice-feature-to-have which is a 
"onfailureproperty" for the <ant> and <antcall> tasks which would set a 
property on failure rather than failing, as Markus suggested.

Note that you can do this (and most anything else you want in Ant but it 
doesn't already do directly) by using the optional <script> task with your 
favorite scripting engine (Rhino for JavaScript and BeanShell for 
scriptable Java are both good since they can use any Java class directly).


James P. White     Pagesmiths' home is
Live free
Try Kawa, the Java-based Scheme

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

View raw message