jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 2 & 3
  • MNG-3087

mvn.bat does not return proper errorlevel

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Minor Minor
  • Resolution: Duplicate
  • Affects Version/s: 2.0.7
  • Fix Version/s: None
  • Component/s: Command Line
  • Labels:
    None
  • Patch Submitted:
    Yes

Description

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.

  • Options
    • Sort By Name
    • Sort By Date
    • Ascending
    • Descending
    • Download All

Attachments

  1. File
    mvn.bat
    03/Jul/07 3:20 PM
    5 kB
    Jerry Hehman

Issue Links

duplicates

Bug - A problem which impairs or prevents the functions of the product. MNG-3084 mvn.bat in maven 2.0.7 does not return the correct error code.

  • Major - Major loss of function.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
There are no comments yet on this issue.

People

  • Assignee:
    Carlos Sanchez
    Reporter:
    Jerry Hehman
Vote (0)
Watch (1)

Dates

  • Created:
    03/Jul/07 3:20 PM
    Updated:
    03/Jul/07 3:36 PM
    Resolved:
    03/Jul/07 3:36 PM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.