difference between org.jacoco.agent-version-runtime.jar and org.jacoco.agent-version.jar

418 views
Skip to first unread message

Myeongjoon Kim

unread,
Aug 3, 2016, 10:30:08 PM8/3/16
to JaCoCo and EclEmma Users
To get jacoco report, I added thie line tomcat's catalina.sh

JAVA_OPTS=”-javaagent:org.jacoco.agent-0.7.4.201502262128-runtime.jar”


But if I use not runtime, but normal agent like org.jacoco.agent-version.jar, is there any difference?

the letter "runtime.jar" says that project can use it in runtime.

but I understanding jacoco itself support runtime.

I confused.

Evgeny Mandrikov

unread,
Aug 4, 2016, 11:22:36 AM8/4/16
to JaCoCo and EclEmma Users
Hi,

Talking about artifacts available from Maven repository:

org.jacoco.agent-<version>.jar contains only API to get agent JAR file, i.e. http://www.eclemma.org/jacoco/trunk/doc/api/org/jacoco/agent/package-summary.html
org.jacoco.agent-<version>-runtime.jar - is an agent itself

They correspond one-to-one to the following artifacts in zip-distribution of JaCoCo ( http://www.eclemma.org/jacoco/trunk/index.html ) :

org.jacoco.agent-<version>.jar
jacocoagent.jar

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