Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-3411

windows startup scripts don't handle setenv.bat correctly

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Not A Problem
    • 2.4.1
    • 3.0.3, 2.4.1, 4.0.0.M2, 4.0.0.M3
    • karaf
    • None
    • Windows Any

    Description

      When setting variables in setenv.bat they don't find their way to JAVA_DEFAULT_OPTS. This is due to the variable overwrite in line 231.

      set DEFAULT_JAVA_OPTS=%JAVA_MODE% -Xms%JAVA_MIN_MEM% -Xmx%JAVA_MAX_MEM% -Dderby.system.home="%KARAF_DATA%\derby" -Dderby.storage.fileSyncTransactionLog=true -Dcom.sun.management.jmxremote -XX:+UnlockDiagnosticVMOptions -XX:+UnsyncloadClass
      

      Instead it should be:

      set DEFAULT_JAVA_OPTS=%JAVA_MODE% %DEFAULT_JAVA_OPTS% -Xms%JAVA_MIN_MEM% -Xmx%JAVA_MAX_MEM% -Dderby.system.home="%KARAF_DATA%\derby" -Dderby.storage.fileSyncTransactionLog=true -Dcom.sun.management.jmxremote -XX:+UnlockDiagnosticVMOptions -XX:+UnsyncloadClass
      

      to keep the previous contents of DEFAULT_JAVA_OPTS.

      The same applies for karaf.bat.

      Attachments

        1. patch_karaf.bat
          0.8 kB
          Alexander Sahler
        2. patch_servicemix.bat
          0.7 kB
          Alexander Sahler

        Activity

          People

            jbonofre Jean-Baptiste Onofré
            sahlex Alexander Sahler
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: