Jacoco ant tak exclude classes not working 1 post by 1 author

19 views
Skip to first unread message

Saurabh Garg

unread,
Sep 9, 2016, 6:56:46 AM9/9/16
to JaCoCo and EclEmma Users

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

 

 

 

 

Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages