public class ClassEnhancerTask
extends org.apache.tools.ant.Task
ant
task for running the ClassEnhancer
.
ClassEnhancerTask
objects are thread-safe. Multiple threads may
safely call the methods of a shared ClassEnhancerTask
object.
The class enhancer task element has no attributes. It may contain one or
more nested fileset
elements specifying the classes to be enhanced.
The class files are replaced when they are enhanced, without changing the
file modification date. For example:
<taskdef name="enhance-persistent-classes" classname="com.sleepycat.persist.model.ClassEnhancerTask" classpath="${je.home}/lib/je-<version>.jar"/> <target name="main"> <enhance-persistent-classes verbose="no"> <fileset dir="classes"/> </enhance-persistent-classes> </target>
The verbose attribute may be specified as "true", "yes" or "on" (like other Ant boolean attributes) to print the name of each class file that is enhanced. The total number of class files enhanced will always be printed.
Constructor and Description |
---|
ClassEnhancerTask() |
Modifier and Type | Method and Description |
---|---|
void |
addConfiguredFileset(org.apache.tools.ant.types.FileSet files) |
void |
execute() |
void |
setVerbose(boolean verbose) |
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, 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.Task
org.apache.tools.ant.BuildException
public void addConfiguredFileset(org.apache.tools.ant.types.FileSet files)
public void setVerbose(boolean verbose)