I have the problem that when calling clover:off the java compiler is not reset to javac. Any report I run after the clover one in 'maven site' that needs to compile still uses the clover compiler.
Am I missing something? I see the build.compiler property is reset to an emtpy string (or just removed from the env), but no <ant clover:desetup> is called (since it does not exist).
Description
I have the problem that when calling clover:off the java compiler is not reset to javac. Any report I run after the clover one in 'maven site' that needs to compile still uses the clover compiler.
Am I missing something? I see the build.compiler property is reset to an emtpy string (or just removed from the env), but no <ant clover:desetup> is called (since it does not exist).
There is however a pitfall to this:
Calling 'maven clover:on jar clover:off jar' will produce a clovered jar! That is because maven/ant sees that the classes are already compiled. You need to do a clean in between.
I use this to generate a nightly build with a website with Clover, but have a "clean" jar deployed at our server repository.
Wim Deblauwe added a comment - 31/Mar/05 09:02 AM clover:off needs to disable the clover compiler like this:
<ant:clover-setup
initstring="${maven.clover.database}"
flushpolicy="interval"
flushinterval="500"
enabled="false"/>
There is however a pitfall to this:
Calling 'maven clover:on jar clover:off jar' will produce a clovered jar! That is because maven/ant sees that the classes are already compiled. You need to do a clean in between.
I use this to generate a nightly build with a website with Clover, but have a "clean" jar deployed at our server repository.
Thanks Wim. A patch with some test cases would be just awesome but I guess I can't ask for too much Your information about clover-setup with enabled="false" has helped me a lot. Thanks.
Vincent Massol added a comment - 21/May/05 09:47 AM Thanks Wim. A patch with some test cases would be just awesome but I guess I can't ask for too much Your information about clover-setup with enabled="false" has helped me a lot. Thanks.
clover:off needs to disable the clover compiler like this:
<ant:clover-setup
initstring="${maven.clover.database}"
flushpolicy="interval"
flushinterval="500"
enabled="false"/>
There is however a pitfall to this:
Calling 'maven clover:on jar clover:off jar' will produce a clovered jar! That is because maven/ant sees that the classes are already compiled. You need to do a clean in between.
I use this to generate a nightly build with a website with Clover, but have a "clean" jar deployed at our server repository.