In order to use this task, typically you would define a a taskdef similiar to:
<taskdef name="instrument" classname="org.hibernate.tool.instrument.javassist.InstrumentTask">
<classpath refid="lib.class.path"/>
</taskdef>
where lib.class.path is an ANT path reference containing all the
required Hibernate and Javassist libraries.
And then use it like:
<instrument verbose="true">
<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 attriubute on the task:
<instrument verbose="true" 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. | |