How to use OSGI agent

14 views
Skip to first unread message

silvamac...@gmail.com

unread,
May 10, 2017, 8:02:20 AM5/10/17
to JaCoCo and EclEmma Users
Hello,

Can I use a OSGI bundle agent instead of jacoco agent as VM argument?How?
How can I collect the report?

Regards

Marc Hoffmann

unread,
May 10, 2017, 8:11:42 AM5/10/17
to jac...@googlegroups.com
Hi,

no, this is not supported with JaCoCo out of the box. JaCoCo works on
JVM level as a Java agent and provides no framework specific mechanisms.

There is a old prototype based on EMMA:
http://www.eclemma.org/research/instrumentingosgi/index.html

But be warned that EMMA does not work with modern Java versions and the
prototype is not a supported project at all.

Theoretically one could think of implementing the same strategy as
described in the paper on top of JaCoCo APIs.

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