org.codehaus.annogen.generate
Class AnnogenTask
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
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>
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 |
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 |
AnnogenTask
public AnnogenTask()
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