[prev in list] [next in list] [prev in thread] [next in thread]
List: jakarta-commons-user
Subject: Re: [Configuration]
From: Oliver Heger <oliver.heger () oliver-heger ! de>
Date: 2016-08-24 19:40:31
Message-ID: b4fcd5f5-37f4-3f21-21d2-adea260dce55 () oliver-heger ! de
[Download RAW message or body]
Hi,
Am 24.08.2016 um 21:31 schrieb Michael Fortin:
> Hi, I'm trying to combine two child lists in two configurations and was expecting \
> them to be combined into one longer list, but one seems to be taking precedence \
> over the other. Is there a way to merge child lists?
Don't use CompositeConfiguration, but CombinedConfiguration. Please
refer to the user guide [1] and make sure you read the chapter about
node combiners.
HTH
Oliver
[1]
http://commons.apache.org/proper/commons-configuration/userguide/howto_combinedconfiguration.html#Combined_Configuration
>
> Here's the unit test:
> https://github.com/m410/commons-configuration-yaml/blob/master/src/test/java/org/m410/config/YamlCompositeConfigurationTest.java \
> <https://github.com/m410/commons-configuration-yaml/blob/master/src/test/java/org/m410/config/YamlCompositeConfigurationTest.java>
> line 48 fails
>
> here's the two configurations:
> https://github.com/m410/commons-configuration-yaml/tree/master/src/test/resource \
> <https://github.com/m410/commons-configuration-yaml/tree/master/src/test/resource>
> thx
>
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic