org.exolab.castor.tools.ant.taskdefs
Class CastorSourceGenTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.apache.tools.ant.taskdefs.MatchingTask
              extended by org.exolab.castor.tools.ant.taskdefs.CastorSourceGenTask
All Implemented Interfaces:
java.lang.Cloneable, org.apache.tools.ant.types.selectors.SelectorContainer

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

An Ant task to call the Castor Source Generator. It can be passed a file, a directory, a Fileset or all three.

Author:
Joel Farquhar, Bruce Snyder

Field Summary
(package private)  SourceGenerator sgen
          SourceGenerator instance
 
Fields inherited from class org.apache.tools.ant.taskdefs.MatchingTask
fileset
 
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
CastorSourceGenTask()
           
 
Method Summary
 void addFileset(org.apache.tools.ant.types.FileSet set)
           
 void execute()
           
 void setBindingfile(java.lang.String bindingfile)
           
 void setDir(java.io.File dir)
           
 void setFile(java.io.File file)
           
 void setLineseparator(java.lang.String ls)
           
 void setNodesc(boolean b)
           
 void setNomarshall(boolean b)
           
 void setPackage(java.lang.String pack)
           
 void setProperties(java.lang.String properties)
          Sets the file to use for castor builder properties
 void setTestable(boolean b)
           
 void setTodir(java.lang.String dest)
           
 void setTypes(java.lang.String tf)
           
 void setVerbose(boolean b)
           
 void setWarnings(boolean b)
           
 
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
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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sgen

SourceGenerator sgen
SourceGenerator instance

Constructor Detail

CastorSourceGenTask

public CastorSourceGenTask()
Method Detail

setFile

public void setFile(java.io.File file)

setDir

public void setDir(java.io.File dir)

addFileset

public void addFileset(org.apache.tools.ant.types.FileSet set)

setPackage

public void setPackage(java.lang.String pack)

setTodir

public void setTodir(java.lang.String dest)

setBindingfile

public void setBindingfile(java.lang.String bindingfile)

setLineseparator

public void setLineseparator(java.lang.String ls)

setTypes

public void setTypes(java.lang.String tf)

setVerbose

public void setVerbose(boolean b)

setWarnings

public void setWarnings(boolean b)

setNodesc

public void setNodesc(boolean b)

setNomarshall

public void setNomarshall(boolean b)

setTestable

public void setTestable(boolean b)

setProperties

public void setProperties(java.lang.String properties)
Sets the file to use for castor builder properties

Parameters:
properties - the properties to use

execute

public void execute()
             throws org.apache.tools.ant.BuildException
Overrides:
execute in class org.apache.tools.ant.Task
Throws:
org.apache.tools.ant.BuildException


Intalio Inc. (C) 1999-2004. All rights reserved http://www.intalio.com