Author: dgolovin
Date: 2011-12-28 20:44:14 -0500 (Wed, 28 Dec 2011)
New Revision: 37575
Modified:
trunk/build/parent/pom.xml
Log:
https://issues.jboss.org/browse/JBIDE-10529 test failure in common.verification
fixed coverage report generation to be aware of that coverage could be enabled for plugins
that have no classes to test.
Modified: trunk/build/parent/pom.xml
===================================================================
--- trunk/build/parent/pom.xml 2011-12-29 01:24:23 UTC (rev 37574)
+++ trunk/build/parent/pom.xml 2011-12-29 01:44:14 UTC (rev 37575)
@@ -629,10 +629,16 @@
<html outfile="${project.build.directory}/emma/coverage.html"
/>
</report>
</emma>
- <loadfile property="emma.txt"
- srcFile="${project.build.directory}/emma/coverage.txt"
- failonerror="false" />
- <echo>${emma.txt}</echo>
+ <if>
+ <available file="${project.build.directory}/emma/coverage.txt"
type="file" />
+ <then>
+ <loadfile property="emma.txt"
srcFile="${project.build.directory}/emma/coverage.txt"
failonerror="false" />
+ <echo>${emma.txt}</echo>
+ </then>
+ <else>
+ <echo>No coverage report found </echo>
+ </else>
+ </if>
</then>
</if>
</tasks>