From f77901ca8919358e76fd832ef176f55e4f9fafb2 Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Fri, 17 Jan 2014 13:13:38 +0000
Subject: [PATCH] Omit generated messages and config sources from Cobertura coverage reports.

---
 opendj-config/pom.xml |   14 ++++++++++++++
 pom.xml               |   11 +++++++++++
 2 files changed, 25 insertions(+), 0 deletions(-)

diff --git a/opendj-config/pom.xml b/opendj-config/pom.xml
index 9971684..d37ffdd 100644
--- a/opendj-config/pom.xml
+++ b/opendj-config/pom.xml
@@ -110,6 +110,20 @@
         <groupId>org.apache.maven.plugins</groupId>
         <artifactId>maven-surefire-plugin</artifactId>
       </plugin>
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>cobertura-maven-plugin</artifactId>
+        <configuration>
+          <instrumentation>
+            <excludes>
+              <exclude>**/*Messages.class</exclude>
+              <exclude>**/config/client/*CfgClient*.class</exclude>
+              <exclude>**/config/server/*Cfg*.class</exclude>
+              <exclude>**/config/meta/*.class</exclude>
+            </excludes>
+          </instrumentation>
+        </configuration>
+      </plugin>
     </plugins>
   </build>
   <reporting>
diff --git a/pom.xml b/pom.xml
index 9cf2686..06f90fa 100644
--- a/pom.xml
+++ b/pom.xml
@@ -308,6 +308,17 @@
           <version>${i18nFrameworkVersion}</version>
         </plugin>
         <plugin>
+          <groupId>org.codehaus.mojo</groupId>
+          <artifactId>cobertura-maven-plugin</artifactId>
+          <configuration>
+            <instrumentation>
+              <excludes>
+                <exclude>**/*Messages.class</exclude>
+              </excludes>
+            </instrumentation>
+          </configuration>
+        </plugin>
+        <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-release-plugin</artifactId>
           <version>2.2.2</version>

--
Gitblit v1.10.0