Skip to content

Commit 7948d85

Browse files
committed
Fix findJavaSourceFiles by matching on file names
1 parent 8b7738f commit 7948d85

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/kotlin/org/javacs/kt/CompilerClassPath.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ private fun findJavaSourceFiles(root: Path): Set<Path> {
130130
val sourceMatcher = FileSystems.getDefault().getPathMatcher("glob:*.java")
131131
return SourceExclusions(root)
132132
.walkIncluded()
133-
.filter { sourceMatcher.matches(it) }
133+
.filter { sourceMatcher.matches(it.fileName) }
134134
.toSet()
135135
}
136136

0 commit comments

Comments
 (0)