facebook

how to add ant script for bytecode instrumentation

  1. MyEclipse Archived
  2.  > 
  3. Database Tools (DB Explorer, Hibernate, etc.)
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #327332 Reply

    rohitlad
    Participant

    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

    #327335 Reply

    support-swapna
    Moderator

    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.

    #327388 Reply

    rohitlad
    Participant

    Hi Swapna,

    Thanks for your suggestion.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: how to add ant script for bytecode instrumentation

You must be logged in to post in the forum log in