Clover-Historypoint target error

Hi all,

when I am executing clover  historypoint target it gave me error like this 

home/IdeaProjects/WebApp/build.xml:301: com.atlassian.clover.registry.NoSuchRegistryException: Clover registry file "/home/IdeaProjects/WebApp/.clover/clover4_1_1.db" does not exist, cannot be read or is a directory.
Please ensure Clover has instrumented your source files. My report target as follow


<target name="" >

<clover-report initstring="/home/Desktop/Clover/.clover/clover4_1_1.db">

<current outfile="/home/tomcat/webapps/common/pages/Clover-report" title=" Code Coverage Report">
<format type="html"/>
<fileset dir="src/server"/>

<historical outfile="/home/tomcat/webapps/common/pages/historical-report" title="Historical Report" historyDir="/home/Desktop/Clover/historypoints">
<format type="html"/>


<clover-historypoint historyDir="/home/Desktop/Clover/historypoints" overwrite="true">
<fileset dir="src/server"/>

Why this error come? in most cases, most people told about instrument or clover db file problem
 But my case report is generated, but they could not run <clover-historypoint> target. Build failed because of this target execution fail. So I can't generate historical report, only generate current report and build failed. How do I over come this problem?

2 answers

1 accepted

1 votes

Hello Dulsara,

As you can see, the clover-historypoint task is looking for a database file in:


and in clover-report you use:


You have to use:

&lt;clover-historypoint initstring="/home/Desktop/Clover/.clover/clover4_1_1.db" historyDir="/home/Desktop/Clover/historypoints" overwrite="true"&gt;

Alternatively, you can call clover-setup task before, as described here:


Thank you very much, It works fine

2 votes


 I think it's connected with the fact you're not passing the initstring parameter to clover-historypoint.  According to the message it looks for the DB in a default location. 

Just try to modify it in somewhat in this way:

&lt;clover-historypoint historyDir="/home/Desktop/Clover/historypoints" overwrite="true"  initstring="/home/Desktop/Clover/.clover/clover4_1_1.db"&gt;
&lt;fileset dir="src/server"/&gt;
Thank you very much, it works properly.

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Thursday in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

277 views 0 12
Read article

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
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot