Package io.ebean.enhance.ant
Class AntEnhanceTask
java.lang.Object
org.apache.tools.ant.ProjectComponent
org.apache.tools.ant.Task
io.ebean.enhance.ant.AntEnhanceTask
- All Implemented Interfaces:
Cloneable
An ANT task that can enhance entity beans etc for use by Ebean.
You can use this ANT task as part of your build process to enhance entity beans etc.
The parameters are:
- classSource This is the root directory where the .class files are found.
- packages A comma delimited list of packages that is searched for classes that need to be enhanced. If the package ends with ** or * then all subpackages are also searched.
- transformArgs Arguments passed to the transformer. Typically a debug level in the form of debug=1 etc.
<taskdef name="ebeanEnhance" classname="AntEnhanceTask" classpath="bin" />
<target name="enhance" depends="compile">
<ebeanEnhance
classSource="${bin.dir}"
packages="com.avaje.ebean.meta.**, com.acme.myapp.entity.**"
transformArgs="debug=1" />
</target>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidexecute()the classpath used to search for e.g.voidsetClasspath(String classpath) the classpath used to search for e.g.voidsetClassSource(String source) Set the directory holding the class files we want to transform.voidsetPackages(String packages) Set the package name to search for classes to transform.voidsetTransformArgs(String transformArgs) Set the arguments passed to the transformer.Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, init, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskTypeMethods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
-
Constructor Details
-
AntEnhanceTask
public AntEnhanceTask()
-
-
Method Details
-
execute
- Overrides:
executein classorg.apache.tools.ant.Task- Throws:
org.apache.tools.ant.BuildException
-
getClasspath
the classpath used to search for e.g. inerited classes -
setClasspath
the classpath used to search for e.g. inerited classes -
setClassSource
Set the directory holding the class files we want to transform. -
setTransformArgs
Set the arguments passed to the transformer. -
setPackages
Set the package name to search for classes to transform.If the package name ends in "/**" then this recursively transforms all sub packages as well.
-