- 2016-04-04

as mentioned, I have a jar file with nested jars inside. I need to instrument the nested jars, and I have no impact on this design (my job is to measure the coverage, not to alter the project).

The architecture of the root jar is something like

root.jar

  • main.class
    (and several other classes)
  • jar folder
    • nested1.jar
    • nested2.jar
    • ...

and I use offline instrumentation via ant:

<target>
    <emma>
        <instr>...</instr>
    </emma>

    <java>...</java>

    <emma>
        <report>...</report>
    </emma>
</target>

by default, only the main.class and the other classes in the root.jar are instrumented, and not the nested jar files. but I need the exact opposite of this. do you have any suggestions?

 

Last edit: 2016-04-05