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
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidaddConfiguredModulePath(Path modulePath) voidvoidaddConfiguredSysPropertySet(PropertySet propertySet) voidaddConfiguredUpgradeModulePath(Path upgradeModulePath) voidvoidsetForkMode(ForkDefinition.ForkMode forkMode) TheforkModeto use when launching the tests in a forked JVM.voidsetIncludeAntRuntimeLibraries(boolean include) voidsetIncludeJUnitPlatformLibraries(boolean include) voidThe command used to launchjava.voidsetTimeout(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 thejavabinary that will be used to launch the forkedjavaprocess.- Parameters:
java- Path to the java command- Since:
- Ant 1.10.14
-
setForkMode
TheforkModeto 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
-