diff --git a/core/deployment/src/main/java/io/quarkus/deployment/steps/ConfigGenerationBuildStep.java b/core/deployment/src/main/java/io/quarkus/deployment/steps/ConfigGenerationBuildStep.java index af8f03468ffff..0793c514d4346 100644 --- a/core/deployment/src/main/java/io/quarkus/deployment/steps/ConfigGenerationBuildStep.java +++ b/core/deployment/src/main/java/io/quarkus/deployment/steps/ConfigGenerationBuildStep.java @@ -260,8 +260,8 @@ public void watchConfigFiles(BuildProducer wa for (URI location : locations) { Path path = location.getScheme() != null ? Paths.get(location) : Paths.get(location.getPath()); if (!Files.isDirectory(path)) { - configWatchedFiles.add(location.toString()); - configWatchedFiles.add(appendProfileToFilename(location.toString(), profile)); + configWatchedFiles.add(path.toString()); + configWatchedFiles.add(appendProfileToFilename(path.toString(), profile)); } } });