[
http://jira.codehaus.org/browse/MAPPASM-100?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Carlos Sanchez updated MAPPASM-100:
-----------------------------------
Attachment: MAPPASM-100.patch
Attaching patch. Not committing it because I can't test it on windows.
> 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
> Attachments: MAPPASM-100.patch
>
>
> 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