Hi,
ERRORLEVEL merely reflects errno, and that can change each time you execute a command
I think the problem is the /b in exit /b %ANT_ERROR%
here is why
$ perl -le" print system 'errorexit1.bat' " $ exit 1 256 $ perl -le" print system 'errorexitb1.bat' " $ exit /b 1 0 $
This tells me you are probably supposed to system antRun.bat or https://github.com/apache/ant/blob/master/src/script/antRun.pl
In reply to Re^3: system call returns incorrect in windows (use antRun)
by Anonymous Monk
in thread system call returns incorrect in windows
by ericaQA
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |