it.haefelinger.flaka
Class XmlMerger

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by it.haefelinger.flaka.Task
              extended by it.haefelinger.flaka.XmlMerger
All Implemented Interfaces:
Cloneable

public class XmlMerger
extends Task

Since:
1.0
Author:
merzedes

Nested Class Summary
 class XmlMerger.TagFilter
           
 
Field Summary
protected  Element accu
           
protected  boolean doinit
           
protected  String dst
           
protected  FileFilter ffilter
           
protected  Pattern filter
           
protected  String pattern
           
protected  boolean removeProperties
           
protected  String src
           
 
Fields inherited from class it.haefelinger.flaka.Task
debug, el
 
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
XmlMerger()
           
 
Method Summary
 Element asElement(File file)
           
 SAXBuilder builder()
           
 void execute()
           
 Element getAccu()
           
 Pattern getFilter()
           
 void initialize()
           
static void main(String[] args)
           
protected  void merge(File file)
           
protected  void merge(String s)
           
protected  void merge(String[] args)
           
 void setDst(String s)
           
 void setPattern(String pattern)
           
 void setRemoveProperties(boolean b)
           
 void setRoot(String s)
           
 void setSrc(String s)
           
 Element useAccu(Element e)
           
 Pattern useFilter(Pattern filter)
           
 void validate()
           
protected  void writeTo(OutputStream out)
           
protected  void writeTo(String s)
           
 
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
 
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

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
Constructor Detail

XmlMerger

public XmlMerger()
Method Detail

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)