commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "irina fridkina (JIRA)" <j...@apache.org>
Subject [jira] Updated: (CONFIGURATION-291) addNodes() doesn't trigger auto saving
Date Fri, 10 Aug 2007 01:17:42 GMT

     [ https://issues.apache.org/jira/browse/CONFIGURATION-291?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

irina fridkina updated CONFIGURATION-291:
-----------------------------------------

    Fix Version/s:     (was: Nightly Builds)

> addNodes() doesn't trigger auto saving
> --------------------------------------
>
>                 Key: CONFIGURATION-291
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-291
>             Project: Commons Configuration
>          Issue Type: Bug
>    Affects Versions: 1.4
>         Environment: I am using Nightly build dated July 19, 2007
>            Reporter: irina fridkina
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message