ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <hol...@yahoo.com>
Subject Re: need help setting up automated build
Date Fri, 26 Jan 2001 16:16:00 GMT
--- David Corbin <dcorbin@machturtle.com> wrote:
> Does Ant return a different code to indicate failure?  If so, this could
> be done by modifying (or wrapping) the ANT launch script...

Yes. I added the following to my 'ant' script:

  java -classpath $LOCALCLASSPATH ... || {
    exit 1
  }
  exit 0

so I can do 'ant || dosomethingonfailure'. I could also add a
dosomethingonfailure in the "exit 1" block and/or a dosomethingonsuccess
before the "exit 0", just haven't yet.

Diane

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



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

Mime
View raw message