Author: dgolovin
Date: 2010-07-23 15:58:25 -0400 (Fri, 23 Jul 2010)
New Revision: 23712
Modified:
trunk/build/reports/emma-coverage/pom.xml
Log:
skip printing out emma coevrage report if tests are skipped
Modified: trunk/build/reports/emma-coverage/pom.xml
===================================================================
--- trunk/build/reports/emma-coverage/pom.xml 2010-07-23 19:53:16 UTC (rev 23711)
+++ trunk/build/reports/emma-coverage/pom.xml 2010-07-23 19:58:25 UTC (rev 23712)
@@ -42,19 +42,26 @@
<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>
+ <if>
+ <not>
+ <isset property="maven.test.skip"/>
+ </not>
+ <then>
+ <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>
+ </then>
+ </if>
</tasks>
</configuration>
</execution>
Show replies by date