diff options
| author | Antoine Levy-Lambert <antoine@apache.org> | 2010-10-19 21:23:22 +0000 |
|---|---|---|
| committer | Antoine Levy-Lambert <antoine@apache.org> | 2010-10-19 21:23:22 +0000 |
| commit | aaa422b0045cab496b2ba0dedb5ceb3dd6c19057 (patch) | |
| tree | 2146a5e5251374a60489238dfe9713be9fcd9c41 /src/script | |
| parent | 3ce577022e6aa60843c74051787f9f941b163b32 (diff) | |
| download | ant-aaa422b0045cab496b2ba0dedb5ceb3dd6c19057.tar.gz | |
ant.bat exit strategy improvements and issues, Bugzilla 41039, patch supplied by Mark DeLaFranier
git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@1024417 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/script')
| -rwxr-xr-x | src/script/ant.bat | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/script/ant.bat b/src/script/ant.bat index a70841895..3486e144c 100755 --- a/src/script/ant.bat +++ b/src/script/ant.bat @@ -191,13 +191,6 @@ if not "%_ANT_CMD_LINE_ARGS%"=="" set ANT_CMD_LINE_ARGS= if "%ANT_ERROR%"=="0" goto mainEnd -rem Set the return code if we are not in NT. We can only set -rem a value of 1, but it's better than nothing. -if not "%OS%"=="Windows_NT" echo 1 > nul | choice /n /c:1 - -rem Set the ERRORLEVEL if we are running NT. -if "%OS%"=="Windows_NT" color 00 - goto omega :mainEnd @@ -222,3 +215,4 @@ if exist "%USERPROFILE%\antrc_post.bat" call "%USERPROFILE%\antrc_post.bat" :omega +exit /b %ANT_ERROR% |
