You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Jerry Hehman (JIRA)" <ji...@codehaus.org> on 2007/07/03 22:21:13 UTC

[jira] Created: (MNG-3087) mvn.bat does not return proper errorlevel

mvn.bat does not return proper errorlevel
-----------------------------------------

                 Key: MNG-3087
                 URL: http://jira.codehaus.org/browse/MNG-3087
             Project: Maven 2
          Issue Type: Bug
          Components: Command Line
    Affects Versions: 2.0.7
            Reporter: Jerry Hehman
            Priority: Minor
         Attachments: mvn.bat

The mvn.bat script always exits with code 0 on Windows XP/NT. With version 2.0.7, the following line was removed from the error section:

if "%OS%"=="Windows_NT" @endlocal

This causes the ERROR_CODE to retain the value 0 when the program exits. Replacing this line solves the problem.

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

        

[jira] Closed: (MNG-3087) mvn.bat does not return proper errorlevel

Posted by "Carlos Sanchez (JIRA)" <ji...@codehaus.org>.
     [ http://jira.codehaus.org/browse/MNG-3087?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carlos Sanchez closed MNG-3087.
-------------------------------

      Assignee: Carlos Sanchez
    Resolution: Duplicate

> mvn.bat does not return proper errorlevel
> -----------------------------------------
>
>                 Key: MNG-3087
>                 URL: http://jira.codehaus.org/browse/MNG-3087
>             Project: Maven 2
>          Issue Type: Bug
>          Components: Command Line
>    Affects Versions: 2.0.7
>            Reporter: Jerry Hehman
>            Assignee: Carlos Sanchez
>            Priority: Minor
>         Attachments: mvn.bat
>
>
> The mvn.bat script always exits with code 0 on Windows XP/NT. With version 2.0.7, the following line was removed from the error section:
> if "%OS%"=="Windows_NT" @endlocal
> This causes the ERROR_CODE to retain the value 0 when the program exits. Replacing this line solves the problem.

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