Skip to content

Commit 6d02d43

Browse files
committed
[GR-65845] Prevent -H:ExcludeResources=... from excluding directory resources.
PullRequest: graal/21233
2 parents 404a5cc + 23d066c commit 6d02d43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

substratevm/src/com.oracle.svm.hosted/src/com/oracle/svm/hosted/ResourcesFeature.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -546,7 +546,7 @@ public List<ConditionWithOrigin> isIncluded(Module module, String resourceName,
546546
if (!rp.moduleNameMatches(moduleName)) {
547547
continue;
548548
}
549-
if (rp.pattern.matcher(resourceName).matches() || rp.pattern.matcher(relativePathWithTrailingSlash).matches()) {
549+
if (rp.pattern.matcher(resourceName).matches()) {
550550
return List.of(); // nothing should match excluded resource
551551
}
552552
}

0 commit comments

Comments
 (0)