Clover's report

Thank you for your answers, I really helped!

I have another problem: I generate war file on the local machine, then copy it to the server and copy the file to the same clover.db, and There is writed a file to my java classes on the local machine (I not possible to generate war file on the server), then I generate a report on the server (mvn clover2: clover) in the report. I get error while report generating

[ERROR] Failed to render syntax highlights for /tmp/clover/C:\root_cvs\projects_src\applications\servlet\src\main\java\project\services\search\CServiceXMLResponse.java: C:\root_cvs\projects_src\applications\servlet\src\main\java\project\\services\search\CServiceXMLResponse.java (No such file or directory)

C:\root_cvs\projects_src\applications\servlet\src\main\java\project\\services\search\CServiceXMLResponse.java - my local path

How can I avoid this problem?

1 answer

1 accepted

This widget could not be displayed.

There are two options possible:

1) If you have sources available on a server where report is generated, you have to tell Clover where they're located. Unfortunately, there is no direct configuration option for maven-clover2-plugin, so you have to use the <reportDescriptor> parameter, which allows to point to the XML file in the Ant build file format. In this XML file configure your own <clover-report> task and define <sourcepath/> parameter.

See:

2) You can copy coverage data back to your build server and generate reports on the build machine. As sources are available there, Clover will find them (clover.db contains information about location of sources).

Cheers
Marek

Clover generated in the report folder follow files (in reportFolder/myPockets../):(html files for Java classes) C:\root_cvs\servlet\src\main\java\services\CJMSService.html (name of the file:C:\root_cvs\servlet\src\main\java\services\CJMSService) Is it correct? How I can change this name (Its too long name for JBoss) ?

On the build server this file is:CJMSService.html

What Clover version do you have? Looks to be the CLOV-1112 bug which was solved in 3.1.7.

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

121 views 2 0
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you