use of com.intellij.execution.process.CapturingProcessRunner in project consulo by consulo.
the class EnvironmentAwareHost method getProcessOutput.
/**
* @param commandLine commandLine to execute on this host
* @return output of the corresponding process
*/
@Nonnull
public ProcessOutput getProcessOutput(@Nonnull GeneralCommandLine commandLine) throws ExecutionException {
BaseProcessHandler handler = getProcessHandler(commandLine);
CapturingProcessRunner runner = new CapturingProcessRunner(handler);
return runner.runProcess();
}
Aggregations