Class ForkDefinition
java.lang.Object
org.apache.tools.ant.taskdefs.optional.junitlauncher.confined.ForkDefinition
Represents the
fork
element within test definitions of the
junitlauncher
task-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
addConfiguredModulePath
(Path modulePath) void
void
addConfiguredSysPropertySet
(PropertySet propertySet) void
addConfiguredUpgradeModulePath
(Path upgradeModulePath) void
void
setForkMode
(ForkDefinition.ForkMode forkMode) TheforkMode
to use when launching the tests in a forked JVM.void
setIncludeAntRuntimeLibraries
(boolean include) void
setIncludeJUnitPlatformLibraries
(boolean include) void
The command used to launchjava
.void
setTimeout
(long timeout)
-
Method Details
-
setDir
-
setTimeout
public void setTimeout(long timeout) -
setIncludeJUnitPlatformLibraries
public void setIncludeJUnitPlatformLibraries(boolean include) -
setIncludeAntRuntimeLibraries
public void setIncludeAntRuntimeLibraries(boolean include) -
createJvmArg
-
addConfiguredSysProperty
-
addConfiguredSysPropertySet
-
addConfiguredEnv
-
addConfiguredModulePath
-
addConfiguredUpgradeModulePath
-
setJava
The command used to launchjava
. This can be a path to thejava
binary that will be used to launch the forkedjava
process.- Parameters:
java
- Path to the java command- Since:
- Ant 1.10.14
-
setForkMode
TheforkMode
to use when launching the tests in a forked JVM.- Parameters:
forkMode
- Can be null, in which case an internal implementation default will be used.- Since:
- Ant 1.10.14
-