com.google.appengine.tools.enhancer
Class EnhancerTask
- java.lang.Object
-
- Java
-
- com.google.appengine.tools.enhancer.EnhancerTask
-
public class EnhancerTask extends JavaAn 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 voidaddFileSet(FileSet fs)Add a fileset.voidexecute()Execution methodjava.io.FilegetDir()Gets the root dir for looking for filesvoidsetApi(java.lang.String api)set API AdaptervoidsetCheckonly(boolean checkonly)Whether to just check the enhancement statevoidsetDestination(java.io.File destdir)set output directoryvoidsetDir(java.io.File dir)Sets the root dir for looking for filesvoidsetEnhancerName(java.lang.String enhancer)Set the symbolic name of the ClassEnhancer to usevoidsetFileSuffixes(java.lang.String suffixes)Set one or more file suffixes for the input files.voidsetIf(java.lang.String ifpropertyset)Executes this task only if the property is setvoidsetPersistenceUnit(java.lang.String unit)Set the persistence-unit name to enhancevoidsetVerbose(boolean verbose)set verbose
-
-
-
Method Detail
-
execute
public void execute() throws BuildExceptionExecution 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
-
-