-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: InstrumentTask is removing Debug Compile Information
PostPosted: Fri Jun 10, 2011 4:27 am 
Newbie

Joined: Thu Jun 09, 2011 9:20 am
Posts: 1
I need to run two bytecode instrumentations:
1. Hibernate Instrumentation because of Lazy Loading
2. Emma Instrumentation for getting Code Coverage, all my classes needs to be compiled with debug information to that Emma can determine the line coverage

If I'm running the instrumentation in the following order:
1. Compile with Debug Information
2. Hibernate Instrumentation
3. Emma Instrumentation
=> The Problem is that the Hibernate Instrumentation is removing the debug information from the bytecode, so that the Emma Instrumentation will not run correctly.

Any ideas?

Here are parts of my Ant Script:
Code:
      <javac srcdir="${src}" destdir="${build.classes}" classpathref="run.classpath" includeantruntime="false"
         debug="on" debuglevel="lines,source" />
...
      <instrument verbose="false" extended="true">
         <fileset dir="${build.classes}/path/model">
               <include name="**"/>
         </fileset>
      </instrument>
...
                <emma> 
           <instr instrpathref="build.classpath"  destdir="${instr.classes}" 
                  metadatafile="${coverage.results}/metadata.emma" 
                  merge="true" / >  <emma/> 


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.