Uploaded image for project: 'Commons Configuration'
  1. Commons Configuration
  2. CONFIGURATION-291

addNodes() doesn't trigger auto saving

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.4
    • Fix Version/s: 1.5
    • Component/s: None
    • Labels:
      None
    • Environment:

      I am using Nightly build dated July 19, 2007

      Description

      When I add nodes the XMLConfiguration with autoSave enabled the file doen't change to reflect new nodes. Here is an example

      XMLConfiguration config = new XMLConfiguration("c:
      conf.xml");
      config.setAutoSave(true) ;
      ConfigurationNode childNode = new HierarchicalConfiguration.Node("ChildNodeName","ChildNodeValue");
      List nodes = new ArrayList();
      nodes.add(childNode);
      config.addNodes(null,nodes);

      config.xml didn't change to include child node.

        Attachments

          Activity

            People

            • Assignee:
              oheger Oliver Heger
              Reporter:
              ifridkina irina fridkina
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: