commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Oliver Heger (JIRA)" <>
Subject [jira] [Commented] (CONFIGURATION-645) INIConfiguration: comment lines are removed after saving changes
Date Sun, 04 Dec 2016 17:23:00 GMT


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:
>             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
> Before closing my app some values will be changed. But afterwards the changed file does
not contains my comments.
> Here is a example:
> {noformat}
> ;comment for this section
> lastTimeStamp=(here some date)
> {noformat}
> After saving the file contains following content:
> {noformat}
> 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

View raw message