I plan to write a utility for commenting/uncommenting/editing properties inside *.properties files. i know i can read/modify/write those using the Properties class, but im looking for a library that will let me access things like commented lines, preserve formatting and line order when writing back etc.
does such a library exist?
The closest thing I am aware of is Apache Commons Configuration. Take a look on PropertiesConfiguration.
EDIT Create a PropertiesConfigurationLayout object from your properties then you will be able to keep the information about whitespaces and comments. It also will help you to keep track on properties changes
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With