ch.elca.el4j.services.xmlmerge.anttask
Class XmlMergeTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by ch.elca.el4j.services.xmlmerge.anttask.XmlMergeTask
All Implemented Interfaces:
Cloneable

public class XmlMergeTask
extends org.apache.tools.ant.Task

Task for merging XML files in Ant.

Attributes:

Content:

Usage example:
   <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>
 

Author:
Laurent Bovet (LBO), Alex Mathey (AMA)
File-location:
XmlMergeTask
Last check-in date:
2009-08-04 15:48:31 +0200 (Di, 04. Aug 2009) by swismer for revision 3884

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

XmlMergeTask

public XmlMergeTask()
Method Detail

setConf

public void setConf(String confFilename)
Sets the configuration file name.

Parameters:
confFilename - The configuration file name to set.

setDest

public void setDest(String destFilename)
Sets the destination file name.

Parameters:
destFilename - The destination file name to set.

addFileSet

public void addFileSet(org.apache.tools.ant.types.FileSet fileset)
Adds a file set.

Parameters:
fileset - The file set to add

validate

public void validate()
Validates the configuration and destination files and the file sets.


execute

public void execute()

Overrides:
execute in class org.apache.tools.ant.Task


Copyright © 2005-2011 ELCA. All Rights Reserved.