public class ExamJavaRunner extends Object implements org.ops4j.exec.StoppableJavaRunner, org.ops4j.exec.ProcessProvider
| Constructor and Description |
|---|
ExamJavaRunner()
Constructor.
|
ExamJavaRunner(boolean wait)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
exec(String[] vmOptions,
String[] classpath,
String mainClass,
String[] programOptions,
String javaHome,
File workingDirectory) |
void |
exec(String[] vmOptions,
String[] classpath,
String mainClass,
String[] programOptions,
String javaHome,
File workingDirectory,
String[] envOptions) |
Process |
getProcess() |
void |
shutdown() |
void |
waitForExit()
Wait till the framework process exits.
|
public ExamJavaRunner()
public ExamJavaRunner(boolean wait)
wait - should wait for framework exispublic void exec(String[] vmOptions, String[] classpath, String mainClass, String[] programOptions, String javaHome, File workingDirectory) throws org.ops4j.exec.ExecutionException
exec in interface org.ops4j.exec.JavaRunnerorg.ops4j.exec.ExecutionExceptionpublic void exec(String[] vmOptions, String[] classpath, String mainClass, String[] programOptions, String javaHome, File workingDirectory, String[] envOptions) throws org.ops4j.exec.ExecutionException
exec in interface org.ops4j.exec.JavaRunnerorg.ops4j.exec.ExecutionExceptionpublic void shutdown()
shutdown in interface org.ops4j.exec.StoppableJavaRunnerpublic void waitForExit()
public Process getProcess()
getProcess in interface org.ops4j.exec.ProcessProviderCopyright © 2006–2021 OPS4J - Open Participation Software for Java. All rights reserved.