org.codehaus.annogen.generate
Class AnnogenTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.codehaus.annogen.generate.AnnogenTask
All Implemented Interfaces:
java.lang.Cloneable

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

Ant task which generates AnnoBeans.

Author:
Patrick Calahan <email: pcal-at-bea-dot-com>

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
AnnogenTask()
           
 
Method Summary
 void addMapping(AnnoBeanMapping m)
           
 org.apache.tools.ant.types.Path createClasspath()
           
 org.apache.tools.ant.types.Path createToolpath()
           
 void execute()
           
 void setClasspath(org.apache.tools.ant.types.Path path)
           
 void setClasspathRef(org.apache.tools.ant.types.Reference r)
           
 void setDestDir(java.io.File f)
          Sets the directory into which source files should be generated.
 void setImplementAnnotationTypes(boolean b)
           
 void setIncludes(java.lang.String includes)
          Includes source files matching the given patten.
 void setInputEncoding(java.lang.String encoding)
           
 void setKeepGenerated(boolean b)
           
 void setOutputEncoding(java.lang.String encoding)
           
 void setSrcdir(org.apache.tools.ant.types.Path srcDir)
          Set the source directories to find the source Java files.
 void setToolpath(org.apache.tools.ant.types.Path path)
           
 void setToolpathRef(org.apache.tools.ant.types.Reference r)
           
 
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

AnnogenTask

public AnnogenTask()
Method Detail

setDestDir

public void setDestDir(java.io.File f)
Sets the directory into which source files should be generated.

Parameters:
f -

setSrcdir

public void setSrcdir(org.apache.tools.ant.types.Path srcDir)
Set the source directories to find the source Java files.


setIncludes

public void setIncludes(java.lang.String includes)
Includes source files matching the given patten. Pattern is relative to srcDir.


setImplementAnnotationTypes

public void setImplementAnnotationTypes(boolean b)

setToolpath

public void setToolpath(org.apache.tools.ant.types.Path path)

setToolpathRef

public void setToolpathRef(org.apache.tools.ant.types.Reference r)

createToolpath

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

setClasspath

public void setClasspath(org.apache.tools.ant.types.Path path)

setClasspathRef

public void setClasspathRef(org.apache.tools.ant.types.Reference r)

createClasspath

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

addMapping

public void addMapping(AnnoBeanMapping m)

setKeepGenerated

public void setKeepGenerated(boolean b)

setInputEncoding

public void setInputEncoding(java.lang.String encoding)

setOutputEncoding

public void setOutputEncoding(java.lang.String encoding)

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