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