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/>