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

config:prop* command's '-b' option not as documented

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.3.1, 2.3.3
    • 2.4.0, 2.3.4
    • karaf
    • None
    • Windows 7 + JDK 1.6

    Description

      The documentation describes config:prop* commands as having a -b option to bypass storage.
      But actually this -b option only has affect when combined with -p option, otherwise it is the -b option to the config:update command that determines if changes are persisted to disk.

      As example:

      karaf@root> cat etc/org.ops4j.pax.logging.cfg|grep foo
      karaf@root> config:edit org.ops4j.pax.logging
      karaf@root> config:propappend -b log4j.logger.foo.bar DEBUG
      karaf@root> config:update
      karaf@root> cat etc/org.ops4j.pax.logging.cfg|grep foo
      log4j.logger.foo.bar = DEBUG
      

      Attachments

        Activity

          People

            cschneider Christian Schneider
            ophers Opher Shachar
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: