|
|||||||||
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
net.sweetohm.ant.util.FileTask
net.sweetohm.ant.xml.MergeTask
public class MergeTask
This task merge XML files in a single file (see documentation for more details.
Field Summary | |
---|---|
(package private) static java.lang.String |
defaultToFile
Default generated file |
(package private) java.lang.String |
doctype
The resulting document doctype |
(package private) java.lang.String |
encoding
The resulting document encoding |
(package private) java.lang.String |
guessedEncoding
Guessed resulting document encoding (from first file) |
(package private) boolean |
nestingElement
Indicates if a nesting element is necessary |
(package private) java.lang.String |
nestingElementName
Nesting element name |
(package private) java.io.File |
tofile
The destination file |
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 | |
---|---|
MergeTask()
|
Method Summary | |
---|---|
void |
execute()
The method to launch the program as an Ant task. |
(package private) java.lang.String |
extract(java.lang.String content)
Extract the root element from the file content |
(package private) java.lang.String |
processFile(java.io.File file)
Process a single file |
void |
setDoctype(java.lang.String doctype)
Doctype setter. |
void |
setEncoding(java.lang.String encoding)
Encoding setter. |
void |
setNestingElement(boolean nestingElement)
Indicate if a nesting element is necessary. |
void |
setNestingElementName(java.lang.String nestingElementName)
Indicate the name of the nesting element. |
void |
setTofile(java.lang.String tofile)
Destination file setter. |
Methods inherited from class net.sweetohm.ant.util.FileTask |
---|
addFileset, getFiles, setDir, setFile |
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 |
Field Detail |
---|
java.io.File tofile
java.lang.String encoding
java.lang.String guessedEncoding
java.lang.String doctype
static final java.lang.String defaultToFile
boolean nestingElement
java.lang.String nestingElementName
Constructor Detail |
---|
public MergeTask()
Method Detail |
---|
public void setTofile(java.lang.String tofile)
tofile
- The destination file.public void setEncoding(java.lang.String encoding)
encoding
- The encoding of the XML filespublic void setDoctype(java.lang.String doctype)
doctype
- The doctype of the XML file.public void setNestingElement(boolean nestingElement)
nestingElement
- public void setNestingElementName(java.lang.String nestingElementName)
nestingElementName
- public void execute()
execute
in class org.apache.tools.ant.Task
java.lang.String processFile(java.io.File file) throws java.io.IOException
file
- The file to process
java.io.IOException
java.lang.String extract(java.lang.String content)
content
- The content of the file
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |