commit | cdb3b162d7c0ba75cf5f816abc043d5362068f29 | [log] [tgz] |
---|---|---|
author | Anatole Tresch <atsticks@gmail.com> | Sun Aug 25 14:19:13 2019 +0200 |
committer | Anatole Tresch <atsticks@gmail.com> | Sun Aug 25 14:19:13 2019 +0200 |
tree | f6974d2d9ac2b6d82b8c5fffc2d3ca2bf1fbffd7 | |
parent | b3c2820e9878dc3df683e3f0079f2be4829b410a [diff] |
TAMAYA-165 Ensuring multiple properties in different jars all loaded and ordered the correct way for evaluation.
diff --git a/code/spi-support/src/main/java/org/apache/tamaya/spisupport/propertysource/JavaConfigurationPropertySource.java b/code/spi-support/src/main/java/org/apache/tamaya/spisupport/propertysource/JavaConfigurationPropertySource.java index ca65c97..0b90ca2 100644 --- a/code/spi-support/src/main/java/org/apache/tamaya/spisupport/propertysource/JavaConfigurationPropertySource.java +++ b/code/spi-support/src/main/java/org/apache/tamaya/spisupport/propertysource/JavaConfigurationPropertySource.java
@@ -88,6 +88,7 @@ for (URL currentUrl:propertyLocations) { propertySources.add(new SimplePropertySource(currentUrl)); } + propertySources.sort(PropertySourceComparator.getInstance()); return propertySources; }