Uploaded image for project: 'OpenEJB'
  1. OpenEJB
  2. OPENEJB-2024

openejb.bat incorrectly identifies an incorrect OPENEJB_HOME in Win 8

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 4.6.0
    • Fix Version/s: None
    • Component/s: deployment
    • Labels:
      None

      Description

      openejb.bat contains following line:

      set OPENEJB_CORE_JAR="%OPENEJB_HOME%\lib\openejb-core-.jar;%OPENEJB_HOME%\lib\javaee-api-.jar"

      later on following check is made:

      if exist %OPENEJB_CORE_JAR% goto openejbHomeSet

      The "exist" function in Win 8 returns false if two files are supplied in expression.

      This (also the way it is currently implemented in 4.5.0) works:

      REM echo Provide ONLY ONE file pattern here!
      set OPENEJB_CORE_JAR="%OPENEJB_HOME%\lib\openejb-core-*.jar"
      if exist %OPENEJB_CORE_JAR% goto openejbHomeSet

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              reinis_v Reinis Vicups
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: