[
https://issues.apache.org/jira/browse/CONFIGURATION-645?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15720279#comment-15720279
]
Oliver Heger commented on CONFIGURATION-645:
--------------------------------------------
Unfortunately, {{INIConfiguration}} never supported comments in the way this is
done for instance by {{PropertiesConfiguration}} with its
{{PropertiesConfigurationLayout}} class.
It would be good to have generic support for comments or other layouting
aspects for all kinds of configuration files, i.e. having a generic version of
{{PropertiesConfigurationLayout}}. However, implementing this is probably not a
trivial task. Everybody who wants to work on this feature is very welcome.
> INIConfiguration: comment lines are removed after saving changes
> ----------------------------------------------------------------
>
> Key: CONFIGURATION-645
> URL: https://issues.apache.org/jira/browse/CONFIGURATION-645
> Project: Commons Configuration
> Issue Type: Bug
> Affects Versions: 2.1
> Reporter: javix
>
> I have a very large ini file with multiple sections. I added some comment
> lines to my sections.
> Before closing my app some values will be changed. But afterwards the changed
> file does not contains my comments.
> Here is a example:
> {noformat}
> [SECTION]
> ;comment for this section
> lastTimeStamp=(here some date)
> {noformat}
> After saving the file contains following content:
> {noformat}
> [SECTION]
> lastTimeStamp=(here some date)
> {noformat}
> I think it is a bug, because the comments are allowed and very useful content
> of a ini file and should not be removed.
> (sorry for my not perfect english)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)