Class ForkDefinition
- java.lang.Object
-
- org.apache.tools.ant.taskdefs.optional.junitlauncher.confined.ForkDefinition
-
public class ForkDefinition extends java.lang.ObjectRepresents theforkelement within test definitions of thejunitlaunchertask
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classForkDefinition.ForkMode
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddConfiguredEnv(Environment.Variable var)voidaddConfiguredModulePath(Path modulePath)voidaddConfiguredSysProperty(Environment.Variable sysProp)voidaddConfiguredSysPropertySet(PropertySet propertySet)voidaddConfiguredUpgradeModulePath(Path upgradeModulePath)Commandline.ArgumentcreateJvmArg()voidsetDir(java.lang.String dir)voidsetForkMode(ForkDefinition.ForkMode forkMode)TheforkModeto use when launching the tests in a forked JVM.voidsetIncludeAntRuntimeLibraries(boolean include)voidsetIncludeJUnitPlatformLibraries(boolean include)voidsetJava(java.lang.String java)The command used to launchjava.voidsetTimeout(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 thejavabinary that will be used to launch the forkedjavaprocess.- Parameters:
java- Path to the java command- Since:
- Ant 1.10.14
-
setForkMode
public void setForkMode(ForkDefinition.ForkMode forkMode)
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
-
-