ant-user mailing list archives

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

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:

#!/bin/sh
#
# Run buildfile1.  If successful, run buildfile2.
#
ant -f buildfile1.xml && ant -f buildfile2.xml

Or is there some way around this problem?

-- 
Weiqi Gao
weiqigao@networkusa.net
http://www.weiqigao.com


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


Mime
View raw message