net.cafebabe.sat.xml
Class MergeTask

java.lang.Object
  |
  +--org.apache.tools.ant.ProjectComponent
        |
        +--org.apache.tools.ant.Task
              |
              +--net.cafebabe.sat.util.FileTask
                    |
                    +--net.cafebabe.sat.xml.MergeTask

public class MergeTask
extends FileTask

This task merge XML files in a single file (see documentation for more details).

Author:
Michel CASABIANCA

Field Summary
 
Fields inherited from class net.cafebabe.sat.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.
 void setDoctype(java.lang.String doctype)
          Doctype setter.
 void setEncoding(java.lang.String encoding)
          Encoding setter.
 void setForve(boolean force)
          Set the force attribute (force merging if true).
 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.cafebabe.sat.util.FileTask
addFileset, getFiles, getNewFiles, newerFilesThan, 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
 

Constructor Detail

MergeTask

public MergeTask()
Method Detail

setTofile

public void setTofile(java.lang.String tofile)
Destination file setter.

Parameters:
tofile - The destination file.

setEncoding

public void setEncoding(java.lang.String encoding)
Encoding setter.

Parameters:
encoding - The encoding of the XML files

setDoctype

public void setDoctype(java.lang.String doctype)
Doctype setter.

Parameters:
doctype - The doctype of the XML file.

setNestingElement

public void setNestingElement(boolean nestingElement)
Indicate if a nesting element is necessary.

Parameters:
nestingElement -

setNestingElementName

public void setNestingElementName(java.lang.String nestingElementName)
Indicate the name of the nesting element.

Parameters:
nestingElementName -

setForve

public void setForve(boolean force)
Set the force attribute (force merging if true).

Parameters:
force - Force flaf as a boolean

execute

public void execute()
The method to launch the program as an Ant task.

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