ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Conor MacNeill" <>
Subject Re: [Bug 314] - Return value in bin/ script BugRat Report#572
Date Sun, 22 Jul 2001 10:11:43 GMT
From: "Nico Seessle" <>
To: <>
Sent: Sunday, July 22, 2001 5:01 AM
Subject: Re: [Bug 314] - Return value in bin/ script BugRat
> 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

echo failed


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.


View raw message