MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
rohitlad
Post subject: how to add ant script for bytecode instrumentation  PostPosted: Jun 20, 2012 - 12:30 PM



Joined: Jun 20, 2012
Posts: 2

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 let me know how can I add this any script to myeclipse web app?
I went to project properties->Builder-add new ant script. but 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>

Thank,
Rohit
 
 View user's profile Send private message  
Reply with quote Back to top
support-swapna
Post subject:   PostPosted: Jun 20, 2012 - 12:49 PM



Joined: Nov 11, 2010
Posts: 2149

Rohit,

I am afraid this is not MyEclipse issue.Ant integration is provided by the base Eclipse toolset, MyEclipse doesn't instrument this at all so I can't offer you any "myeclipse-specific" tips for integrating that work.

I suggest you cross post to Eclipse/ANT forums for better support.

Hope it helps.

_________________
Swapna
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
rohitlad
Post subject:   PostPosted: Jun 21, 2012 - 05:35 AM



Joined: Jun 20, 2012
Posts: 2

Hi Swapna,

Thanks for your suggestion.
 
 View user's profile Send private message  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits