JdkVersionDetectorImpl: ensure the output is fully read

should fix NewProjectWizardTest flakiness
This commit is contained in:
peter
2017-03-14 11:26:37 +01:00
parent 0c38d33f92
commit 22c35f963e
@@ -118,7 +118,7 @@ public class JdkVersionDetectorImpl extends JdkVersionDetector {
Process process = new ProcessBuilder(javaExe, "-version").redirectErrorStream(true).start();
VersionOutputReader reader = new VersionOutputReader(process.getInputStream(), runner);
try {
process.waitFor();
reader.waitFor();
}
catch (InterruptedException e) {
LOG.info(e);