Uploaded image for project: 'Geronimo'
  1. Geronimo
  2. GERONIMO-4525

No effective exit code for all Windows commands

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.3
    • 2.1.4, 2.2
    • commands
    • Security Level: public (Regular issues)
    • None
    • MS Windows

    • 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

      Attachments

        1. Geronimo-4525_Jack.patch
          21 kB
          Jun Jie Cai

        Activity

          People

            gawor@mcs.anl.gov Jarek Gawor
            caijunj Jun Jie Cai
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: