Geronimo
  1. Geronimo
  2. GERONIMO-4525

No effective exit code for all Windows commands

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1.3
    • Fix Version/s: 2.1.4, 2.2
    • Component/s: commands
    • Security Level: public (Regular issues)
    • Labels:
      None
    • Environment:

      MS Windows

    • Patch Info:
      Patch Available

      Description

      There are multiple problems in the current Windows batch commands (including geronimo.bat, startup.bat, etc.)

      • It's not recommended to define an environment variable with the name ERRORLEVEL. See [1].
      • Set a value to ERRORLEVEL has no effect to the exit code of the batch command (so the documented exit code "0" and "1" are not actually there).
      • The value of the ERRORLEVEL variable will also get unset when the "@endlocal" command is called.

      [1] http://blogs.msdn.com/oldnewthing/archive/2008/09/26/8965755.aspx

        Activity

        Jack Cai created issue -
        Jack Cai made changes -
        Field Original Value New Value
        Attachment Geronimo-4525.patch [ 12399341 ]
        Jack Cai made changes -
        Attachment Geronimo-4525.patch [ 12399341 ]
        Jack Cai made changes -
        Attachment Geronimo-4525_Jack.patch [ 12399424 ]
        Jarek Gawor made changes -
        Assignee Jarek Gawor [ gawor@mcs.anl.gov ]
        Jarek Gawor made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Jack Cai made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Jarek Gawor
            Reporter:
            Jack Cai
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development