From: "Nico Seessle" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, July 22, 2001 5:01 AM Subject: Re: [Bug 314] - Return value in bin/runant.pl script BugRat Report#572 > > So it does not work.
:-) You are right. Interestingly my testing worked, so I now realize that under NT, at least, this has always worked. The errorlevel is as set by the previous command which was the java command that ran ant. And the exit did indeed close my window which is not cool :-) So, I have backed out the change and I believe it should work anyway. Can you please test in Win9X. BTW, here is the test batch file I am using ----------------------------- @echo off call ant %* if errorlevel 1 goto failed echo ok goto end :failed echo failed :end ----------------------------- The only issue will be if someone executes a command in antrc_post which will reset the errorlevel. I did play around with the choice command but it is an ugly hack :-(. Batch file error management is really a shocker. Thanks Conor
