You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Sc...@i2.com on 2001/05/18 16:47:05 UTC

Return code for ANT

When calling ant from the command line or a script, what value does it
return for a build failure?  for a successful build?


Re: Return code for ANT

Posted by Stefan Bodewig <bo...@apache.org>.
Diane Holt <ho...@yahoo.com> wrote:

> Scott_Carter@i2.com wrote:
> 
>> When calling ant from the command line or a script, what value does
>> it return for a build failure?  for a successful build?
> 
> 0 on success; 1 on failure.

Unless you call the ant.bat script on Windows.

If you invoke Ant via java directly or use the starter scripts for
Unix (or the one written in Perl), you can get to the return codes,
but the Windows batch file will swallow them (there already is a bug
report and I don't know how to fix it).

Stefan

Re: Return code for ANT

Posted by Diane Holt <ho...@yahoo.com>.
--- Scott_Carter@i2.com wrote:
> When calling ant from the command line or a script, what value does it
> return for a build failure?  for a successful build?

0 on success; 1 on failure.

Diane


=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/