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

Properties edit doesn't conserve the existing ones

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 4.2.0
    • 4.1.6, 4.2.1
    • karaf
    • None

    Description

      When building a custom distribution, adding file src/main/karaf/assembly-property-edits.xml with:

          <edit>
              <file>org.ops4j.pax.web.cfg</file>
              <operation>put</operation>
              <key>org.osgi.service.http.port</key>
              <value>8182</value>
          </edit>
      

      The result is:

          #Modified by org.apache.karaf.tools.utils.KarafPropertiesFile
          #Thu Jun 07 15:39:28 EDT 2018
          org.osgi.service.http.port=8182
      

      The issue is that it erased all other properties. Normally, this file has the following:

          org.osgi.service.http.port=8181
          javax.servlet.context.tempdir=${karaf.data}/pax-web-jsp
          org.ops4j.pax.web.config.file=${karaf.etc}/jetty.xml
      

      It seems to work fine with previous Karaf 4.1.x plugin version.

      Attachments

        Activity

          People

            jbonofre Jean-Baptiste Onofré
            jbonofre Jean-Baptiste Onofré
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: