diff sonar-ant.xml @ 26:639bec4999f2

TL-34: Scripts for sonar integration
author smith@nwoca.org
date Fri, 08 Apr 2011 17:37:19 -0400
parents e6fd2f1eba13
children ea29594bb799
line wrap: on
line diff
--- a/sonar-ant.xml	Thu Apr 07 19:14:15 2011 -0400
+++ b/sonar-ant.xml	Fri Apr 08 17:37:19 2011 -0400
@@ -14,10 +14,14 @@
 
     <taskdef uri="antlib:org.sonar.ant" resource="org/sonar/ant/antlib.xml"/>
 
-    <property name="sonar.host.url" value="http://localhost:9000" />
+    <property name="sonar.host.url" value="http://ssdt-web-10.nwoca.org:9000" />
     <property name="sonar.language" value="grvy"/>
 
-    <target name="sonar" depends="project.init,ivy-info,coverage.xml">
+    <target name="-check-sonar">
+        <property file="${ssdt.devel.kit}/sonar.properties"/>
+    </target>
+
+    <target name="sonar" depends="project.init,-check-sonar,ivy-info,coverage.xml" if="sonar.enabled">
         <property name="clover.dest" value="${build.dir}/clover"/>
         <property name="coverage.report.path" location="${clover.dest}/clover.xml"/>
         <sonar:sonar 
@@ -27,6 +31,7 @@
             <sources>
                 <path location="${src.dir}" />
             </sources>
+            <property key="sonar.core.codeCoveragePlugin" value="clover"/>
             <property key="sonar.projectName" value="${ivy.project.module}"/>
             <property key="sonar.language" value="${sonar.language}" />
             <property key="sonar.dynamicAnalysis" value="reuseReports" />