From 97ef67ba8dca8d5f6c961793c6d47a9061e1ba20 Mon Sep 17 00:00:00 2001 From: Melloware Date: Wed, 13 Mar 2024 10:34:41 -0400 Subject: [PATCH] Fix #648: Files.walk allow FOLLOW_LINKS (#649) --- .../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