From f3fe247545f1b7e7bd9061323e74513a2c322810 Mon Sep 17 00:00:00 2001 From: Guillaume Smet Date: Mon, 24 Jun 2024 20:01:56 +0200 Subject: [PATCH] Do not check for multi-release jar when reading files from META-INF --- .../main/java/io/quarkus/paths/PathTreeWithManifest.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/independent-projects/bootstrap/app-model/src/main/java/io/quarkus/paths/PathTreeWithManifest.java b/independent-projects/bootstrap/app-model/src/main/java/io/quarkus/paths/PathTreeWithManifest.java index a8ecc256513a7..8576f4303a30c 100644 --- a/independent-projects/bootstrap/app-model/src/main/java/io/quarkus/paths/PathTreeWithManifest.java +++ b/independent-projects/bootstrap/app-model/src/main/java/io/quarkus/paths/PathTreeWithManifest.java @@ -22,7 +22,8 @@ public abstract class PathTreeWithManifest implements PathTree { - private static final String META_INF_VERSIONS = "META-INF/versions/"; + private static final String META_INF = "META-INF/"; + private static final String META_INF_VERSIONS = META_INF + "versions/"; public static final int JAVA_VERSION; static { @@ -136,6 +137,10 @@ protected void initMultiReleaseMapping(final Map mrMapping) { } protected String toMultiReleaseRelativePath(String relativePath) { + if (relativePath.startsWith(META_INF)) { + return relativePath; + } + return getMultiReleaseMapping().getOrDefault(relativePath, relativePath); }