[
https://jira.codehaus.org/browse/MAPPASM-100?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Karl Heinz Marbaise closed MAPPASM-100.
---------------------------------------
Resolution: Fixed
Fixed in r16148.
> Windows Batch file doesn't propagate exit code properly
> -------------------------------------------------------
>
> Key: MAPPASM-100
> URL:
https://jira.codehaus.org/browse/MAPPASM-100> Project: Mojo AppAssembler Plugin
> Issue Type: Bug
> Affects Versions: 1.0
> Environment: Windows
> Reporter: Martin Horvath
> Assignee: Karl Heinz Marbaise
> Fix For: 1.2.1
>
> 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, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspaFor more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email