Product: Clover
Environment
| Operating System | |
|---|---|
| Affect Version/s | |
| JVM | |
| Database | |
| Application Server |
Error Message
Symptom
Log file showed [clover-setup] Clover is enabled with initstring 'c:\Finntech\head\cv\mycoverage.db' . However, database is not created.
Diagnostics/Test
Check with customer whether he called "with.clover" target before "code" for the same invocation of Ant .
- "with.clover" and "code" are targets in build.xml
<target name="code" >
<mkdir dir="$
"/>
<javac srcdir="$
</target>
<target name="with.clover">
<clover-setup initString="mycoverage.db" >
</clover-setup>
Root Cause
The <clover-setup> task must be called before compile sources. Customer not calling the "with.clover" target before "code" for the same invocation of Ant and the effect of clover-setup is being lost. i.e. javac does not know to use the Clover compiler to instrument the source files before compiling them.
Solution
Request customer to call "with.clover" target before "code" for the same invocation of Ant .
