This commit is contained in:
Vladimir Krivosheev
2014-08-26 13:59:48 +02:00
parent 72c2e0f9db
commit 74bd2803d7
2 changed files with 3 additions and 0 deletions
@@ -228,6 +228,7 @@ public class GeneralCommandLine implements UserDataHolder {
return StringUtil.join(CommandLineUtil.toCommandLine(exePath, myProgramParams.getList(), platform), "\n");
}
@NotNull
public Process createProcess() throws ExecutionException {
if (LOG.isDebugEnabled()) {
LOG.debug("Executing [" + getCommandLineString() + "]");
@@ -257,6 +258,7 @@ public class GeneralCommandLine implements UserDataHolder {
}
}
@NotNull
protected Process startProcess(@NotNull List<String> commands) throws IOException {
ProcessBuilder builder = new ProcessBuilder(commands);
setupEnvironment(builder.environment());
@@ -37,6 +37,7 @@ public class PtyCommandLine extends GeneralCommandLine {
public PtyCommandLine() { }
@NotNull
@Override
protected Process startProcess(@NotNull List<String> commands) throws IOException {
if (SystemInfo.isUnix) {