From f9dbe64c78a4c61a659d0f24c71869268fef0972 Mon Sep 17 00:00:00 2001 From: Jakub Jedlicka Date: Tue, 19 Nov 2024 22:23:14 +0100 Subject: [PATCH] Fix wrong generated web endpoint path on Windows The web endpoint path was created from file path which is differ on Windows. This caused enpoint path be like `/app\index-styles.js` --- .../locator/deployment/WebDependencyLocatorProcessor.java | 1 + 1 file changed, 1 insertion(+) diff --git a/extensions/web-dependency-locator/deployment/src/main/java/io/quarkus/webdependency/locator/deployment/WebDependencyLocatorProcessor.java b/extensions/web-dependency-locator/deployment/src/main/java/io/quarkus/webdependency/locator/deployment/WebDependencyLocatorProcessor.java index d0a840540fb2d..6ee11770182c9 100644 --- a/extensions/web-dependency-locator/deployment/src/main/java/io/quarkus/webdependency/locator/deployment/WebDependencyLocatorProcessor.java +++ b/extensions/web-dependency-locator/deployment/src/main/java/io/quarkus/webdependency/locator/deployment/WebDependencyLocatorProcessor.java @@ -85,6 +85,7 @@ public void findRelevantFiles(BuildProducer ge webstream.forEach(path -> { if (Files.isRegularFile(path)) { String endpoint = SLASH + web.relativize(path); + endpoint = endpoint.replace('\\', '/'); try { if (path.toString().endsWith(DOT_HTML)) { generatedStaticProducer.produce(new GeneratedStaticResourceBuildItem(endpoint,