Hi,
there is a subtile difference between classfiles and sourcefiles:
* All files provided in the classfiles tag are processed by the analyzer
one by one. The relative location if class files is not evaluated, as
the full qualified class name is retrieved from the class file itself.
* The source files are looked up on a relative position. As JaCoCo is
source language neutral source files are not parsed. The qualified name
is only derived from the relative path and filename. As documentation
says: "Source file resources must always be specified relative to the
respective source folder. If directory resources are given, they must
directly point to source folders. Otherwise source lookup will not succeed."
The proper solution in your case is not to specify a fileset but the set
of source directories:
<sourcefiles encoding="UTF-8">
<dirset dir="C:\mycomp\trunk">
<include name="**/*/src/java"/>
<exclude name="**/*/ext"/>
<exclude name="**/*/tools"/>
</dirset>
</sourcefiles>
Best regards,
-marc
> --
>