public class EnhancerTask
extends org.apache.tools.ant.taskdefs.Java
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 |
setAlwaysDetachable(boolean detachable)
set always detachable.
|
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 |
setDetachListener(boolean flag)
Whether to use detach listener.
|
void |
setDir(File dir)
Sets the root dir for looking for files
|
void |
setFileSuffixes(String suffixes)
Set one or more file suffixes for the input files.
|
void |
setGenerateConstructor(boolean flag)
Whether to allow generation of default constructor where required.
|
void |
setGeneratePK(boolean flag)
Whether to allow generation of PKs where required.
|
void |
setIf(String ifpropertyset) |
void |
setPersistenceUnit(String unit)
Set the persistence-unit name to enhance
|
void |
setQuiet(boolean quiet)
set quiet
|
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, setError, setErrorProperty, setFailonerror, setFork, setInput, setInputString, setJar, setJvm, setJvmargs, setJVMVersion, setLogError, setMaxmemory, setModule, setModulepath, setModulepathRef, setNewenvironment, setOutput, setOutputproperty, setResultProperty, setSourceFile, setSpawn, setTimeout, setupRedirector
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
public void execute() throws org.apache.tools.ant.BuildException
execute
in class org.apache.tools.ant.taskdefs.Java
org.apache.tools.ant.BuildException
- Thrown when an error occurs when processing the taskpublic void setCheckonly(boolean checkonly)
checkonly
- Whether to just checkpublic void setGeneratePK(boolean flag)
flag
- Allow PK generationpublic void setGenerateConstructor(boolean flag)
flag
- Allow default constructor additionpublic void setDetachListener(boolean flag)
flag
- to detach listener usepublic void setDestination(File destdir)
destdir
- output dirpublic void setApi(String api)
api
- API Adapterpublic void setPersistenceUnit(String unit)
unit
- Name of the persistence-unit to enhancepublic void setDir(File dir)
setDir
in class org.apache.tools.ant.taskdefs.Java
dir
- the root dirpublic File getDir()
public void setFileSuffixes(String suffixes)
suffixes
- the sufficespublic void setAlwaysDetachable(boolean detachable)
detachable
- Whether all enhanced classes should be detachablepublic void setVerbose(boolean verbose)
verbose
- Whether to give verbose outputpublic void setQuiet(boolean quiet)
quiet
- Whether to give no outputpublic void addFileSet(org.apache.tools.ant.types.FileSet fs)
fs
- the FileSetprotected File[] getFiles()
public void setIf(String ifpropertyset)
Copyright © 2019. All rights reserved.