public class EnhancerTask
extends org.apache.tools.ant.taskdefs.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(org.apache.tools.ant.types.FileSet fs)
Add a fileset.
|
void |
execute()
Execution method
|
File |
getDir()
Gets the root dir for looking for files
|
protected File[] |
getFiles() |
void |
setApi(String api)
set API Adapter
|
void |
setCheckonly(boolean checkonly)
Whether to just check the enhancement state
|
void |
setDestination(File destdir)
set output directory
|
void |
setDir(File dir)
Sets the root dir for looking for files
|
void |
setEnhancerName(String enhancer)
Set the symbolic name of the ClassEnhancer to use
|
void |
setFileSuffixes(String suffixes)
Set one or more file suffixes for the input files.
|
void |
setIf(String ifpropertyset)
Executes this task only if the property is set
|
void |
setPersistenceUnit(String unit)
Set the persistence-unit name to enhance
|
void |
setVerbose(boolean verbose)
set verbose
|
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, setupRedirectorbindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypepublic void execute()
throws org.apache.tools.ant.BuildException
execute in class org.apache.tools.ant.taskdefs.Javaorg.apache.tools.ant.BuildException - Thrown when an error occurs when processing the taskpublic void setCheckonly(boolean checkonly)
checkonly - Whether to just checkpublic void setDestination(File destdir)
destdir - output dirpublic void setApi(String api)
api - API Adapterpublic void setEnhancerName(String enhancer)
enhancer - Class Enhancer to usepublic void setPersistenceUnit(String unit)
unit - Name of the persistence-unit to enhancepublic void setDir(File dir)
setDir in class org.apache.tools.ant.taskdefs.Javadir - the root dirpublic File getDir()
public void setFileSuffixes(String suffixes)
suffixes - the sufficespublic void setVerbose(boolean verbose)
verbose - Whether to give verbose outputpublic void addFileSet(org.apache.tools.ant.types.FileSet fs)
fs - the FileSetprotected File[] getFiles()
public void setIf(String ifpropertyset)
Copyright © 2022. All rights reserved.