Hi,
so you mean attaching the agent to a already running Java program?
This is not possible due to the way how JaCoCo is implemented (adding new members to instrumented classes) and restrictions of the JVM (no schema changes on re-transformation possible).
Regards,
-marc
--
You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/f966a983-62e1-4eb3-bc58-d43e42977197%40googlegroups.com.
Hi,
so you mean attaching the agent to a already running Java program?
This is not possible due to the way how JaCoCo is implemented (adding new members to instrumented classes) and restrictions of the JVM (no schema changes on re-transformation possible).
Regards,
-marc
On 2019-10-22 07:27, Shehan Dhaleesha wrote:
So what I want is start the JaCoCo agent dynamically so that I don't need to give any specific jar program name to start the agent. So this is what I tried.
java -javaagent:jacocoagent.jar -jar myjar.jar
So I used previous command to execute the JaCoCo agent and used the .exec file to generate a coverage report (note that this is not a test coverage report). So what I want now is, starting the agent dynamically, which means, not typing the above command. Is this can be done? If not what should be the way to approach this?
Note that I don't want use any maven or ant plugin in this case.--
You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jac...@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/a59bda25-1968-44f8-88a4-352ae6269f97%40googlegroups.com.