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

variables in cfg files are expanded

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.1.2
    • 4.1.3, 4.2.0.M1
    • karaf
    • None

    Description

      When starting karaf 4.1.2 it automatically expands all variables in cfg files and stores the expanded value.
      As an example, org.ops4j.pax.logging.cfg contains:

      log4j2.appender.rolling.fileName = ${karaf.data}/log/karaf.log

      After starting karaf this becomes

      log4j2.appender.rolling.fileName = C:\\Users\\username\\Downloads\\apache-karaf-4.1.2\\apache-karaf-4.1.2
      data/log/karaf.log

      The same worked fine with karaf 4.1.1, there the variables stay variables even if the file is manually modified.

      Attachments

        Issue Links

          Activity

            People

              gnodet Guillaume Nodet
              j.utzig Johannes Utzig
              Votes:
              3 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: