Override plugin's clover-setup ant task to exclude Exception classes from clover report.
This commit is contained in:
parent
f6e21f41aa
commit
093a1a4759
29
maven.xml
29
maven.xml
|
@ -1,8 +1,33 @@
|
||||||
<project
|
<project
|
||||||
xmlns:j="jelly:core"
|
xmlns:j="jelly:core"
|
||||||
|
xmlns:ant="jelly:ant"
|
||||||
xmlns:maven="jelly:maven"
|
xmlns:maven="jelly:maven"
|
||||||
>
|
>
|
||||||
|
|
||||||
|
<!--
|
||||||
|
|
|
||||||
|
| Override the default clover-setup task from the clover plugin
|
||||||
|
|
|
||||||
|
-->
|
||||||
|
<postGoal name="clover:on">
|
||||||
|
|
||||||
|
<ant:clover-setup
|
||||||
|
initstring="${basedir}/target/clover/database/clover_coverage.db"
|
||||||
|
flushpolicy="interval"
|
||||||
|
flushinterval="500">
|
||||||
|
|
||||||
|
<ant:fileset dir="${maven.src.dir}">
|
||||||
|
<exclude name="**/*Exception.java"/>
|
||||||
|
</ant:fileset>
|
||||||
|
|
||||||
|
<!-- <statementContext id="nolog" regexp="^if \(logger.*\).*}"/>
|
||||||
|
<statementContext id="nojbosslog" regexp="^if \(super.logger.*\).*}"/>
|
||||||
|
-->
|
||||||
|
|
||||||
|
</ant:clover-setup>
|
||||||
|
</postGoal>
|
||||||
|
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
|
|
|
|
||||||
| Create the additional jars...
|
| Create the additional jars...
|
||||||
|
@ -14,7 +39,7 @@
|
||||||
<!--
|
<!--
|
||||||
| The Acegi Security Tag Library JAR
|
| The Acegi Security Tag Library JAR
|
||||||
-->
|
-->
|
||||||
<jar jarfile="${maven.build.dir}/acegi-taglib-${pom.currentVersion}.jar">
|
<ant:jar jarfile="${maven.build.dir}/acegi-taglib-${pom.currentVersion}.jar">
|
||||||
<fileset dir="${maven.build.dest}">
|
<fileset dir="${maven.build.dest}">
|
||||||
<include name="net/sf/acegisecurity/taglibs/**"/>
|
<include name="net/sf/acegisecurity/taglibs/**"/>
|
||||||
<exclude name="**/*.tld"/>
|
<exclude name="**/*.tld"/>
|
||||||
|
@ -25,7 +50,7 @@
|
||||||
<attribute name="Acegi-Security-System-version" value="${pom.currentVersion}"/>
|
<attribute name="Acegi-Security-System-version" value="${pom.currentVersion}"/>
|
||||||
<attribute name="Sealed" value="true"/>
|
<attribute name="Sealed" value="true"/>
|
||||||
</manifest>
|
</manifest>
|
||||||
</jar>
|
</ant:jar>
|
||||||
|
|
||||||
<!--
|
<!--
|
||||||
| The class that has catalina.jar dependencies and thus belongs in
|
| The class that has catalina.jar dependencies and thus belongs in
|
||||||
|
|
Loading…
Reference in New Issue