|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.jelly.TagSupport
org.apache.cactus.integration.maven.CactusScannerTag
public class CactusScannerTag
Cactus Jelly Tag that scans Ant FileSets and return a list of qualified class name that are Cactus TestCases (i.e. ServletTestCase, JspTestCase or FilterTestCase) or subclasses of Cactus TestCases. Note: This is useful when used with the <junit> Ant task for example, in order to find out the list of tests to execute.
| Field Summary |
|---|
| Fields inherited from class org.apache.commons.jelly.TagSupport |
|---|
body, context, hasTrimmed, parent, shouldTrim |
| Constructor Summary | |
|---|---|
CactusScannerTag()
Initializations. |
|
| Method Summary | |
|---|---|
void |
addFileset(org.apache.tools.ant.types.FileSet theSet)
Adds a set of files (nested fileset attribute). |
org.apache.tools.ant.types.Path |
createClasspath()
|
void |
doTag(org.apache.commons.jelly.XMLOutput theXmlOutput)
|
CactusScanner |
getCactusScanner()
|
org.apache.tools.ant.types.Path |
getClasspath()
|
java.lang.Object |
getTaskObject()
This method is called internally by Jelly to know on which object to call the TaskSource.setTaskProperty(java.lang.String, java.lang.Object) method. |
void |
setClasspath(org.apache.tools.ant.types.Path theClasspath)
Sets the classapth in which we will look for Cactus test cases. |
void |
setClasspathRef(org.apache.tools.ant.types.Reference theReference)
Sets the classpath in which we will look for Cactus test cases, using a reference. |
void |
setClasspathref(java.lang.String theClasspathref)
Sets the classpath in which we will look for Cactus test cases, using a String reference. |
void |
setTaskProperty(java.lang.String theName,
java.lang.Object theValue)
|
void |
setVar(java.lang.String theVar)
Sets the name of the variable exported by this tag. |
| Methods inherited from class org.apache.commons.jelly.TagSupport |
|---|
findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, findAncestorWithClass, getBody, getBodyText, getBodyText, getContext, getParent, invokeBody, isTrim, setBody, setContext, setParent, setTrim, trimBody |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CactusScannerTag()
| Method Detail |
|---|
public void doTag(org.apache.commons.jelly.XMLOutput theXmlOutput)
throws org.apache.commons.jelly.JellyTagException
doTag in interface org.apache.commons.jelly.TagtheXmlOutput - the xml to hold the tag being made
org.apache.commons.jelly.JellyTagException - when proccess failsTag.doTag(XMLOutput)public java.lang.Object getTaskObject()
TaskSource.setTaskProperty(java.lang.String, java.lang.Object) method.
getTaskObject in interface org.apache.commons.jelly.tags.ant.TaskSourceTaskSource.getTaskObject()
public void setTaskProperty(java.lang.String theName,
java.lang.Object theValue)
throws org.apache.commons.jelly.JellyTagException
setTaskProperty in interface org.apache.commons.jelly.tags.ant.TaskSourceorg.apache.commons.jelly.JellyTagExceptionTaskSource.setTaskProperty(String, Object)public void addFileset(org.apache.tools.ant.types.FileSet theSet)
setTaskProperty(java.lang.String, java.lang.Object).
theSet - the Ant fileset to addpublic org.apache.tools.ant.types.Path createClasspath()
Path objectpublic org.apache.tools.ant.types.Path getClasspath()
public void setClasspath(org.apache.tools.ant.types.Path theClasspath)
theClasspath - the classapth to setpublic void setClasspathRef(org.apache.tools.ant.types.Reference theReference)
theReference - the classpath referencepublic CactusScanner getCactusScanner()
public void setVar(java.lang.String theVar)
theVar - the variable that will be exported by this tag and which
will contain the list of Cactus test casespublic void setClasspathref(java.lang.String theClasspathref)
theClasspathref - the classpath reference
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||