commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan Alon (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CONFIGURATION-704) an option to override property key instead of creation of lists
Date Mon, 04 Jun 2018 08:35:00 GMT

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

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

you are correct, this is what i want, but the problem is I want to load the override con figuration
files with the "include" functionality and not hard coded in the code, I was able to do what
I want when overriding your "addPropertyInternal" function. but it would be nice to have a
property to disable and enable this feature.

> 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)

Mime
View raw message