Windows Batch file doesn't propagate exit code properly
-------------------------------------------------------
Key: MAPPASM-100
URL: http://jira.codehaus.org/browse/MAPPASM-100
Project: Mojo AppAssembler Plugin
Issue Type: Bug
Affects Versions: 1.0
Environment: Windows
Reporter: Martin Horvath
Regardless of the error code I return via Java {{System.exit\(n)}} call, the
batch file always returns error code 1.
The batch file contains the following:
{code}
:error
if "%OS%"=="Windows_NT" @endlocal
set ERROR_CODE=1
{code}
It should be:
{code}
:error
if "%OS%"=="Windows_NT" @endlocal
set ERROR_CODE=%ERRORLEVEL%
{code}
This prevents running subsequent actions based on a program error code.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email