diff jacoco-ant.xml @ 43:c1619b87800e

CM-127: Improve handling of differnt styles of NB projects jvmargs
author smith@nwoca.org
date Thu, 09 Jun 2011 08:48:36 -0400
parents 139a3611ae99
children 9dcb429eea14
line wrap: on
line diff
--- a/jacoco-ant.xml	Tue Jun 07 21:44:14 2011 -0400
+++ b/jacoco-ant.xml	Thu Jun 09 08:48:36 2011 -0400
@@ -37,10 +37,18 @@
                   resource="org/jacoco/ant/antlib.xml"/>
         <jacoco:agent property="jacoco.coverage.agent"
                       destfile="${jacoco.data.file}"/>
-        <var name="runmain.jvmargs.jacoco" value="${runmain.jvmargs}"/>
-        <var name="runmain.jvmargs" value="${jacoco.coverage.agent} ${runmain.jvmargs.jacoco}"/>  
-        <echoproperties prefix="jacoco"/>
-        <echoproperties prefix="runmain"/>
+        <if><isset property="runmain.jvmargs"/>
+            <then>
+                <var name="runmain.jvmargs.jacoco" value="${runmain.jvmargs}"/>
+                <var name="runmain.jvmargs" value="${jacoco.coverage.agent} ${runmain.jvmargs.jacoco}"/>  
+            </then>
+        </if>
+        <if><isset property="run.jvmargs"/>
+            <then>
+                <var name="run.jvmargs.jacoco" value="${run.jvmargs}"/>
+                <var name="run.jvmargs" value="${jacoco.coverage.agent} ${run.jvmargs.jacoco}"/>  
+            </then>
+        </if>
     </target>
 
     <target name="coverage.xml"