ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Weiqi Gao <>
Subject Return code from Ant
Date Tue, 28 Oct 2003 03:29:59 GMT

I'm writing some Unix shell scripts that invoke several Ant build
files.  However in my testing I discovered that Ant's return code is
always 0 (this is the case for several tasks I tried) regardless of the
success or failure of the targets invoked.

Am I doomed in my attempt to run something like this:

# Run buildfile1.  If successful, run buildfile2.
ant -f buildfile1.xml && ant -f buildfile2.xml

Or is there some way around this problem?

Weiqi Gao

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

View raw message