diff ivy-ant.xml @ 26:639bec4999f2

TL-34: Scripts for sonar integration
author smith@nwoca.org
date Fri, 08 Apr 2011 17:37:19 -0400
parents 2632897c8a2b
children 561ece0a8225
line wrap: on
line diff
--- a/ivy-ant.xml	Thu Apr 07 19:14:15 2011 -0400
+++ b/ivy-ant.xml	Fri Apr 08 17:37:19 2011 -0400
@@ -147,6 +147,23 @@
                 <property name="run.test.classpath" value="${old.run.test.classpath}${path.separator}${ivy.run.test.classpath}"/>
             </else>
         </if>
+        <if>
+          <isset property="coverage.run.with.cobertura"/>
+             <then>
+                <property name="precoverage.run.test.classpath" value="${run.test.classpath}"/>
+                <var name="run.test.classpath" unset="true"/>
+                <property name="run.test.classpath" value="${cobertura.instrumented.classes}${path.separator}${precoverage.run.test.classpath}${path.separator}${cobertura.classpath.path}"/>
+            </then>
+       </if>
+        <if>
+          <isset property="coverage.run.with.clover"/>
+             <then>
+                <property name="preclover.run.test.classpath" value="${run.test.classpath}"/>
+                <var name="run.test.classpath" unset="true"/>
+                <property name="run.test.classpath" value="${preclover.run.test.classpath}${path.separator}${clover.jar.file}"/>
+            </then>
+       </if>
+
         <echo level="debug" message="$${run.test.classpath} : ${run.test.classpath}"/>
 
         <ivy:cachepath pathid="ivy.debug.classpath.id" conf="compile,runtime" type="jar"/>