ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jim White <...@pagesmiths.com>
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, David.Bailey@lawson.com wrote:
>We use a solution which gets around most of the build problems we
>encounter.
>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).

jim

----------------------------------------------------------------
James P. White     Pagesmiths' home is http://www.pagesmiths.com
Live free http://www.ushistory.org/franklin/quotable/quote04.htm
Try Kawa, the Java-based Scheme http://www.gnu.org/software/kawa


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


Mime
View raw message