From 62ae6b89c0a6590ba43270ace7bfeed471a1c366 Mon Sep 17 00:00:00 2001 From: Andy Damevin Date: Fri, 12 Jul 2024 14:36:49 +0200 Subject: [PATCH] Fix windows paths --- .../web/bundler/deployment/BundlingProcessor.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/deployment/src/main/java/io/quarkiverse/web/bundler/deployment/BundlingProcessor.java b/deployment/src/main/java/io/quarkiverse/web/bundler/deployment/BundlingProcessor.java index 05872c4..5b6fc67 100644 --- a/deployment/src/main/java/io/quarkiverse/web/bundler/deployment/BundlingProcessor.java +++ b/deployment/src/main/java/io/quarkiverse/web/bundler/deployment/BundlingProcessor.java @@ -2,9 +2,7 @@ import static io.quarkiverse.web.bundler.deployment.StaticWebAssetsProcessor.makePublic; import static io.quarkiverse.web.bundler.deployment.items.BundleWebAsset.BundleType.GENERATED_ENTRY_POINT; -import static io.quarkiverse.web.bundler.deployment.util.PathUtils.join; -import static io.quarkiverse.web.bundler.deployment.util.PathUtils.prefixWithSlash; -import static io.quarkiverse.web.bundler.deployment.util.PathUtils.surroundWithSlashes; +import static io.quarkiverse.web.bundler.deployment.util.PathUtils.*; import static io.quarkus.deployment.annotations.ExecutionTime.STATIC_INIT; import java.io.IOException; @@ -89,7 +87,7 @@ static void handleBundleDistDir(WebBundlerConfig config, BuildProducer stream = Files.find(bundleDir, 20, (p, i) -> Files.isRegularFile(p))) { stream.forEach(path -> { - final String relativePath = bundleDir.relativize(path).toString(); + final String relativePath = toUnixPath(bundleDir.relativize(path).toString()); final String key = relativePath.replaceAll("-[^-.]+\\.", "."); final String publicBundleAssetPath = join(config.publicBundlePath(), relativePath); final String fileName = path.getFileName().toString();