|
||||||||||
| 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
ch.elca.el4j.services.xmlmerge.anttask.XmlMergeTask
public class XmlMergeTask
Task for merging XML files in Ant.
Attributes:
Content:
<target name="test-task">
<taskdef name="xmlmerge" classname="ch.elca.el4j.xmlmerge.anttask.XmlMergeTask"
classpath="module-xml_merge.jar;jdom.jar;jaxen.jar;saxpath.jar "/>
<xmlmerge dest="out.xml" conf="test.properties">
<fileset dir="test">
<include name="source*.xml"/>
</fileset>
</xmlmerge>
</target>
| Field Summary |
|---|
| Fields inherited from class org.apache.tools.ant.Task |
|---|
target, taskName, taskType, wrapper |
| Fields inherited from class org.apache.tools.ant.ProjectComponent |
|---|
description, location, project |
| Constructor Summary | |
|---|---|
XmlMergeTask()
|
|
| Method Summary | |
|---|---|
void |
addFileSet(org.apache.tools.ant.types.FileSet fileset)
Adds a file set. |
void |
execute()
|
void |
setConf(String confFilename)
Sets the configuration file name. |
void |
setDest(String destFilename)
Sets the destination file name. |
void |
validate()
Validates the configuration and destination files and the file sets. |
| Methods inherited from class org.apache.tools.ant.Task |
|---|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
| Methods inherited from class org.apache.tools.ant.ProjectComponent |
|---|
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XmlMergeTask()
| Method Detail |
|---|
public void setConf(String confFilename)
confFilename - The configuration file name to set.public void setDest(String destFilename)
destFilename - The destination file name to set.public void addFileSet(org.apache.tools.ant.types.FileSet fileset)
fileset - The file set to addpublic void validate()
public void execute()
execute in class org.apache.tools.ant.Task
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||