org.umber.catalan.util
Class TransformTask

java.lang.Object
  extended byTask
      extended byorg.umber.catalan.util.TransformTask

public class TransformTask
extends Task

Ant task for running the Transformer front end.

Author:
jsheets
See Also:
Serialized Form

Nested Class Summary
static class TransformTask.Input
          JavaBean to encapsulate <input> element inside <catalan> Ant task.
 
Constructor Summary
TransformTask()
           
 
Method Summary
 void addConfiguredFileset(FileSet fileset)
          Loads the files selected by the <fileset> element into the list of input nodes.
 void addConfiguredInput(TransformTask.Input input)
          Loads the PCDATA contents of the next child element.
 void execute()
          Runs the Transformer with the supplied parameters.
 void setTransform(java.lang.String transform)
          Sets the file name of the Transform XML file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TransformTask

public TransformTask()
Method Detail

setTransform

public void setTransform(java.lang.String transform)
Sets the file name of the Transform XML file.

Parameters:
transform - file name of Transform XML file

addConfiguredInput

public void addConfiguredInput(TransformTask.Input input)
Loads the PCDATA contents of the next child element.

Parameters:
input - the element

addConfiguredFileset

public void addConfiguredFileset(FileSet fileset)
Loads the files selected by the <fileset> element into the list of input nodes.

Parameters:
fileset - the <fileset> element

execute

public void execute()
             throws BuildException
Runs the Transformer with the supplied parameters.

Throws:
BuildException - if required parameters are missing
See Also:
org.apache.tools.ant.Task#execute()