[seam-commits] Seam SVN: r12680 - in modules/international/trunk: impl and 1 other directory.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Tue May 4 08:19:13 EDT 2010


Author: mgencur at redhat.com
Date: 2010-05-04 08:19:12 -0400 (Tue, 04 May 2010)
New Revision: 12680

Modified:
   modules/international/trunk/impl/pom.xml
   modules/international/trunk/pom.xml
Log:
JBQA-3325, code coverage profile added

Modified: modules/international/trunk/impl/pom.xml
===================================================================
--- modules/international/trunk/impl/pom.xml	2010-05-04 05:38:18 UTC (rev 12679)
+++ modules/international/trunk/impl/pom.xml	2010-05-04 12:19:12 UTC (rev 12680)
@@ -39,5 +39,23 @@
          <scope>compile</scope>
       </dependency>
    </dependencies>
+   
+   <profiles>
+		<profile>
+			<id>code-coverage</id>
+			<build>
+			  <plugins>     
+					<plugin>      
+					  <groupId>org.codehaus.mojo</groupId>
+					  <artifactId>emma-maven-plugin</artifactId>
+					</plugin>
+					<plugin>
+					  <groupId>org.apache.maven.plugins</groupId>
+					  <artifactId>maven-surefire-plugin</artifactId>
+					</plugin>
+				 </plugins>
+			</build>
+		</profile>
+	</profiles>
 
 </project>

Modified: modules/international/trunk/pom.xml
===================================================================
--- modules/international/trunk/pom.xml	2010-05-04 05:38:18 UTC (rev 12679)
+++ modules/international/trunk/pom.xml	2010-05-04 12:19:12 UTC (rev 12680)
@@ -32,6 +32,8 @@
     <weld.api.version>1.0-SP1</weld.api.version>
     <joda-time.version>1.6</joda-time.version>
     <pretty-time.version>1.0.6</pretty-time.version>
+    <emma.maven.plugin.version>1.0-alpha-2</emma.maven.plugin.version>
+    <emma4it.maven.plugin.version>1.3</emma4it.maven.plugin.version>
   </properties>
 
   <dependencyManagement>
@@ -142,4 +144,71 @@
       </plugin>
     </plugins>
   </build>
+  
+  <profiles>
+	  <profile>
+            <id>code-coverage</id>
+            <build>
+					  <plugins>     
+							<plugin>      
+							  <groupId>org.codehaus.mojo</groupId>
+							  <artifactId>emma-maven-plugin</artifactId>
+							  <version>${emma.maven.plugin.version}</version>
+							  <inherited>true</inherited>          
+							  <executions>
+								 <execution>
+									<id>instrumentation</id>
+									<phase>process-classes</phase>               
+									<goals>
+									  <goal>instrument</goal>
+									</goals>
+									<configuration>
+										<verbose>true</verbose>
+									</configuration>
+								 </execution>
+								 <execution>
+								   <id>cleaning</id>
+									<phase>clean</phase>               
+									<goals>
+									  <goal>clean</goal>
+									</goals>
+								 </execution>
+							  </executions>
+							</plugin>
+							
+							<plugin>
+							  <groupId>org.apache.maven.plugins</groupId>
+							  <artifactId>maven-surefire-plugin</artifactId>
+							  <inherited>true</inherited>
+							  <configuration>
+								 <forkMode>once</forkMode>
+								 <classesDirectory>${project.build.directory}/generated-classes/emma/classes</classesDirectory>    
+							  </configuration>        
+							</plugin>
+						 
+							<plugin>
+								  <groupId>org.sonatype.maven.plugin</groupId>
+								  <artifactId>emma4it-maven-plugin</artifactId>
+								  <version>${emma4it.maven.plugin.version}</version>
+								  <executions>
+									 <execution>
+										  <id>report</id>
+										  <phase>test</phase>
+										  <goals>
+											 <goal>report</goal>
+										  </goals>
+										  <configuration>
+											 <sourceSets>
+												<sourceSet>
+												  <directory>${project.build.sourceDirectory}</directory>
+												</sourceSet>
+											 </sourceSets>
+										  </configuration>
+										</execution>
+								  </executions>
+							</plugin>
+						 </plugins>
+				</build>
+		</profile>
+    </profiles>  
 </project>



More information about the seam-commits mailing list