@@ -3355,31 +3355,29 @@ public static String getName(InjectionPointInfo injectionPoint) {
3355
3355
* @param templatePaths
3356
3356
* @param watchedPaths
3357
3357
* @param nativeImageResources
3358
- * @param osSpecificResourcePath The OS-specific resource path, i.e. templates\nested\foo.html
3358
+ * @param resourcePath The relative resource path, including the template root
3359
3359
* @param templatePath The path relative to the template root; using the {@code /} path separator
3360
3360
* @param originalPath
3361
3361
* @param config
3362
3362
*/
3363
3363
private static void produceTemplateBuildItems (BuildProducer <TemplatePathBuildItem > templatePaths ,
3364
3364
BuildProducer <HotDeploymentWatchedFileBuildItem > watchedPaths ,
3365
- BuildProducer <NativeImageResourceBuildItem > nativeImageResources , String osSpecificResourcePath ,
3365
+ BuildProducer <NativeImageResourceBuildItem > nativeImageResources , String resourcePath ,
3366
3366
String templatePath ,
3367
3367
Path originalPath , QuteConfig config ) {
3368
3368
if (templatePath .isEmpty ()) {
3369
3369
return ;
3370
3370
}
3371
- // OS-agnostic full path, i.e. templates/foo.html
3372
- String osAgnosticResourcePath = toOsAgnosticPath (osSpecificResourcePath , originalPath .getFileSystem ());
3373
3371
LOGGER .debugf ("Produce template build items [templatePath: %s, osSpecificResourcePath: %s, originalPath: %s" ,
3374
3372
templatePath ,
3375
- osSpecificResourcePath ,
3373
+ resourcePath ,
3376
3374
originalPath );
3377
3375
boolean restartNeeded = true ;
3378
3376
if (config .devMode .noRestartTemplates .isPresent ()) {
3379
- restartNeeded = !config .devMode .noRestartTemplates .get ().matcher (osAgnosticResourcePath ).matches ();
3377
+ restartNeeded = !config .devMode .noRestartTemplates .get ().matcher (resourcePath ).matches ();
3380
3378
}
3381
- watchedPaths .produce (new HotDeploymentWatchedFileBuildItem (osAgnosticResourcePath , restartNeeded ));
3382
- nativeImageResources .produce (new NativeImageResourceBuildItem (osSpecificResourcePath ));
3379
+ watchedPaths .produce (new HotDeploymentWatchedFileBuildItem (resourcePath , restartNeeded ));
3380
+ nativeImageResources .produce (new NativeImageResourceBuildItem (resourcePath ));
3383
3381
templatePaths .produce (
3384
3382
new TemplatePathBuildItem (templatePath , originalPath ,
3385
3383
readTemplateContent (originalPath , config .defaultCharset )));
@@ -3399,7 +3397,7 @@ private void scanTemplateRootSubtree(PathTree pathTree, Path templateRoot,
3399
3397
return ;
3400
3398
}
3401
3399
produceTemplateBuildItems (templatePaths , watchedPaths , nativeImageResources ,
3402
- visit .getRelativePath (visit . getPath (). getFileSystem (). getSeparator () ),
3400
+ visit .getRelativePath ("/" ),
3403
3401
templatePath , visit .getPath (), config );
3404
3402
}
3405
3403
});
0 commit comments