You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Michael Osipov (JIRA)" <ji...@apache.org> on 2016/01/18 22:53:39 UTC

[jira] [Comment Edited] (MNG-5963) mvn.cmd does not return ERROR_CODE

    [ https://issues.apache.org/jira/browse/MNG-5963?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15105864#comment-15105864 ] 

Michael Osipov edited comment on MNG-5963 at 1/18/16 9:53 PM:
--------------------------------------------------------------

Did I miss something? There is an {{@endlocal}} in the script, see [here|https://git-wip-us.apache.org/repos/asf?p=maven.git;a=blob;f=apache-maven/src/bin/mvn.cmd;h=993866321d3b0fdcec53ff4940e1c48c1557cc3e;hb=HEAD#l166]. Please retry from master.


was (Author: michael-o):
Did I miss something? There is an {{@endlocal}} in the script, see [here|https://git-wip-us.apache.org/repos/asf?p=maven.git;a=blob;f=apache-maven/src/bin/mvn.cmd;h=993866321d3b0fdcec53ff4940e1c48c1557cc3e;hb=HEAD#l166].

> mvn.cmd does not return ERROR_CODE
> ----------------------------------
>
>                 Key: MNG-5963
>                 URL: https://issues.apache.org/jira/browse/MNG-5963
>             Project: Maven
>          Issue Type: Bug
>    Affects Versions: 3.3.9
>         Environment: Windows 10
>            Reporter: Larry Singer
>
> mvn.cmd does not return an ERROR_CODE value to an enclosing script in WIndows. Running this script:
> @ECHO OFF
> CALL mvn clean install
> echo "%ERROR_CODE%"
> Now shows "". Previously it showed "0" for success and "1" for error.
> It appears that there is an @endlocal missing. A possible fix is to add 
> @endlocal & set ERROR_CODE=%ERROR_CODE%
> before 
> exit /B %ERROR_CODE%



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)