ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jon Skeet" <>
Subject RE: ant file= ... - Return Build Status to calling script ?!
Date Thu, 27 Oct 2005 08:51:19 GMT
> i have a delegating ant script that sets some properties and 
> then calls another antscript.
> I need a way to pass the return status, means either Build 
> Failed or Build Successful, back to the calling script.
> Any ideas ?

I believe that if the build fails, it will throw a BuildException back
to the calling task. You can catch that with the Ant-Contrib
try/catch/finally task.

There may well be a cleaner way of doing it, but that should get you


Clearswift monitors, controls and protects all its messaging traffic in compliance with its
corporate email policy using Clearswift products.
Find out more about Clearswift, its solutions and services at

This communication is confidential and may contain privileged information intended solely
for the named addressee(s). It may not be used or disclosed except for the purpose for which
it has been sent. If you are not the intended recipient, you must not copy, distribute or
take any action in reliance on it. Unless expressly stated, opinions in this message are those
of the individual sender and not of Clearswift. If you have received this communication in
error, please notify Clearswift by emailing quoting the sender and
delete the message and any attached documents. Clearswift accepts no liability or responsibility
for any onward transmission or use of emails and attachments having left the Clearswift domain.

This footnote confirms that this email message has been swept by MIMEsweeper for Content Security
threats, including computer viruses.

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

View raw message