|
From: Lukas T. <lth...@ap...> - 2006-06-02 17:37:12
|
+1
However, not having used cobertura for a long time, I had forgotten that
you need to set maven.compile.debug=on when running the plugin,
otherwise you don't get any coverage data. I had maven.compile.debug=off
in one of my properties files and it took me a while to figure out what
was wrong.
AFAICS, this is nowhere mentioned in the docs on the web page. However,
instead of letting the user figure this out himself, I'd suggest we
force debug=on when executing the plugin, since otherwise, the report is
completely useless anyway. Just put something like this in the
cobertura:report goal when calling cobertura:on:
<!-- Make sure maven.compile.debug = on -->
<j:set var="compileDebugOld" value="${maven.compile.debug}"/>
<j:set var="maven.compile.debug" scope="parent" value="on"/>
<attainGoal name="cobertura:on"/>
<j:set var="maven.compile.debug" scope="parent"
value="${compileDebugOld}"/>
Actually, I just noticed that also findbugs needs debug=on for getting
the line number information. You should do the same as above when
calling java:compile in maven-findbugs-plugin:report.
Cheers,
-Lukas
Jeff Jensen wrote:
> Please vote to release Cobertura plugin from snapshot. I will do so on Sunday
> if no objections.
>
>
>
> _______________________________________________
> Maven-plugins-developer mailing list
> Mav...@li...
> https://lists.sourceforge.net/lists/listinfo/maven-plugins-developer
>
|