public class RunProcess
extends java.lang.Object
| Constructor and Description | 
|---|
| RunProcess(java.io.File workingDirectory,
          java.lang.String... command)Creates new  RunProcessinstance for the specified working directory and
 command. | 
| RunProcess(java.lang.String... command)Creates new  RunProcessinstance for the specified command. | 
| Modifier and Type | Method and Description | 
|---|---|
| java.lang.Process | getRunningProcess()Return the running process. | 
| boolean | handleSigInt()Return if the process was stopped. | 
| boolean | hasJustEnded() | 
| void | kill()Kill this process. | 
| int | run(boolean waitForProcess,
   java.util.Collection<java.lang.String> args,
   java.util.Map<java.lang.String,java.lang.String> environmentVariables) | 
| int | run(boolean waitForProcess,
   java.lang.String... args) | 
public RunProcess(java.lang.String... command)
RunProcess instance for the specified command.command - the program to execute and its argumentspublic RunProcess(java.io.File workingDirectory,
                  java.lang.String... command)
RunProcess instance for the specified working directory and
 command.workingDirectory - the working directory of the child process or null
 to run in the working directory of the current Java processcommand - the program to execute and its argumentspublic int run(boolean waitForProcess,
               java.lang.String... args)
        throws java.io.IOException
java.io.IOExceptionpublic int run(boolean waitForProcess,
               java.util.Collection<java.lang.String> args,
               java.util.Map<java.lang.String,java.lang.String> environmentVariables)
        throws java.io.IOException
java.io.IOExceptionpublic java.lang.Process getRunningProcess()
nullpublic boolean handleSigInt()
true if stoppedpublic void kill()
public boolean hasJustEnded()