|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask
org.apache.cactus.integration.ant.CactusTask
public class CactusTask
An Ant task that extends the optional JUnit task to provide support for in-container testing.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask |
---|
org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.ForkMode, org.apache.tools.ant.taskdefs.optional.junit.JUnitTask.SummaryAttribute |
Field Summary |
---|
Fields inherited from class org.apache.tools.ant.Task |
---|
description, location, target, taskName, taskType, wrapper |
Fields inherited from class org.apache.tools.ant.ProjectComponent |
---|
project |
Constructor Summary | |
---|---|
CactusTask()
Constructor. |
Method Summary | |
---|---|
void |
addConfiguredCactusproperty(PropertySet thePropertySet)
Adds a set of properties that will be used as system properties either on the client side or on the server side. |
void |
addConfiguredSysproperty(org.apache.tools.ant.types.Environment.Variable theProperty)
Called by Ant when the Variable object has been properly initialized. |
void |
addContainerSet(ContainerSet theContainerSet)
Adds the nested containers element (only one is permitted). |
void |
addSysproperty(org.apache.tools.ant.types.Environment.Variable theProperty)
Adds a system property to both client side and server side JVMs. |
org.apache.tools.ant.types.Path |
createContainerClasspath()
Adds container classpath to the classpath that will be used for starting the container. |
void |
execute()
|
void |
init()
|
void |
setEarFile(java.io.File theEarFile)
Sets the enterprise application archive that will be tested. |
void |
setWarFile(java.io.File theWarFile)
Sets the web application archive that will be tested. |
Methods inherited from class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask |
---|
actOnTestResult, addAssertions, addClasspathEntry, addEnv, addFormatter, addSyspropertyset, addTest, allTests, createBatchTest, createBootclasspath, createClasspath, createJvmarg, createPermissions, createWatchdog, execute, execute, executeOrQueue, getCommandline, getDefaultOutput, getIndividualTests, getOutput, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, setDir, setErrorProperty, setFailureProperty, setFiltertrace, setFork, setForkMode, setHaltonerror, setHaltonfailure, setIncludeantruntime, setJvm, setMaxmemory, setNewenvironment, setPrintsummary, setReloading, setShowOutput, setTempdir, setTimeout |
Methods inherited from class org.apache.tools.ant.Task |
---|
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
getProject, setProject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CactusTask() throws java.lang.Exception
java.lang.Exception
- If the constructor of JUnitTask throws an exceptionMethod Detail |
---|
public void init()
init
in class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask
Task.init()
public void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask
org.apache.tools.ant.BuildException
Task.execute()
public final void addContainerSet(ContainerSet theContainerSet)
theContainerSet
- The nested element to addpublic final void setEarFile(java.io.File theEarFile)
theEarFile
- The EAR file to setpublic final void setWarFile(java.io.File theWarFile)
theWarFile
- The WAR file to setpublic void addSysproperty(org.apache.tools.ant.types.Environment.Variable theProperty)
addSysproperty
in class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask
JUnitTask.addSysproperty(Environment.Variable)
public void addConfiguredSysproperty(org.apache.tools.ant.types.Environment.Variable theProperty)
addConfiguredSysproperty
in class org.apache.tools.ant.taskdefs.optional.junit.JUnitTask
theProperty
- the system property to setpublic void addConfiguredCactusproperty(PropertySet thePropertySet)
thePropertySet
- the set of properties to be addedpublic org.apache.tools.ant.types.Path createContainerClasspath()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |