Skip to content

Commit f141586

Browse files
committed
Gradle task handles output that overflows buffer
1 parent fd033d5 commit f141586

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/kotlin/org/javacs/kt/classpath/gradleDependencyResolver.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,6 @@ private fun readDependenciesViaTask(directory: Path): Set<Path>? {
7777
val artifact = Pattern.compile("^.+?\\.jar$")
7878
val dependencies = mutableSetOf<Path>()
7979

80-
classpathCommand.waitFor()
81-
8280
stdout.bufferedReader().use { reader ->
8381
for (dependency in reader.lines()) {
8482
val line = dependency.toString().trim()
@@ -89,6 +87,8 @@ private fun readDependenciesViaTask(directory: Path): Set<Path>? {
8987
}
9088
}
9189

90+
classpathCommand.waitFor()
91+
9292
if (dependencies.size > 0) {
9393
return dependencies
9494
} else {

0 commit comments

Comments
 (0)