Skip to content

Commit 50942d7

Browse files
committed
[GR-32037] Only scan for resources in jar if really a jar #3467.
PullRequest: graal/9134
2 parents 24856c9 + 6deecfd commit 50942d7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
import java.util.regex.Pattern;
5151
import java.util.stream.Collectors;
5252

53+
import com.oracle.svm.core.util.ClasspathUtils;
5354
import org.graalvm.compiler.debug.DebugContext;
5455
import org.graalvm.compiler.options.Option;
5556
import org.graalvm.compiler.options.OptionType;
@@ -212,7 +213,7 @@ public void duringAnalysis(DuringAnalysisAccess access) {
212213
try {
213214
if (classpathFile.isDirectory()) {
214215
scanDirectory(debugContext, classpathFile, includePatterns, excludePatterns);
215-
} else {
216+
} else if (ClasspathUtils.isJar(classpathFile.toPath())) {
216217
scanJar(debugContext, classpathFile, includePatterns, excludePatterns);
217218
}
218219
} catch (IOException ex) {

0 commit comments

Comments
 (0)