I have used option - excludes in catalina.bat file like below 
SET 
JACOCO=-javaagent:D:\share\jacoco-0.7.5.201505241946\lib\jacocoagent.jar=destfile=d:\jacoco.exec,append=true,includes=*,excludes="com/pass/project/vtong/generated/ppl/shared/bo/BoBoAirComponentBaseValueImpl:com/pass/project/vtong/generated/ppl/shared/bo/BoBoItineraryBaseValueImpl",output=file
set JAVA_OPTS=%JAVA_OPTS% %JACOCO%

 This resulted in no exception but generated jacoco.exec file doesn't 
contain projects sources related information. It is covering only tomcat 
server related files inforamtion. Even if i generate report by using this 
exec, there is 0% coverage for project sources.

I am doing proper JVM shutdown to collect data but i am not able to see 
project source files related data in jacoco.exec. 

If i use options like below in catalina,bat with other small project where 
we don't have large class files for which excludes is not required
SET 
JACOCO=-javaagent:D:\share\jacoco-0.7.5.201505241946\lib\jacocoagent.jar=destfile=d:\jacoco.exec,append=true,includes=*
set JAVA_OPTS=%JAVA_OPTS% %JACOCO%
then i am able to get proper jacoco.exec with project source files related 
data and i am getting proper jacoco coverage report..

Could you please suggest me..

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jacoco/0ed95b05-742b-47cb-ae46-1fae46a8e6fc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to