Product: Clover
Environment
| Operating System | |
|---|---|
| Affect Version/s | |
| JVM | |
| Database | |
| Application Server |
Error Message
Symptom
Running the following ANT command, example only:
ant clean with.clover compile
Builds the project successfully where classes are compiled as expected. However, there are no instrumented classes included.
Diagnostics/Test
Root Cause
This is due to a compiler attribute is defined within the <javac/> task. For example:
<javac ....... compiler="<the_compiler>" ..... </javac>
Where it is not recommended to do so as outlined in the following documentation:
- http://confluence.atlassian.com/display/CLOVER/clover-setup (Parameters section)
Solution
Removing the compiler attribute from the <javac/> task and define the compiler, clovercompile within the <clover-setup> task fixed the problem.
