Hallo,
ich habe ein merkwürdiges Verhalten beim Autosave von PropertyConfiguration in Apache Commons.
Bei folgendem Code unfktioniert Autosve nicht:
In anyfile.properties wird das Property "test" nicht gespeichert.
Wenn ich allerdings folgendes ausführe:
funktioniert alles.
Bug oder Feature?
Hab ich was übersehen?
regards
eliot
ich habe ein merkwürdiges Verhalten beim Autosave von PropertyConfiguration in Apache Commons.
Bei folgendem Code unfktioniert Autosve nicht:
Code:
File file = new File("anyfile.properties");
PropertyConfiguration conf = new PropertyConfiguration();
conf.load(file);
conf.setAutoSave(true);
conf.setProerty("test","value");
In anyfile.properties wird das Property "test" nicht gespeichert.
Wenn ich allerdings folgendes ausführe:
Code:
File file = new File("anyfile.properties");
PropertyConfiguration conf = new PropertyConfiguration(file);
conf.setAutoSave(true);
conf.setProerty("test","value");
funktioniert alles.
Bug oder Feature?
Hab ich was übersehen?
regards
eliot