commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jamie Guillemette" <JMGuilleme...@hotmail.com>
Subject [configuration] - save not working..?
Date Wed, 06 Apr 2005 11:47:54 GMT
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.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message