comparison 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
comparison
equal deleted inserted replaced
25:e6fd2f1eba13 26:639bec4999f2
12 src="${ssdt.sonar.jar.src}"/> 12 src="${ssdt.sonar.jar.src}"/>
13 <ssdt:import-ant file="clover-ant.xml"/> 13 <ssdt:import-ant file="clover-ant.xml"/>
14 14
15 <taskdef uri="antlib:org.sonar.ant" resource="org/sonar/ant/antlib.xml"/> 15 <taskdef uri="antlib:org.sonar.ant" resource="org/sonar/ant/antlib.xml"/>
16 16
17 <property name="sonar.host.url" value="http://localhost:9000" /> 17 <property name="sonar.host.url" value="http://ssdt-web-10.nwoca.org:9000" />
18 <property name="sonar.language" value="grvy"/> 18 <property name="sonar.language" value="grvy"/>
19 19
20 <target name="sonar" depends="project.init,ivy-info,coverage.xml"> 20 <target name="-check-sonar">
21 <property file="${ssdt.devel.kit}/sonar.properties"/>
22 </target>
23
24 <target name="sonar" depends="project.init,-check-sonar,ivy-info,coverage.xml" if="sonar.enabled">
21 <property name="clover.dest" value="${build.dir}/clover"/> 25 <property name="clover.dest" value="${build.dir}/clover"/>
22 <property name="coverage.report.path" location="${clover.dest}/clover.xml"/> 26 <property name="coverage.report.path" location="${clover.dest}/clover.xml"/>
23 <sonar:sonar 27 <sonar:sonar
24 workDir="${build.dir}/sonar" 28 workDir="${build.dir}/sonar"
25 key="${ivy.project.organisation}:${ivy.project.module}" 29 key="${ivy.project.organisation}:${ivy.project.module}"
26 version="${project.version}" > 30 version="${project.version}" >
27 <sources> 31 <sources>
28 <path location="${src.dir}" /> 32 <path location="${src.dir}" />
29 </sources> 33 </sources>
34 <property key="sonar.core.codeCoveragePlugin" value="clover"/>
30 <property key="sonar.projectName" value="${ivy.project.module}"/> 35 <property key="sonar.projectName" value="${ivy.project.module}"/>
31 <property key="sonar.language" value="${sonar.language}" /> 36 <property key="sonar.language" value="${sonar.language}" />
32 <property key="sonar.dynamicAnalysis" value="reuseReports" /> 37 <property key="sonar.dynamicAnalysis" value="reuseReports" />
33 <property key="sonar.surefire.reportsPath" value="${build.test.results.dir}"/> 38 <property key="sonar.surefire.reportsPath" value="${build.test.results.dir}"/>
34 <property key="sonar.clover.reportPath" value="${clover.dest}/clover.xml"/> 39 <property key="sonar.clover.reportPath" value="${clover.dest}/clover.xml"/>