CLV-4866 - Using external javac compiler causes classes not instrumented with Clover

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:

Solution

Removing the compiler attribute from the <javac/> task and define the compiler, clovercompile within the <clover-setup> task fixed the problem.

Labels

clover clover Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.