mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[platform] fine-tuning process output readers: JUnit
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2015 JetBrains s.r.o.
|
||||
* Copyright 2000-2016 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -23,6 +23,7 @@ import com.intellij.execution.process.ProcessAdapter;
|
||||
import com.intellij.execution.process.ProcessEvent;
|
||||
import com.intellij.execution.process.ProcessTerminatedListener;
|
||||
import com.intellij.openapi.util.Disposer;
|
||||
import com.intellij.util.io.BaseOutputReader;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.io.Reader;
|
||||
@@ -77,8 +78,9 @@ public class JUnitProcessHandler extends KillableColoredProcessHandler {
|
||||
return processHandler;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
@Override
|
||||
protected boolean useNonBlockingRead() {
|
||||
return true;
|
||||
protected BaseOutputReader.Options readerOptions() {
|
||||
return BaseOutputReader.Options.NON_BLOCKING;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user