From 9874cf089009fe307291143b5224b13795328f7a Mon Sep 17 00:00:00 2001 From: Martin Kouba Date: Thu, 14 Mar 2024 11:28:21 +0100 Subject: [PATCH] Qute: fix the NoRestartTemplatesDevModeTest on Windows - follows up on https://github.com/quarkusio/quarkus/pull/39294 --- .../qute/deployment/QuteProcessor.java | 20 +++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/extensions/qute/deployment/src/main/java/io/quarkus/qute/deployment/QuteProcessor.java b/extensions/qute/deployment/src/main/java/io/quarkus/qute/deployment/QuteProcessor.java index 1b8e728a13d53..aacd2d39e48e0 100644 --- a/extensions/qute/deployment/src/main/java/io/quarkus/qute/deployment/QuteProcessor.java +++ b/extensions/qute/deployment/src/main/java/io/quarkus/qute/deployment/QuteProcessor.java @@ -2194,7 +2194,9 @@ private void scanPath(Path rootPath, Path path, QuteConfig config, TemplateRoots Path relativePath = rootPath.relativize(file); if (templateRoots.isRoot(relativePath)) { LOGGER.debugf("Found templates dir: %s", file); - scan(file, file, relativePath.toString() + File.separatorChar, watchedPaths, templatePaths, + // The base path is an OS-specific path relative to the template root + String basePath = relativePath.toString() + File.separatorChar; + scan(file, file, basePath, watchedPaths, templatePaths, nativeImageResources, config); } else if (templateRoots.maybeRoot(relativePath)) { @@ -3389,15 +3391,21 @@ private static void produceTemplateBuildItems(BuildProducer