Setting clover.initstring doesn't seem to be working for me

I am attempting to deploy an instrumented war file (and clover.db file) to a webserver, record coverage data from manual testing, and then copy the clover database back to the machine that generated it to generate a report. I have gotten this to work when I specify the clover database location at *build* time using the maven option:

-Dmaven.clover.cloverDatabase=/data/stingray-coverage/clover.db

The problem is that I would like to do this at runtime to avoid having to have the build server and the webserver use exactly the same directory. I have tried using the clover initstring property:

-Dclover.initstring=/data/stingray-coverage/clover.db

as an option for Tomcat, but I still see the following in the logs and no coverage data is recorded:

ERROR: CLOVER: Unable to load the coverage database at "/data/hudson/home/jobs/thomas-test-job2/workspace/projects/redfin.commerceWeb/target/clover/clover.db"

Any insight you could give into what is going wrong would be appreciated.

1 answer

1 accepted

Ah, nevermind. I wasn't setting the variable properly with tomcat (figures I find that out just after I post this).

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Fadoua M. Boualem
Published Monday in Trello

Using Trello to manage events

As a Jira power user, I was at first doubtful that Trello could benefit my workflow. Jira already uses boards (ones you can customize!), so why would I even need to use Trello?! In this post you will...

465 views 7 8
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