use of com.intellij.execution.process.ProcessHandlerFactory in project intellij-community by JetBrains.
the class JavaCommandLineStateUtil method startProcess.
@NotNull
public static OSProcessHandler startProcess(@NotNull GeneralCommandLine commandLine, boolean ansiColoring) throws ExecutionException {
ProcessHandlerFactory factory = ProcessHandlerFactory.getInstance();
OSProcessHandler processHandler = ansiColoring ? factory.createColoredProcessHandler(commandLine) : factory.createProcessHandler(commandLine);
ProcessTerminatedListener.attach(processHandler);
return processHandler;
}
Aggregations