[jbosstools-commits] JBoss Tools SVN: r23367 - in trunk/build: reports and 1 other directories.

jbosstools-commits at lists.jboss.org jbosstools-commits at lists.jboss.org
Fri Jul 9 19:41:43 EDT 2010


Author: dgolovin
Date: 2010-07-09 19:41:43 -0400 (Fri, 09 Jul 2010)
New Revision: 23367

Added:
   trunk/build/reports/
   trunk/build/reports/emma-coverage/
   trunk/build/reports/emma-coverage/pom.xml
Log:
aggregated emma coverage report


Added: trunk/build/reports/emma-coverage/pom.xml
===================================================================
--- trunk/build/reports/emma-coverage/pom.xml	                        (rev 0)
+++ trunk/build/reports/emma-coverage/pom.xml	2010-07-09 23:41:43 UTC (rev 23367)
@@ -0,0 +1,67 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+	<modelVersion>4.0.0</modelVersion>
+	<groupId>org.jboss.tools.build.reports</groupId>
+	<artifactId>emma-coverage</artifactId>
+	<version>0.0.1-SNAPSHOT</version>
+	<packaging>pom</packaging>
+
+	<build>
+	<plugins>
+		<plugin>
+			<groupId>org.apache.maven.plugins</groupId>
+			<artifactId>maven-antrun-plugin</artifactId>
+			<version>1.3</version>
+			<dependencies>
+				<dependency>
+					<groupId>emma</groupId>
+					<artifactId>emma_ant</artifactId>
+					<version>2.0.5312</version>
+				</dependency>
+				<dependency>
+					<groupId>emma</groupId>
+					<artifactId>emma</artifactId>
+					<version>2.0.5312</version>
+				</dependency>
+				<dependency>
+					<groupId>ant-contrib</groupId>
+					<artifactId>ant-contrib</artifactId>
+					<version>1.0b3</version>
+				</dependency>
+			</dependencies>
+			<executions>
+				<execution>
+					<id>emma-report</id>
+					<phase>post-integration-test</phase>
+					<goals>
+						<goal>run</goal>
+					</goals>
+					<configuration>
+						<tasks>
+							<taskdef resource="emma_ant.properties" />
+							<taskdef resource="net/sf/antcontrib/antcontrib.properties" />
+
+							<echo>Process emma report...</echo>
+							<emma enabled="true">
+								<report>
+									<infileset dir="${basedir}/../../.." includes="*/tests/*/target/emma/*.es" />
+									<txt outfile="${project.build.directory}/coverage.txt" />
+									<xml outfile="${project.build.directory}/coverage.xml" />
+									<html outfile="${project.build.directory}/coverage.html" />
+								</report>
+							</emma>
+							<loadfile property="emma.txt"
+								srcFile="${project.build.directory}/coverage.txt"
+								failonerror="false" />
+							<echo>${emma.txt}</echo>
+						</tasks>
+					</configuration>
+				</execution>
+			</executions>
+		</plugin>
+	</plugins>
+	</build>
+	
+</project>
+



More information about the jbosstools-commits mailing list