Actually, I just dug up the thread.  It wasn't ERRORLEVEL that was the
problem.  It is the exit command:

http://marc.theaimsgroup.com/?l=ant-dev&m=101216735706848&w=2


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