Hi All,

I am using below ant script with jacoco ant jar to generate jacoco report 
files

 

<jacoco:report>

                                    <executiondata>

                               <file file="merged.exec"/>

                                    </executiondata>

                                    <structure name="TEST Project">

                                                <classfiles>

                                                            <fileset 
dir="classes"/>

                                                </classfiles>

                                                <sourcefiles 
encoding="UTF-8">

                                                            <fileset 
dir="src"/>

                                                </sourcefiles>

                                    </structure>

                                                                                
                


                                    <xml destfile="jacoco/report.xml"/>

</jacoco:report>

 

 

i want to exclude some classes that are no longer in use to do that i added 
below snippet

 

jacoco:report>

                                    <executiondata>

                               <file file="merged.exec"/>

                                    </executiondata>

                                    <structure name="TEST Project">

                                                <classfiles>

                                                            <fileset 
dir="classes">

                                               <exclude name="**/A*.class"/>

                                        </fileset>

                                                </classfiles>

                                                <sourcefiles 
encoding="UTF-8">

                                                            <fileset 
dir="src"/>

                                                </sourcefiles>

                                    </structure>

                                                                                
                


                                    <xml destfile="jacoco/report.xml"/>

                                                                                
                


                        </jacoco:report>

but for both out come is same no of classes are equal when i ran the both 
scripts.

 

Please suggest resolution for the same. 

 

Thanks and regards

Saurabh

 

 

 

 

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-dev/9bd5f964-7a77-478f-a1dd-5e83a6e87ad3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to