From 3c4bc78a96a24a586703b4faea680ff157071c57 Mon Sep 17 00:00:00 2001 From: melloware Date: Wed, 13 Mar 2024 09:39:17 -0400 Subject: [PATCH] Fix #648: Files.walk allow FOLLOW_LINKS --- .../io/quarkiverse/quinoa/deployment/QuinoaProcessor.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/deployment/src/main/java/io/quarkiverse/quinoa/deployment/QuinoaProcessor.java b/deployment/src/main/java/io/quarkiverse/quinoa/deployment/QuinoaProcessor.java index 740262a5..abc6cfe6 100644 --- a/deployment/src/main/java/io/quarkiverse/quinoa/deployment/QuinoaProcessor.java +++ b/deployment/src/main/java/io/quarkiverse/quinoa/deployment/QuinoaProcessor.java @@ -11,6 +11,7 @@ import static io.quarkus.deployment.annotations.ExecutionTime.RUNTIME_INIT; import java.io.IOException; +import java.nio.file.FileVisitOption; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; @@ -278,7 +279,7 @@ private HashSet prepareBuiltResources( BuildProducer generatedResources, BuildProducer nativeImageResources, Path targetDir) throws IOException { - final List files = Files.walk(targetDir).filter(Files::isRegularFile) + final List files = Files.walk(targetDir, FileVisitOption.FOLLOW_LINKS).filter(Files::isRegularFile) .collect(Collectors.toList()); final HashSet entries = new HashSet<>(files.size()); LOG.infof("Quinoa target directory: '%s'", targetDir); @@ -453,4 +454,4 @@ public Path getUIDir() { } } -} +} \ No newline at end of file