Hey, I found something -- ERRORLEVEL. Looks like I can capture the return
code from Ant by testing on that, and set it to a var to hold onto it.
Ie., add:

if errorlevel 1 set RC=1

after the "$JAVACMD..." lines. Then, in your makefile, you can do:

@ant.bat ; if $$RC ; then echo bad bongos ; fi

Or anyone running it from a DOS command prompt can do:

C:\> ant || echo oopsy

(I'm learning far more about DOS batch files than I ever intended to --
you owe me! :)

Diane


=====
([EMAIL PROTECTED])



__________________________________________________
Do You Yahoo!?
Yahoo! Sports - live college hoops coverage
http://sports.yahoo.com/

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to