Class ForkDefinition
- java.lang.Object
-
- org.apache.tools.ant.taskdefs.optional.junitlauncher.confined.ForkDefinition
-
public class ForkDefinition extends java.lang.Object
Represents thefork
element within test definitions of thejunitlauncher
task
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ForkDefinition.ForkMode
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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)
TheforkMode
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 launchjava
.void
setTimeout(long timeout)
-
-
-
Method Detail
-
setDir
public void setDir(java.lang.String dir)
-
setTimeout
public void setTimeout(long timeout)
-
setIncludeJUnitPlatformLibraries
public void setIncludeJUnitPlatformLibraries(boolean include)
-
setIncludeAntRuntimeLibraries
public void setIncludeAntRuntimeLibraries(boolean include)
-
createJvmArg
public Commandline.Argument createJvmArg()
-
addConfiguredSysProperty
public void addConfiguredSysProperty(Environment.Variable sysProp)
-
addConfiguredSysPropertySet
public void addConfiguredSysPropertySet(PropertySet propertySet)
-
addConfiguredEnv
public void addConfiguredEnv(Environment.Variable var)
-
addConfiguredModulePath
public void addConfiguredModulePath(Path modulePath)
-
addConfiguredUpgradeModulePath
public void addConfiguredUpgradeModulePath(Path upgradeModulePath)
-
setJava
public void setJava(java.lang.String java)
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
public void setForkMode(ForkDefinition.ForkMode forkMode)
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
-
-