diff sonar-ant.xml @ 35:7df554d8c4c1

CM-125: correct error in bundlor property mapping
author smith@nwoca.org
date Sat, 07 May 2011 11:09:46 -0400
parents 2704c479a05f
children f1144aa0c01b
line wrap: on
line diff
--- a/sonar-ant.xml	Tue Apr 26 11:29:03 2011 -0400
+++ b/sonar-ant.xml	Sat May 07 11:09:46 2011 -0400
@@ -16,10 +16,17 @@
     <ssdtant:add-dependency target="init" depends="-sonar-init"/>
 
     <target name="-sonar-init">
-        <echo message="Sonar: Active"/>
+        <if>
+            <isset property="sonar.enabled"/>
+            <then>
+                <echo message="Sonar: Active"/>
+            </then>
+        </if>
         <if>
             <contains string="${ant.project.invoked-targets}" substring="sonar"/>
-            <then> <property name="ignore.failing.tests" value="true"/> </then>
+            <then>
+                <property name="ignore.failing.tests" value="true"/>
+            </then>
         </if>
         <property name="sonar.active" value="true"/>
     </target>