DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ· RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://issues.apache.org/bugzilla/show_bug.cgi?id=39182>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ· INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=39182 Summary: Preserve file structure (line comments) when re-saving properties file Product: Commons Version: unspecified Platform: Other OS/Version: other Status: NEW Severity: normal Priority: P2 Component: Configuration AssignedTo: commons-dev@jakarta.apache.org ReportedBy: [EMAIL PROTECTED] This bug applies when an application allows both manual editing of its configuration files, and manipulation of the configuration via software. When saving the configuration file after changing, its file structure - file, section and line comments - will all be lost. Next time a human tries to edit the configuration file, all property documentation will be lost. I have created a fix for this problem, applicable to PropertiesConfiguration and XMLPropertiesConfiguration. The fix allows these classes to preserve a list of comment lines preceding each property line. By default, comments are not preserved; in case the comment preservation is required, it should be enabled prior to loading the configuration file using: AbstractFileConfiguration.setDefaultPreserveComments(true); The fix is implemented and tested, attached as a patch file to this bug. -- Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug, or are watching the assignee. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]