Hi Jamies, could you show us how the configuration is loaded ?

Emmanuel Bourg


Jamie Guillemette wrote:
Hi Guys,

Was playing with the commons-configuration project last night and for the life 
of me was unable to successfully save configuration changes. No exceptions are 
thrown but the data physically remains unchanged in the properties file.

[code]

public void set(Object value)throws ConfigurationException {
  config.setProperty("name.first",value);
  config.save();
  config.reload();
 }

[/code]

where config is : private PropertiesConfiguration config;
that is successuflly loaded and returns values from the properties file using

[code]
public Object get() {
return config.getString("name.first"); }
[/code]


Anyone know if this is a know bug ?

Thanks
J.


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to