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] Commented: (CONFIGURATION-292) removeChild() doen't trigger auto saving
Date Wed, 05 Sep 2007 23:11:34 GMT

    [ https://issues.apache.org/jira/browse/CONFIGURATION-292?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12525252
] 

irina fridkina commented on CONFIGURATION-292:
----------------------------------------------

Is it posible to add a new event  EVENT_REMOVE_NODE and have this event fired when invoking
 removeNode(ConfigurationNode node) methods of HierarchicalConfiguration and make that method
public?

> removeChild() doen't trigger auto saving
> ----------------------------------------
>
>                 Key: CONFIGURATION-292
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-292
>             Project: Commons Configuration
>          Issue Type: Bug
>    Affects Versions: 1.4
>         Environment: I am using Nightly build dated July 19, 2007 
>            Reporter: irina fridkina
>             Fix For: 2.0
>
>
> When I remove nodes from the XMLConfiguration with autoSave enabled the file doesn't
change. Here is an example 
> XMLConfiguration config = new XMLConfiguration("c:\\conf.xml"); 
> config.setAutoSave(true) ; 
> ConfigurationNode parentNode = config.getRootNode();
> parentNode.removeChild(childName);
> config.xml didn't change to reflect the changes

-- 
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