net.sf.colle.ant
Class GeneratingTask

java.lang.Object
  extended byorg.apache.tools.ant.ProjectComponent
      extended byorg.apache.tools.ant.Task
          extended byorg.apache.tools.ant.taskdefs.MatchingTask
              extended bynet.sf.colle.ant.GeneratingTask
All Implemented Interfaces:
org.apache.tools.ant.types.selectors.SelectorContainer
Direct Known Subclasses:
EJBJarTask, GenerateTask

public class GeneratingTask
extends org.apache.tools.ant.taskdefs.MatchingTask

Parent class for tasks that generate files using stylesheets stored in the colle jar. Created: 05 May 2004

Version:
$Revision: 1.2 $, $Date: 2004/11/11 06:33:48 $
Author:
Dwayne Schultz

Field Summary
 
Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask
fileset
 
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
GeneratingTask()
           
 
Method Summary
 org.apache.tools.ant.types.Path createSrc()
           
 int getGeneratedCount()
           
 org.apache.tools.ant.types.Path getSourcePath()
           
protected  void initializeGeneratingTask()
           
 void setColleJar(File pxColleJarFile)
           
 void setSrcDir(org.apache.tools.ant.types.Path pxSourcePath)
           
protected  void setTransformerParameters(javax.xml.transform.Transformer pxTransformer, String psStylesheet)
           
protected  void transform(javax.xml.transform.Source pxSource, long pnSourceModified, String psSourcePath, javax.xml.transform.Result pxResult, long pnResultModified, String psColleStylesheet)
           
 
Methods inherited from class org.apache.tools.ant.taskdefs.MatchingTask
add, addAnd, addContains, addContainsRegexp, addCustom, addDate, addDepend, addDepth, addDifferent, addFilename, addMajority, addModified, addNone, addNot, addOr, addPresent, addSelector, addSize, addType, appendSelector, createExclude, createExcludesFile, createInclude, createIncludesFile, createPatternSet, getDirectoryScanner, getImplicitFileSet, getSelectors, hasSelectors, selectorCount, selectorElements, setCaseSensitive, setDefaultexcludes, setExcludes, setExcludesfile, setFollowSymlinks, setIncludes, setIncludesfile, setProject, XsetIgnore, XsetItems
 
Methods inherited from class org.apache.tools.ant.Task
execute, getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeneratingTask

public GeneratingTask()
Method Detail

createSrc

public org.apache.tools.ant.types.Path createSrc()

setSrcDir

public void setSrcDir(org.apache.tools.ant.types.Path pxSourcePath)

setColleJar

public void setColleJar(File pxColleJarFile)

initializeGeneratingTask

protected void initializeGeneratingTask()

transform

protected void transform(javax.xml.transform.Source pxSource,
                         long pnSourceModified,
                         String psSourcePath,
                         javax.xml.transform.Result pxResult,
                         long pnResultModified,
                         String psColleStylesheet)
                  throws org.apache.tools.ant.BuildException
Throws:
org.apache.tools.ant.BuildException

setTransformerParameters

protected void setTransformerParameters(javax.xml.transform.Transformer pxTransformer,
                                        String psStylesheet)

getGeneratedCount

public int getGeneratedCount()

getSourcePath

public org.apache.tools.ant.types.Path getSourcePath()