I use API not maven that implemented this function,you can see 
Documentation of sample API and use visitBundle() and visitGroup().

在 2014年1月14日星期二UTC+8上午8时58分24秒,minna hu写道:
>
> I use maven-antrun-plugin and org.jacoco.ant.ReportTask to read source 
> codes from multiple projects and then generate a consolidated jacoco report.
>
> All my projects are under the same parent folder. For example, under the 
> parent folder, there are project A, B, C, D, I use <group> to organize 
> jacoco reports by different projects. I specified <group> section for each 
> project, as follows.
>
> But as you can see, the <group> section are the same for all projects, 
> except the directory name. So my question is: is there a way to loop each 
> project in the parent folder and put it as a group? Thank you~
>
>                                               <group name="A">
>                                                     <classfiles>
>                                                         <fileset 
> dir="../../../A">
>                                                             <include 
> name="**/target/classes/**/*.class" />
>                                                         </fileset>
>                                                     </classfiles>
>                                                     <sourcefiles 
> encoding="UTF-8">
>                                                         <fileset 
> dir="../../../A">
>                                                             <include 
> name="**/src/main/java/**/*.java" />
>                                                         </fileset>
>                                                     </sourcefiles>
>                                                 </group>
>                                                 <group name="B">
>                                                     <classfiles>
>                                                         <fileset 
> dir="../../../B">
>                                                             <include 
> name="**/target/classes/**/*.class" />
>                                                         </fileset>
>                                                     </classfiles>
>                                                     <sourcefiles 
> encoding="UTF-8">
>                                                         <fileset 
> dir="../../../B">
>                                                             <include 
> name="**/src/main/java/**/*.java" />
>                                                         </fileset>
>                                                     </sourcefiles>
>                                                 </group>
>

-- 
You received this message because you are subscribed to the Google Groups 
"JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to