Skip to content

Commit

Permalink
Qute: fix for processor when running in Eclipse IDE
Browse files Browse the repository at this point in the history
  • Loading branch information
FroMage committed Jun 1, 2022
1 parent 5177698 commit 7765433
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2492,6 +2492,16 @@ private void scan(Path root, Path directory, String basePath, BuildProducer<HotD
Iterator<Path> iter = files.iterator();
while (iter.hasNext()) {
Path filePath = iter.next();
/*
* Fix for https://github.com/quarkusio/quarkus/issues/25751 where running tests in Eclipse
* sometimes produces `/templates/tags` (absolute) files listed for `templates` (relative)
* directories, so we work around this
*/
if (!directory.isAbsolute()
&& filePath.isAbsolute()
&& filePath.getRoot() != null) {
filePath = filePath.getRoot().relativize(filePath);
}
if (Files.isRegularFile(filePath)) {
LOGGER.debugf("Found template: %s", filePath);
String templatePath = root.relativize(filePath).toString();
Expand Down

0 comments on commit 7765433

Please sign in to comment.