Hello,
I cannot find the functionality for commenting / uncommenting particular
properties by their names. Let's say I have the property like this:
|app.dateFields=tranDate,expectedCloseDate,\
closeDate,createdDate,lastModifiedDate,startDate,endDate,\
salesEffectiveDate,shipDate,actualShipDate,ccExpireDate,\
revecStartDate,revRecEndDate,validFrom,licenseDateUps,\
blanketStartDateUps,blanketEndDateUps,shipDateFedEx,\
homeDeliveryDateFedEx,dueDate,discountDate,billedDate|
I would like to use something like
|propertiesConfigurationLayout.commentProperty("app.dateFields");|
And have the commented property as a result:
|# app.dateFields=tranDate,expectedCloseDate,\
# closeDate,createdDate,lastModifiedDate,startDate,endDate,\
# salesEffectiveDate,shipDate,actualShipDate,ccExpireDate,\
# revecStartDate,revRecEndDate,validFrom,licenseDateUps,\
# blanketStartDateUps,blanketEndDateUps,shipDateFedEx,\
# homeDeliveryDateFedEx,dueDate,discountDate,billedDate|
And I would like to do the same thing to uncomment the property I need.
Is there a way to do this in Apache Commons Configuration? Or there is
no standard way and I have to implement it on my own?
Initially I have created the topic on stackoverflow
<http://stackoverflow.com/questions/23313323/comment-uncomment-particular-properties-in-java-properties-files-using-apach>
and only after that I've noticed the Mailing List link. Sorry for that.
Thanks in advance,
Sergey