Author: swagle
Date: Tue Apr 30 18:02:10 2013
New Revision: 1477743

URL: http://svn.apache.org/r1477743
Log:
AMBARI-2031. Add clover code coverage profile. (Giridharan Kesavan via swagle)

Modified:
    incubator/ambari/trunk/CHANGES.txt
    incubator/ambari/trunk/pom.xml

Modified: incubator/ambari/trunk/CHANGES.txt
URL: 
http://svn.apache.org/viewvc/incubator/ambari/trunk/CHANGES.txt?rev=1477743&r1=1477742&r2=1477743&view=diff
==============================================================================
--- incubator/ambari/trunk/CHANGES.txt (original)
+++ incubator/ambari/trunk/CHANGES.txt Tue Apr 30 18:02:10 2013
@@ -12,6 +12,9 @@ Trunk (unreleased changes):
 
  NEW FEATURES
 
+ AMBARI-2031. AMBARI-2031. Add clover code coverage profile. 
+ (Giridharan Kesavan via swagle)
+
  AMBARI-2050. Create smoke test for RESOURCEMANAGER component. (swagle)
 
  AMBARI-2049. Create ambari agent scripts for MAPREDUCEv2_CLIENT. (swagle)

Modified: incubator/ambari/trunk/pom.xml
URL: 
http://svn.apache.org/viewvc/incubator/ambari/trunk/pom.xml?rev=1477743&r1=1477742&r2=1477743&view=diff
==============================================================================
--- incubator/ambari/trunk/pom.xml (original)
+++ incubator/ambari/trunk/pom.xml Tue Apr 30 18:02:10 2013
@@ -25,6 +25,7 @@
   <description>Ambari</description>
   <properties>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+    <clover.license>${user.home}/clover.license</clover.license>
   </properties>
   <pluginRepositories>
     <pluginRepository>
@@ -34,6 +35,12 @@
       <layout>default</layout>
     </pluginRepository>
     <pluginRepository>
+       <id>maven2-repository.atlassian</id>
+       <name>Atlassian Maven Repository</name>
+       <url>https://maven.atlassian.com/repository/public</url>
+       <layout>default</layout>
+     </pluginRepository>
+    <pluginRepository>
       <id>maven2-glassfish-repository.dev.java.net</id>
       <name>Java.net Repository for Maven</name>
       <url>http://download.java.net/maven/glassfish/</url>
@@ -149,4 +156,54 @@
       </plugin>
     </plugins>
   </build>
+  <profiles>
+    <profile>
+      <id>clover</id>
+      <activation>
+        <activeByDefault>false</activeByDefault>
+        <property>
+          <name>clover</name>
+        </property>
+      </activation>
+      <properties>
+        
<maven.clover.licenseLocation>${clover.license}</maven.clover.licenseLocation>
+        <clover.version>3.1.11</clover.version>
+      </properties>
+      <build>
+        <plugins>
+          <plugin>
+            <groupId>com.atlassian.maven.plugins</groupId>
+            <artifactId>maven-clover2-plugin</artifactId>
+            <version>${clover.version}</version>
+            <configuration>
+              <includesAllSourceRoots>true</includesAllSourceRoots>
+              <includesTestSourceRoots>true</includesTestSourceRoots>
+              <targetPercentage>50%</targetPercentage>
+              <generateHtml>true</generateHtml>
+              <generateXml>true</generateXml>
+              <excludes>
+                <exclude>**/generated/**</exclude>
+              </excludes>
+            </configuration>
+            <executions>
+              <execution>
+                <id>clover-setup</id>
+                <phase>process-sources</phase>
+                <goals>
+                  <goal>setup</goal>
+                </goals>
+              </execution>
+              <execution>
+                <id>clover</id>
+                <phase>test</phase>
+                <goals>
+                  <goal>clover</goal>
+                </goals>
+              </execution>
+            </executions>
+          </plugin>
+        </plugins>
+      </build>
+    </profile>
+  </profiles>
 </project>


Reply via email to