Skip to content

Commit

Permalink
Merge pull request quarkusio#32893 from stuartwdouglas/32724
Browse files Browse the repository at this point in the history
Fix issue with KnownPathResource manager in native
  • Loading branch information
gsmet authored May 2, 2023
2 parents 9ea8387 + e8207c6 commit 8dd43a4
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,8 @@ public List<Resource> list() {
SortedSet<String> dirSet = directories.tailSet(slashPath);

for (var s : List.of(fileSet, dirSet)) {
for (String i : s) {
for (String file : s) {
var i = file;
if (i.equals(slashPath)) {
continue;
}
Expand All @@ -143,6 +144,9 @@ public List<Resource> list() {
if (!i.substring(slashPath.length()).contains("/")) {
try {
Resource resource = underlying.getResource(i);
if (resource == null && directories.contains(file)) {
resource = new DirectoryResource(file);
}
if (resource == null) {
throw new RuntimeException("Unable to get listed resource " + i + " from directory " + path
+ " for path " + slashPath + " from underlying manager " + underlying);
Expand Down Expand Up @@ -212,4 +216,4 @@ public URL getUrl() {
return null;
}
}
}
}

0 comments on commit 8dd43a4

Please sign in to comment.