|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.tools.ant.ProjectComponent | +--org.apache.tools.ant.Task | +--net.sweetohm.ant.util.FileTask | +--net.sweetohm.ant.xml.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 net.sweetohm.ant.util.FileTask |
|
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 | |
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 |
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, handleErrorOutput, handleOutput, 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 |
clone, 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 |