how to excludes class in agent argument

779 views
Skip to first unread message

matthew

unread,
Nov 25, 2014, 12:51:18 AM11/25/14
to jac...@googlegroups.com
For example, i have two packages a.b.c and a.b.d. Definitely, those two packages include several classes. Now, i want to exclude them. can i set the arguments as below?
-javaagent:/opt/jcc/jacocoagent.jar=excludes=a.b.*,output=tcpserver,address=192.168.x.x,port=1111

does the a.b.* work?

Or I have to use below arguments
-javaagent:/opt/jcc/jacocoagent.jar=excludes=a.b.c.*:a.b.d.*,output=tcpserver,address=192.168.x.x,port=1111
Message has been deleted

ddr...@gmail.com

unread,
Nov 25, 2014, 1:26:17 AM11/25/14
to jac...@googlegroups.com
I found below older similar post, but there are no solutions.
How to include all class under sub package using "Include" parameter on JavaAgent Way?

"according to JaCoCo ducoment, * means all class, I do not think it means all class both under package and sub package. "

I have the same worried, and i am running into technical problems with certain classes, therefor i have to exclude several packages.

Marc R. Hoffmann

unread,
Nov 25, 2014, 1:48:14 AM11/25/14
to jac...@googlegroups.com
Hi,

the wildcard * will match any part of the absolute class name. For example

include=com.example.*

will match com.example.Foo1 and com.example.some.Foo2.

Best regards,
-marc

matthew

unread,
Nov 25, 2014, 1:57:29 AM11/25/14
to jac...@googlegroups.com
Thanks for your reply. It is clear now.
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages