Skip to content

Commit bd113c2

Browse files
committed
Try flushing instead of closing.
1 parent 224a041 commit bd113c2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/src/main/java/com/diffplug/spotless/ProcessRunner.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,7 @@ public LongRunningProcess start(@Nullable File cwd, @Nullable Map<String, String
163163
}
164164
// write stdin
165165
process.getOutputStream().write(stdin);
166+
process.getOutputStream().flush();
166167
return new LongRunningProcess(process, args, outputFut, errorFut);
167168
}
168169

0 commit comments

Comments
 (0)