maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Larry Singer (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (MNG-5963) mvn.cmd does not return ERROR_CODE
Date Thu, 14 Jan 2016 02:32:39 GMT

     [ https://issues.apache.org/jira/browse/MNG-5963?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Larry Singer updated MNG-5963:
------------------------------
    Description: 
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%



  was:
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 fixed is to add 
@endlocal & set ERROR_CODE=%ERROR_CODE%
before 
exit /B %ERROR_CODE%




> 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)

Mime
View raw message