Skip to content

Commit

Permalink
Fix #648: Files.walk allow FOLLOW_LINKS (#649)
Browse files Browse the repository at this point in the history
  • Loading branch information
melloware authored Mar 13, 2024
1 parent cff7f83 commit 97ef67b
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -278,7 +279,7 @@ private HashSet<BuiltResourcesBuildItem.BuiltResource> prepareBuiltResources(
BuildProducer<GeneratedResourceBuildItem> generatedResources,
BuildProducer<NativeImageResourceBuildItem> nativeImageResources,
Path targetDir) throws IOException {
final List<Path> files = Files.walk(targetDir).filter(Files::isRegularFile)
final List<Path> files = Files.walk(targetDir, FileVisitOption.FOLLOW_LINKS).filter(Files::isRegularFile)
.collect(Collectors.toList());
final HashSet<BuiltResourcesBuildItem.BuiltResource> entries = new HashSet<>(files.size());
LOG.infof("Quinoa target directory: '%s'", targetDir);
Expand Down Expand Up @@ -453,4 +454,4 @@ public Path getUIDir() {
}
}

}
}

0 comments on commit 97ef67b

Please sign in to comment.