|
|||||||||||
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.cactus.integration.ant.WebXmlMergeTask
Ant task that can merge the definitions from two web deployment descriptors into one descriptor.
Constructor Summary | |
WebXmlMergeTask()
|
Method Summary | |
void |
addConfiguredXMLCatalog(org.apache.tools.ant.types.XMLCatalog theXmlCatalog)
Adds an XML catalog to the internal catalog. |
void |
execute()
|
void |
setDestFile(java.io.File theDestFile)
The destination file where the result of the merge are stored. |
void |
setEncoding(java.lang.String theEncoding)
Sets the encoding of the resulting XML file. |
void |
setForce(boolean isForce)
Sets whether the merge should be performed even when the destination file is up to date. |
void |
setIndent(boolean isIndent)
Whether the result XML file should be indented for better readability. |
void |
setMergeFile(java.io.File theMergeFile)
The descriptor to merge into the original file. |
void |
setSrcFile(java.io.File theSrcFile)
The original web deployment descriptor into which the new elements will be merged. |
Methods inherited from class org.apache.tools.ant.Task |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, init, log, log, maybeConfigure, perform, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName |
Methods inherited from class org.apache.tools.ant.ProjectComponent |
getProject, setProject |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public WebXmlMergeTask()
Method Detail |
public void execute() throws org.apache.tools.ant.BuildException
org.apache.tools.ant.BuildException
Task.execute()
public final void addConfiguredXMLCatalog(org.apache.tools.ant.types.XMLCatalog theXmlCatalog)
theXmlCatalog
- the XMLCatalog instance to use to look up DTDspublic final void setSrcFile(java.io.File theSrcFile)
theSrcFile
- the original web.xml
public final void setMergeFile(java.io.File theMergeFile)
theMergeFile
- the web.xml
to mergepublic final void setDestFile(java.io.File theDestFile)
theDestFile
- the resulting web.xml
public final void setForce(boolean isForce)
isForce
- Whether the merge should be forcedpublic final void setEncoding(java.lang.String theEncoding)
theEncoding
- The encoding to setpublic final void setIndent(boolean isIndent)
isIndent
- Whether the result should be indented
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |