jetbrains.buildServer
Class CommandLineExecutor

java.lang.Object
  extended by jetbrains.buildServer.CommandLineExecutor

public class CommandLineExecutor
extends java.lang.Object


Constructor Summary
CommandLineExecutor(com.intellij.execution.configurations.GeneralCommandLine commandLine)
           
 
Method Summary
static void finalizeAll(java.lang.Process proc, StreamGobbler errorGobbler, StreamGobbler outputGobbler)
           
 java.io.OutputStream getOutputStream()
           
 java.lang.Process getProcess()
           
 ExecResult runProcess()
           
 ExecResult waitFor()
           
static int waitForProcess(java.lang.Process proc, StreamGobbler errorGobbler, StreamGobbler outputGobbler)
           
static int waitForProcess(java.lang.Process proc, StreamGobbler errorGobbler, StreamGobbler outputGobbler, int timeoutSeconds)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CommandLineExecutor

public CommandLineExecutor(com.intellij.execution.configurations.GeneralCommandLine commandLine)
Method Detail

runProcess

public ExecResult runProcess()
                      throws com.intellij.execution.ExecutionException
Throws:
com.intellij.execution.ExecutionException

getOutputStream

public java.io.OutputStream getOutputStream()

waitFor

public ExecResult waitFor()

getProcess

public java.lang.Process getProcess()

finalizeAll

public static void finalizeAll(java.lang.Process proc,
                               StreamGobbler errorGobbler,
                               StreamGobbler outputGobbler)
                        throws java.lang.InterruptedException,
                               java.io.IOException
Throws:
java.lang.InterruptedException
java.io.IOException

waitForProcess

public static int waitForProcess(java.lang.Process proc,
                                 StreamGobbler errorGobbler,
                                 StreamGobbler outputGobbler)
                          throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException

waitForProcess

public static int waitForProcess(java.lang.Process proc,
                                 StreamGobbler errorGobbler,
                                 StreamGobbler outputGobbler,
                                 int timeoutSeconds)
                          throws java.lang.InterruptedException
Throws:
java.lang.InterruptedException