|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tools.ant.taskdefs.Execute
org.openqa.selenium.server.browserlaunchers.AsyncExecute
A handy wrapper around Ant's Execute class that can spawn a process and return the process handle so you can close it yourself later
Field Summary |
Fields inherited from class org.apache.tools.ant.taskdefs.Execute |
INVALID |
Constructor Summary | |
AsyncExecute()
|
Method Summary | |
java.lang.Process |
asyncSpawn()
Copied from spawn, but actually returns the Process, instead of void |
static boolean |
isAlive(java.lang.Process p)
|
static void |
sleepTight(long timeout)
Sleeps without explicitly throwing an InterruptedException |
static int |
waitForProcessDeath(java.lang.Process p,
long timeout)
|
static java.io.File |
whichExec(java.lang.String exec)
Searches the path for the specified executable |
Methods inherited from class org.apache.tools.ant.taskdefs.Execute |
closeStreams, execute, getCommandline, getEnvironment, getExitValue, getProcEnvironment, isFailure, killedProcess, launch, runCommand, setAntRun, setCommandline, setEnvironment, setExitValue, setNewenvironment, setSpawn, setStreamHandler, setVMLauncher, setWorkingDirectory, spawn, toString, waitFor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AsyncExecute()
Method Detail |
public static void sleepTight(long timeout)
timeout
- the amout of time to sleep
java.lang.RuntimeException
- wrapping an InterruptedException if one gets thrownpublic java.lang.Process asyncSpawn() throws java.io.IOException
java.io.IOException
public static boolean isAlive(java.lang.Process p)
public static int waitForProcessDeath(java.lang.Process p, long timeout)
public static java.io.File whichExec(java.lang.String exec)
exec
- the executable name to search for
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |