I did this very thing myself and posted it not too long ago and someone
(Conor? Stefan?) replied and told me that it was not compatible with some
versions of DOS that we support.  I believe?!

    Erik


----- Original Message -----
From: "Diane Holt" <[EMAIL PROTECTED]>
To: "Ant Users List" <[EMAIL PROTECTED]>
Sent: Friday, March 15, 2002 4:24 PM
Subject: RE: Return code from Ant


> 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]>
>
>


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

Reply via email to