|
|||||||||||
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.cactus.integration.ant.container.AbstractContainer
Abstract base class for supporting specific containers as nested elements in
the CactusTask
.
Constructor Summary | |
AbstractContainer()
|
Method Summary | |
org.apache.tools.ant.types.PatternSet.NameEntry |
createExclude()
Creates a nested exclude element that is added to the pattern set. |
java.lang.String[] |
getExcludePatterns()
Returns the exclude patterns. |
long |
getStartUpWait()
|
org.apache.tools.ant.types.Environment.Variable[] |
getSystemProperties()
|
java.io.File |
getToDir()
Returns the value of the 'todir' attribute. |
void |
init()
The default implementation does nothing. |
boolean |
isEnabled()
Returns whether the container element is enabled, which is determined by the evaluation of the if- and unless conditions |
boolean |
isExcluded(java.lang.String theTestName)
Returns whether a specific test case is to be excluded from being run in the container. |
void |
setAntTaskFactory(AntTaskFactory theFactory)
Sets the factory to use for creating Ant tasks. |
void |
setDeployableFile(DeployableFile theDeployableFile)
Sets the file that should be deployed to the container. |
void |
setIf(java.lang.String theIfCondition)
Sets the name of a property that must exist in the project if tests are to be run on the container. |
void |
setLog(org.apache.commons.logging.Log theLog)
Sets the log which the implementation should use. |
void |
setStartUpWait(long theStartUpWait)
Sets the time to wait after the container has been started up. |
void |
setSystemProperties(org.apache.tools.ant.types.Environment.Variable[] theProperties)
Sets the system properties that will be passed to the JVM in which the server will execute. |
void |
setToDir(java.io.File theToDir)
Sets the directory to which the test reports should be written. |
void |
setUnless(java.lang.String theUnlessCondition)
Sets the name of a property that must not exist in the project if tests are to be run on the container. |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject, log, log, setProject |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.cactus.integration.ant.container.Container |
getName, getPort, shutDown, startUp |
Constructor Detail |
public AbstractContainer()
Method Detail |
public void setStartUpWait(long theStartUpWait)
theStartUpWait
- The time to wait in millisecondspublic final org.apache.tools.ant.types.PatternSet.NameEntry createExclude()
public final java.lang.String[] getExcludePatterns()
public final void setIf(java.lang.String theIfCondition)
theIfCondition
- The property name to setpublic final void setToDir(java.io.File theToDir)
theToDir
- The output directory to setpublic final void setUnless(java.lang.String theUnlessCondition)
theUnlessCondition
- The property name to setpublic long getStartUpWait()
getStartUpWait
in interface Container
Container.getStartUpWait()
public final java.io.File getToDir()
Container
getToDir
in interface Container
Container.getToDir()
public void init()
init
in interface Container
Container.init()
public final boolean isEnabled()
Container
isEnabled
in interface Container
true
if the container is enabledContainer.isEnabled()
public final boolean isExcluded(java.lang.String theTestName)
Container
isExcluded
in interface Container
theTestName
- The fully qualified name of the test fixture class
true
if the test should be excluded, otherwise
false
Container.isExcluded(java.lang.String)
public final void setAntTaskFactory(AntTaskFactory theFactory)
Container
setAntTaskFactory
in interface Container
theFactory
- The factory to use for creating Ant tasksContainer.setAntTaskFactory(org.apache.cactus.integration.ant.util.AntTaskFactory)
public final void setDeployableFile(DeployableFile theDeployableFile)
Container
setDeployableFile
in interface Container
theDeployableFile
- The file to deployContainer.setDeployableFile(org.apache.cactus.integration.ant.container.DeployableFile)
public final void setLog(org.apache.commons.logging.Log theLog)
Container
setLog
in interface Container
theLog
- The log to setContainer.setLog(org.apache.commons.logging.Log)
public void setSystemProperties(org.apache.tools.ant.types.Environment.Variable[] theProperties)
Container
setSystemProperties
in interface Container
theProperties
- the list of system properties to set in the
container JVMContainer.setSystemProperties(org.apache.tools.ant.types.Environment.Variable[])
public org.apache.tools.ant.types.Environment.Variable[] getSystemProperties()
getSystemProperties
in interface Container
Container.getSystemProperties()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |