diff --git a/src/main/java/org/cadixdev/mercury/Mercury.java b/src/main/java/org/cadixdev/mercury/Mercury.java index 3f05814..9684328 100644 --- a/src/main/java/org/cadixdev/mercury/Mercury.java +++ b/src/main/java/org/cadixdev/mercury/Mercury.java @@ -20,6 +20,7 @@ import java.nio.charset.Charset; import java.nio.charset.StandardCharsets; +import java.nio.file.FileVisitOption; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; @@ -173,7 +174,7 @@ private void run() throws Exception { parser.setEnvironment(toArray(this.classPath.stream()), sourcePath, getEncodings(sourcePath), true); // Walk directory to find source files - String[] sourceFiles = toArray(Files.walk(this.sourceDir) + String[] sourceFiles = toArray(Files.walk(this.sourceDir, FileVisitOption.FOLLOW_LINKS) .filter(p -> p.getFileName() != null && p.getFileName().toString().endsWith(JAVA_EXTENSION))); for (SourceProcessor processor : this.processors) {