public class EnhancerTask
extends Java
In order to use this task, users must install a taskdef in Ant:
<taskdef name="enhancer" classpathref="appengine-sdk-classpath" classname="com.google.appengine.tools.development.enhancer.EnhancerTask"/>Where appengine-sdk-classpath includes appengine-tools-api.jar.
Options for this task are documented on DataNucleus' web site.
Constructor and Description |
---|
EnhancerTask()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addFileSet(FileSet fs)
Add a fileset.
|
void |
execute()
Execution method
|
java.io.File |
getDir()
Gets the root dir for looking for files
|
void |
setApi(java.lang.String api)
set API Adapter
|
void |
setCheckonly(boolean checkonly)
Whether to just check the enhancement state
|
void |
setDestination(java.io.File destdir)
set output directory
|
void |
setDir(java.io.File dir)
Sets the root dir for looking for files
|
void |
setEnhancerName(java.lang.String enhancer)
Set the symbolic name of the ClassEnhancer to use
|
void |
setFileSuffixes(java.lang.String suffixes)
Set one or more file suffixes for the input files.
|
void |
setIf(java.lang.String ifpropertyset)
Executes this task only if the property is set
|
void |
setPersistenceUnit(java.lang.String unit)
Set the persistence-unit name to enhance
|
void |
setVerbose(boolean verbose)
set verbose
|
public void execute() throws BuildException
BuildException
- Thrown when an error occurs when processing the taskpublic void setCheckonly(boolean checkonly)
checkonly
- Whether to just checkpublic void setDestination(java.io.File destdir)
destdir
- output dirpublic void setApi(java.lang.String api)
api
- API Adapterpublic void setEnhancerName(java.lang.String enhancer)
enhancer
- Class Enhancer to usepublic void setPersistenceUnit(java.lang.String unit)
unit
- Name of the persistence-unit to enhancepublic void setDir(java.io.File dir)
dir
- the root dirpublic java.io.File getDir()
public void setFileSuffixes(java.lang.String suffixes)
suffixes
- the sufficespublic void setVerbose(boolean verbose)
verbose
- Whether to give verbose outputpublic void addFileSet(FileSet fs)
fs
- the FileSetpublic void setIf(java.lang.String ifpropertyset)