how to add ant script for bytecode instrumentation [message #890091] |
Thu, 21 June 2012 04:49 |
Rohit Lad Messages: 2 Registered: June 2012 |
Junior Member |
|
|
Hi,
I am using Hibernate 3.3 in my web application. Hibernate3 supports the lazy fetching of individual properties. To enable this feature I need to do bytecode instrumentation by adding following ant script.
Can anyone suggest me any toolset or the way to add this any script to web application ?
My project is in Myeclipse but there is no option to do this.
I dont have Idea how to add following script and configure in my project.
<target name="instrument" depends="compile">
<taskdef name="instrument" classname="org.hibernate.tool.instrument.InstrumentTask">
<classpath path="${jar.path}"/>
<classpath path="${classes.dir}"/>
<classpath refid="lib.class.path"/>
</taskdef>
<instrument verbose="true">
<fileset dir="${testclasses.dir}/org/hibernate/auction/model">
<include name="*.class"/>
</fileset>
</instrument>
</target>
Thanks,
Rohit
|
|
|
Powered by
FUDForum. Page generated in 0.02545 seconds