com.google.appengine.tools.enhancer
Class EnhancerTask
- java.lang.Object
-
- Java
-
- com.google.appengine.tools.enhancer.EnhancerTask
-
public class EnhancerTask extends Java
An Ant task for ORM enhancement.In order to use this task, users must install a taskdef in Ant:
Where appengine-sdk-classpath includes appengine-tools-api.jar.<taskdef name="enhancer" classpathref="appengine-sdk-classpath" classname="com.google.appengine.tools.development.enhancer.EnhancerTask"/>
Options for this task are documented on DataNucleus' web site.
-
-
Constructor Summary
Constructors Constructor and Description EnhancerTask()
Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
addFileSet(FileSet fs)
Add a fileset.void
execute()
Execution methodjava.io.File
getDir()
Gets the root dir for looking for filesvoid
setApi(java.lang.String api)
set API Adaptervoid
setCheckonly(boolean checkonly)
Whether to just check the enhancement statevoid
setDestination(java.io.File destdir)
set output directoryvoid
setDir(java.io.File dir)
Sets the root dir for looking for filesvoid
setEnhancerName(java.lang.String enhancer)
Set the symbolic name of the ClassEnhancer to usevoid
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 setvoid
setPersistenceUnit(java.lang.String unit)
Set the persistence-unit name to enhancevoid
setVerbose(boolean verbose)
set verbose
-
-
-
Method Detail
-
execute
public void execute() throws BuildException
Execution method- Throws:
BuildException
- Thrown when an error occurs when processing the task
-
setCheckonly
public void setCheckonly(boolean checkonly)
Whether to just check the enhancement state- Parameters:
checkonly
- Whether to just check
-
setDestination
public void setDestination(java.io.File destdir)
set output directory- Parameters:
destdir
- output dir
-
setApi
public void setApi(java.lang.String api)
set API Adapter- Parameters:
api
- API Adapter
-
setEnhancerName
public void setEnhancerName(java.lang.String enhancer)
Set the symbolic name of the ClassEnhancer to use- Parameters:
enhancer
- Class Enhancer to use
-
setPersistenceUnit
public void setPersistenceUnit(java.lang.String unit)
Set the persistence-unit name to enhance- Parameters:
unit
- Name of the persistence-unit to enhance
-
setDir
public void setDir(java.io.File dir)
Sets the root dir for looking for files- Parameters:
dir
- the root dir
-
getDir
public java.io.File getDir()
Gets the root dir for looking for files- Returns:
- the root dir
-
setFileSuffixes
public void setFileSuffixes(java.lang.String suffixes)
Set one or more file suffixes for the input files. Suffixes are separated with a comma(,)- Parameters:
suffixes
- the suffices
-
setVerbose
public void setVerbose(boolean verbose)
set verbose- Parameters:
verbose
- Whether to give verbose output
-
addFileSet
public void addFileSet(FileSet fs)
Add a fileset. @see ant manual- Parameters:
fs
- the FileSet
-
setIf
public void setIf(java.lang.String ifpropertyset)
Executes this task only if the property is set
-
-