Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-1778

instances/myinst/bin/karaf.bat leaks environment variables to shell

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • karaf-1.2.0
    • karaf-1.2.0
    • Karaf
    • None
    • Windows

    Description

      When launching a Karaf instance using the instances\myinst\bin\karaf.bat command the KARAF_BASE environment variable is leaked to the parent shell. This has the nasty side effect that if you try to launch the root Karaf instance again (with bin\karaf.bat) it starts myinst instead!

      This can easily be fixed by moving the setlocal call one line up as in the attached karaf.bat file

      Attachments

        1. karaf.bat
          1 kB
          David Bosschaert

        Activity

          People

            gnodet Guillaume Nodet
            bosschaert David Bosschaert
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: