|
||||||||||
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.MatchingTask
org.apache.tools.ant.taskdefs.Zip
org.apache.tools.ant.taskdefs.Jar
org.apache.tools.ant.taskdefs.War
org.apache.cactus.integration.ant.CactifyWarTask
public class CactifyWarTask
An Ant task that injects elements necessary to run Cactus tests into an existing WAR file.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.apache.tools.ant.taskdefs.Jar |
---|
org.apache.tools.ant.taskdefs.Jar.FilesetManifestConfig |
Nested classes/interfaces inherited from class org.apache.tools.ant.taskdefs.Zip |
---|
org.apache.tools.ant.taskdefs.Zip.ArchiveState, org.apache.tools.ant.taskdefs.Zip.Duplicate, org.apache.tools.ant.taskdefs.Zip.WhenEmpty |
Field Summary |
---|
Fields inherited from class org.apache.tools.ant.taskdefs.Zip |
---|
addedDirs, archiveType, doubleFilePass, duplicate, emptyBehavior, entries, skipWriting, zipFile |
Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask |
---|
fileset |
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 | |
---|---|
CactifyWarTask()
|
Method Summary | |
---|---|
void |
addConfiguredEjbref(org.codehaus.cargo.module.webapp.EjbRef theEjbRef)
Adds a configured EjbRef instance. |
void |
addConfiguredXMLCatalog(org.apache.tools.ant.types.XMLCatalog theXmlCatalog)
Adds an XML catalog to the internal catalog. |
void |
addFilterRedirector(FilterRedirector theFilterRedirector)
Adds a Cactus filter test redirector. |
void |
addJspRedirector(JspRedirector theJspRedirector)
Adds a Cactus JSP test redirector. |
void |
addServletRedirector(ServletRedirector theServletRedirector)
Adds a Cactus servlet test redirector. |
java.io.File |
createTempFile(java.lang.String prefix,
java.lang.String suffix,
java.io.File parentDir,
boolean deleteOnExit)
|
void |
execute()
|
void |
setMergeWebXml(java.io.File theMergeFile)
The descriptor to merge into the original file. |
void |
setSrcFile(java.io.File theSrcFile)
Sets the web application archive that should be cactified. |
void |
setVersion(Version theVersion)
Sets the web-app version to use when creating a WAR file from scratch. |
Methods inherited from class org.apache.tools.ant.taskdefs.War |
---|
addClasses, addLib, addWebinf, cleanUp, initZipOutputStream, setWarfile, setWebxml, zipFile |
Methods inherited from class org.apache.tools.ant.taskdefs.Jar |
---|
addConfiguredIndexJars, addConfiguredManifest, addMetainf, createEmptyZip, finalizeZipOutputStream, findJarName, getResourcesToAdd, grabFilesAndDirs, reset, setFilesetmanifest, setIndex, setJarfile, setManifest, setManifestEncoding, setWhenempty, writeIndexLikeList, zipFile |
Methods inherited from class org.apache.tools.ant.taskdefs.Zip |
---|
addFileset, addParentDirs, addResources, addZipfileset, addZipGroupFileset, executeMain, getComment, getDestFile, getEncoding, grabResources, isAddingNewFiles, isCompress, isEmpty, isInUpdateMode, selectFileResources, setBasedir, setComment, setCompress, setDestFile, setDuplicate, setEncoding, setFile, setFilesonly, setKeepCompression, setRoundUp, setUpdate, setZipfile, zipDir, zipDir |
Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask |
---|
add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addSelector, addSize, addType, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDirectoryScanner, getImplicitFileSet, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludes, setIncludesfile, setProject, XsetIgnore, XsetItems |
Methods inherited from class org.apache.tools.ant.Task |
---|
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
---|
getProject |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CactifyWarTask()
Method Detail |
---|
public void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.taskdefs.Zip
org.apache.tools.ant.BuildException
Task.execute()
public final void addFilterRedirector(FilterRedirector theFilterRedirector)
theFilterRedirector
- The redirector to addpublic final void addJspRedirector(JspRedirector theJspRedirector)
theJspRedirector
- The redirector to addpublic final void addServletRedirector(ServletRedirector theServletRedirector)
theServletRedirector
- The redirector to addpublic final void addConfiguredXMLCatalog(org.apache.tools.ant.types.XMLCatalog theXmlCatalog)
theXmlCatalog
- the XMLCatalog instance to use to look up DTDspublic final void addConfiguredEjbref(org.codehaus.cargo.module.webapp.EjbRef theEjbRef)
theEjbRef
- the EjbRef to addpublic final void setMergeWebXml(java.io.File theMergeFile)
theMergeFile
- the web.xml
to mergepublic final void setSrcFile(java.io.File theSrcFile)
theSrcFile
- The WAR file to setpublic final void setVersion(Version theVersion)
theVersion
- The versionpublic java.io.File createTempFile(java.lang.String prefix, java.lang.String suffix, java.io.File parentDir, boolean deleteOnExit)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |