public class ForkDefinition
extends java.lang.Object
fork
element within test definitions of the
junitlauncher
taskModifier and Type | Class and Description |
---|---|
static class |
ForkDefinition.ForkMode |
Modifier and Type | Method and Description |
---|---|
void |
addConfiguredEnv(Environment.Variable var) |
void |
addConfiguredModulePath(Path modulePath) |
void |
addConfiguredSysProperty(Environment.Variable sysProp) |
void |
addConfiguredSysPropertySet(PropertySet propertySet) |
void |
addConfiguredUpgradeModulePath(Path upgradeModulePath) |
Commandline.Argument |
createJvmArg() |
void |
setDir(java.lang.String dir) |
void |
setForkMode(ForkDefinition.ForkMode forkMode)
The
forkMode to use when launching the tests in a forked JVM. |
void |
setIncludeAntRuntimeLibraries(boolean include) |
void |
setIncludeJUnitPlatformLibraries(boolean include) |
void |
setJava(java.lang.String java)
The command used to launch
java . |
void |
setTimeout(long timeout) |
public void setDir(java.lang.String dir)
public void setTimeout(long timeout)
public void setIncludeJUnitPlatformLibraries(boolean include)
public void setIncludeAntRuntimeLibraries(boolean include)
public Commandline.Argument createJvmArg()
public void addConfiguredSysProperty(Environment.Variable sysProp)
public void addConfiguredSysPropertySet(PropertySet propertySet)
public void addConfiguredEnv(Environment.Variable var)
public void addConfiguredModulePath(Path modulePath)
public void addConfiguredUpgradeModulePath(Path upgradeModulePath)
public void setJava(java.lang.String java)
java
. This can be a path to the java
binary that will be used to launch the forked java
process.java
- Path to the java commandpublic void setForkMode(ForkDefinition.ForkMode forkMode)
forkMode
to use when launching the tests in a forked JVM.forkMode
- Can be null, in which case an internal implementation default will be used.