|
||||||||||
| 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
public class WebXmlMergeTask
Ant task that can merge the definitions from two web deployment descriptors into one descriptor.
| 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 | |
|---|---|
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, 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, setProject |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WebXmlMergeTask()
| Method Detail |
|---|
public void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.Taskorg.apache.tools.ant.BuildExceptionTask.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.xmlpublic final void setMergeFile(java.io.File theMergeFile)
theMergeFile - the web.xml to mergepublic final void setDestFile(java.io.File theDestFile)
theDestFile - the resulting web.xmlpublic 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 | |||||||||