You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Dan Alon (JIRA)" <ji...@apache.org> on 2018/06/01 17:18:00 UTC

[jira] [Commented] (CONFIGURATION-704) an option to override property key instead of creation of lists

    [ https://issues.apache.org/jira/browse/CONFIGURATION-704?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16498275#comment-16498275 ] 

Dan Alon commented on CONFIGURATION-704:
----------------------------------------

My usage is for defining the user properties file that should override the default properties file through the include feature,
The problem is the default behavior of the Apache config is when defining the same key in the properties file the value won’t be overridden but the new value is added to the key.
I want to be able to define that a key should be unique and when defining the same key in the properties file the old value should be override with the new one. 

> an option to override property key instead of creation of lists
> ---------------------------------------------------------------
>
>                 Key: CONFIGURATION-704
>                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-704
>             Project: Commons Configuration
>          Issue Type: New Feature
>    Affects Versions: 2.2
>            Reporter: Dan Alon
>            Priority: Major
>
> Hi,
>  
> I want an option when loading a properties file from the include functionality (or in the same file) to disable the list feature that when entering the same key it creates a list instead of override the old value.
> for example when entering these properties:
> colors.pie = #FF0000
> colors.pie = #00FF00
> colors.pie = #0000FF
> instead of creating a string with seperator like this  colors.pie =#FF0000,#00FF00,#0000FF
>  
> i want only the last value colors.pie = #0000FF



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)