Class EnhancerTask
- java.lang.Object
-
- org.apache.tools.ant.ProjectComponent
-
- org.apache.tools.ant.Task
-
- org.apache.tools.ant.taskdefs.Java
-
- com.google.appengine.tools.enhancer.EnhancerTask
-
- All Implemented Interfaces:
Cloneable
public class EnhancerTask extends org.apache.tools.ant.taskdefs.JavaAn Ant task for ORM enhancement.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 Summary
Constructors Constructor Description EnhancerTask()Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddFileSet(org.apache.tools.ant.types.FileSet fs)Add a fileset.voidexecute()Execution methodFilegetDir()Gets the root dir for looking for filesprotected File[]getFiles()voidsetApi(String api)set API AdaptervoidsetCheckonly(boolean checkonly)Whether to just check the enhancement statevoidsetDestination(File destdir)set output directoryvoidsetDir(File dir)Sets the root dir for looking for filesvoidsetEnhancerName(String enhancer)Set the symbolic name of the ClassEnhancer to usevoidsetFileSuffixes(String suffixes)Set one or more file suffixes for the input files.voidsetIf(String ifpropertyset)Executes this task only if the property is setvoidsetPersistenceUnit(String unit)Set the persistence-unit name to enhancevoidsetVerbose(boolean verbose)set verbose-
Methods inherited from class org.apache.tools.ant.taskdefs.Java
addAssertions, addConfiguredRedirector, addEnv, addSysproperty, addSyspropertyset, checkConfiguration, clearArgs, createArg, createBootclasspath, createClasspath, createJvmarg, createModulepath, createPermissions, createUpgrademodulepath, createWatchdog, executeJava, executeJava, getCommandLine, getSysProperties, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, maybeSetResultPropertyValue, run, setAppend, setArgs, setClassname, setClasspath, setClasspathRef, setCloneVm, setDiscardError, setDiscardOutput, setError, setErrorProperty, setFailonerror, setFork, setInput, setInputString, setJar, setJvm, setJvmargs, setJVMVersion, setLogError, setMaxmemory, setModule, setModulepath, setModulepathRef, setNewenvironment, setOutput, setOutputproperty, setResultProperty, setSourceFile, setSpawn, setTimeout, setupRedirector
-
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
-
-
-
-
Method Detail
-
execute
public void execute() throws org.apache.tools.ant.BuildExceptionExecution method- Overrides:
executein classorg.apache.tools.ant.taskdefs.Java- Throws:
org.apache.tools.ant.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(File destdir)
set output directory- Parameters:
destdir- output dir
-
setApi
public void setApi(String api)
set API Adapter- Parameters:
api- API Adapter
-
setEnhancerName
public void setEnhancerName(String enhancer)
Set the symbolic name of the ClassEnhancer to use- Parameters:
enhancer- Class Enhancer to use
-
setPersistenceUnit
public void setPersistenceUnit(String unit)
Set the persistence-unit name to enhance- Parameters:
unit- Name of the persistence-unit to enhance
-
setDir
public void setDir(File dir)
Sets the root dir for looking for files- Overrides:
setDirin classorg.apache.tools.ant.taskdefs.Java- Parameters:
dir- the root dir
-
getDir
public File getDir()
Gets the root dir for looking for files- Returns:
- the root dir
-
setFileSuffixes
public void setFileSuffixes(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(org.apache.tools.ant.types.FileSet fs)
Add a fileset. @see ant manual- Parameters:
fs- the FileSet
-
getFiles
protected File[] getFiles()
-
setIf
public void setIf(String ifpropertyset)
Executes this task only if the property is set
-
-