Skip to content

Commit

Permalink
Merge pull request #20187 from stuartwdouglas/20179
Browse files Browse the repository at this point in the history
Add test resources dir to CP
  • Loading branch information
aloubyansky authored Sep 16, 2021
2 parents e5eb6ac + 8a7897a commit 19c1509
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@

import java.nio.file.Path;
import java.nio.file.Paths;
import java.util.ArrayList;
import java.util.Collections;
import java.util.LinkedHashSet;
import java.util.List;
import java.util.Optional;
import java.util.Set;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.regex.Pattern;

Expand Down Expand Up @@ -121,8 +122,11 @@ public void init() {
}
if (testCuratedApplication == null) {
try {
List<Path> paths = new ArrayList<>();
Set<Path> paths = new LinkedHashSet<>();
paths.add(Paths.get(context.getApplicationRoot().getTest().get().getClassesPath()));
if (context.getApplicationRoot().getTest().get().getResourcesOutputPath() != null) {
paths.add(Paths.get(context.getApplicationRoot().getTest().get().getResourcesOutputPath()));
}
paths.addAll(curatedApplication.getQuarkusBootstrap().getApplicationRoot().toList());
testCuratedApplication = curatedApplication.getQuarkusBootstrap().clonedBuilder()
.setMode(QuarkusBootstrap.Mode.TEST)
Expand Down

0 comments on commit 19c1509

Please sign in to comment.