it.haefelinger.flaka
Class XmlMerger
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
it.haefelinger.flaka.Task
it.haefelinger.flaka.XmlMerger
- All Implemented Interfaces:
- Cloneable
public class XmlMerger
- extends Task
- Since:
- 1.0
- Author:
- merzedes
| Fields inherited from class it.haefelinger.flaka.Task |
debug, el |
| Methods inherited from class it.haefelinger.flaka.Task |
debug, debug, error, error, getProperty, getref, info, log, setDebug, setEl, throwbx, throwbx, toFile, verbose, warn, warn |
| 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, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType |
dst
protected String dst
src
protected String src
pattern
protected String pattern
filter
protected Pattern filter
ffilter
protected FileFilter ffilter
removeProperties
protected boolean removeProperties
accu
protected Element accu
doinit
protected boolean doinit
XmlMerger
public XmlMerger()
setDst
public void setDst(String s)
setSrc
public void setSrc(String s)
setRoot
public void setRoot(String s)
setPattern
public void setPattern(String pattern)
useFilter
public Pattern useFilter(Pattern filter)
getFilter
public Pattern getFilter()
getAccu
public Element getAccu()
useAccu
public Element useAccu(Element e)
setRemoveProperties
public void setRemoveProperties(boolean b)
validate
public void validate()
throws BuildException
- Throws:
BuildException
initialize
public void initialize()
throws BuildException
- Throws:
BuildException
builder
public SAXBuilder builder()
throws Exception
- Throws:
Exception
asElement
public Element asElement(File file)
throws BuildException
- Throws:
BuildException
merge
protected void merge(String[] args)
merge
protected void merge(String s)
merge
protected void merge(File file)
execute
public void execute()
throws BuildException
- Overrides:
execute in class Task
- Throws:
BuildException
writeTo
protected void writeTo(OutputStream out)
throws IOException
- Throws:
IOException
writeTo
protected void writeTo(String s)
throws IOException
- Throws:
IOException
main
public static void main(String[] args)