Deprecated
Per HHH-5451 support for cglib as a bytecode provider has been deprecated; use
org. instead
In order to use this task, typically you would define a a taskdef similar to:
<taskdef name="instrument" classname="org.hibernate.tool.instrument.cglib.InstrumentTask">
<classpath refid="lib.class.path"/>
</taskdef>
where lib.class.path is an ANT path reference containing all the
required Hibernate and CGLIB libraries.
And then use it like:
<instrument>
<fileset dir="${testclasses.dir}/org/hibernate/test">
<include name="yadda/yadda/**"/>
...
</fileset>
</instrument>
where the nested ANT fileset includes the class you would like to have
instrumented.
Optionally you can chose to enable "Extended Instrumentation" if desired by specifying the extended attribute on the task:
<instrument extended="true">
...
</instrument>
See the Hibernate manual regarding this option.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected Instrumenter | buildInstrumenter(Logger logger, Instrumenter.
Implements abstract org. |
| InstrumentTask | back to summary |
|---|---|
| public InstrumentTask() | |
| buildInstrumenter | back to summary |
|---|---|
| protected Instrumenter buildInstrumenter(Logger logger, Instrumenter. Implements abstract org. | |