|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.cruisecontrol.util.Processes
Utility methods for interacting with Java processes.
Process| Method Summary | |
static java.lang.Process |
execute(Commandline c)
|
static void |
executeFully(Commandline c)
|
static int |
waitFor(java.lang.Process proc,
org.apache.log4j.Logger log)
Waits for a process to finish executing and logs the output. |
static int |
waitFor(java.lang.Process proc,
StreamConsumer output,
StreamConsumer error)
Waits for a process to finish executing. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
public static void executeFully(Commandline c)
throws java.io.IOException,
java.lang.InterruptedException
java.io.IOException
java.lang.InterruptedException
public static java.lang.Process execute(Commandline c)
throws java.io.IOException
java.io.IOException
public static int waitFor(java.lang.Process proc,
org.apache.log4j.Logger log)
throws java.io.IOException,
java.lang.InterruptedException
proc - the process.log - where to log both standard and error output.
java.io.IOException
java.lang.InterruptedException
public static int waitFor(java.lang.Process proc,
StreamConsumer output,
StreamConsumer error)
throws java.io.IOException,
java.lang.InterruptedException
proc - the process.output - consumes the process' standard output.error - consumes the process' error output.
java.io.IOException
java.lang.InterruptedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||