public class AntEnhanceTask
extends org.apache.tools.ant.Task
You can use this ANT task as part of your build process to enhance entity beans etc.
The parameters are:
<taskdef name="ebeanEnhance" classname="com.avaje.ebean.enhance.ant.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 and Description |
|---|
AntEnhanceTask() |
| Modifier and Type | Method and Description |
|---|---|
void |
execute() |
String |
getClasspath()
the classpath used to search for e.g.
|
void |
setClasspath(String classpath)
the classpath used to search for e.g.
|
void |
setClassSource(String source)
Set the directory holding the class files we want to transform.
|
void |
setPackages(String packages)
Set the package name to search for classes to transform.
|
void |
setTransformArgs(String transformArgs)
Set the arguments passed to the transformer.
|
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, 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.Taskorg.apache.tools.ant.BuildExceptionpublic String getClasspath()
public void setClasspath(String classpath)
public void setClassSource(String source)
public void setTransformArgs(String transformArgs)
public void setPackages(String packages)
If the package name ends in "/**" then this recursively transforms all sub packages as well.
Copyright © 2016. All rights reserved.