Skip to content

Commit

Permalink
Merge pull request #500 from scireum/feature/sbi/SIRI-891
Browse files Browse the repository at this point in the history
Sorts component conf files in the correct order
  • Loading branch information
sabieber authored Oct 16, 2023
2 parents a37a119 + 619cb73 commit d7b3d94
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/sirius/kernel/Sirius.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import java.time.Duration;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
Expand Down Expand Up @@ -346,7 +347,7 @@ private static void setupApplicationAndSystemConfig() {
// Load test configurations (will override component configs)
classpath.find(Pattern.compile("component-test-([^.]*?)\\.conf"))
.map(Matcher::group)
.sorted()
.sorted(Comparator.reverseOrder())
.forEach(configPath -> {
try {
LOG.INFO("Loading test config: %s", configPath);
Expand All @@ -361,7 +362,7 @@ private static void setupApplicationAndSystemConfig() {
classpath.find(Pattern.compile("component-([^\\-]*?)([^.]*?)\\.conf"))
.map(Matcher::group)
.filter(configPath -> !"test".equals(configPath))
.sorted()
.sorted(Comparator.reverseOrder())
.forEach(configPath -> {
try {
LOG.INFO("Loading config: %s", configPath);
Expand Down

0 comments on commit d7b3d94

Please sign in to comment.