From e7645754c89b4d4460a058dc84d62cfd7352c750 Mon Sep 17 00:00:00 2001 From: Melloware Date: Mon, 20 Feb 2023 14:06:10 -0500 Subject: [PATCH] Fix #31307: Correct Windows paths in native image --- .../runtime/src/main/java/io/quarkus/runtime/ResourceHelper.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/runtime/src/main/java/io/quarkus/runtime/ResourceHelper.java b/core/runtime/src/main/java/io/quarkus/runtime/ResourceHelper.java index 3d37825a5450a..0d7f214e37a59 100644 --- a/core/runtime/src/main/java/io/quarkus/runtime/ResourceHelper.java +++ b/core/runtime/src/main/java/io/quarkus/runtime/ResourceHelper.java @@ -13,6 +13,7 @@ public class ResourceHelper { public static void registerResources(String resource) { + resource = resource.replace('\\', '/')); // correct Windows paths Version currentGraalVmVersion = Version.getCurrent(); if (currentGraalVmVersion.compareTo(22, 3) >= 0) { // Use the public API RuntimeResourceAccess with GraalVM >= 22.3