output=file and output=tcp

320 views
Skip to first unread message

abhigu...@gmail.com

unread,
Sep 5, 2015, 2:55:01 PM9/5/15
to JaCoCo and EclEmma Users
Hi,
I want know is there any possibility is their to use combination of
output=file and output=tcp? Means on exit jvm generate exec file and on tcp request it will provide coverage data to client.
At present i am able to use any of following :-
javaagent:/var/lib_jacoco/jacocoagent.jar=destfile=/var/jacoco.exec,append=true,dumponexit=true,output=file
or
javaagent:/var/lib_jacoco/jacocoagent.jar=output=tcpserver,address=111.11.1.111,port=6300

I am ok with something like as below if it works :-
javaagent:/var/lib_jacoco/jacocoagent.jar=destfile=/var/jacoco.exec,append=true,dumponexit=true,output=tcpserver,address=111.11.1.111,port=6300


Thanks
Abhishek

Marc Hoffmann

unread,
Sep 7, 2015, 9:37:09 AM9/7/15
to jac...@googlegroups.com
Hi Abhishek,

output modes are exclusive.

But dumponexit=exit and e.g. output=tcpxxx can be combined. This means
the JaCoCo agent dumps coverage data to a open connection on JVM exit.

Regards,
-marc

abhigu...@gmail.com

unread,
Sep 8, 2015, 2:21:40 AM9/8/15
to JaCoCo and EclEmma Users
Hi Marc,
Thanks for reply. So I need to write a java code , which will keep a open tcp connection with java agent running my tomcat.

Thanks
Abhishek

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