Hi Diane,

*Sorry* to bring this up again, but I am not sure that that will stop my
makefile running?  Won't it just echo "bad bongos" and carry on to the next
step?

(please note, again, my knowledge of makefiles is very minimal!)

Cheers,

David





Diane Holt <[EMAIL PROTECTED]> on 03/15/2002 05:05:05 PM

Please respond to "Ant Users List"
      <[EMAIL PROTECTED]>

To:   Ant Users List <[EMAIL PROTECTED]>
cc:    (bcc: David Hay/Lex/Lexmark)
Subject:  Re: Return code from Ant



--- Erik Hatcher <[EMAIL PROTECTED]> wrote:
> 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?!

I did a bit more noodling around and found out you don't actually need to
capture it into a var, so there's no need to change the ant.bat script
afterall -- you can just test on errorlevel itself.

So, for the guy doing it from a Makefile, you just need to have a little
batch file that has:
@echo off
ant && if errorlevel 1 echo bad bongos

and his make target runs that batch file instead -- eg:
runant :
  @runant.bat

And people running 'ant' directly from a command prompt can do:
C:\> ant && if errorlevel 1 echo bad bongos

(Phew! -- are we all done with this now?? ... schlepping through DOSville
isn't exactly what I'd call a party :)

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