comparison sonar-ant.xml @ 27:ea29594bb799

TL-34: Switch to Jacoco for coverage analysis.
author smith@nwoca.org
date Sun, 10 Apr 2011 21:42:19 -0400
parents 639bec4999f2
children ad0a75e20f7b
comparison
equal deleted inserted replaced
26:639bec4999f2 27:ea29594bb799
8 8
9 <property name="ssdt.sonar.jar.src" 9 <property name="ssdt.sonar.jar.src"
10 value="http://ivy.ssdt.nwoca.org/repository/sonar/sonar-ant-task.jar"/> 10 value="http://ivy.ssdt.nwoca.org/repository/sonar/sonar-ant-task.jar"/>
11 <ssdt:fetch dest="${user.home.ant.lib}/sonar.jar" 11 <ssdt:fetch dest="${user.home.ant.lib}/sonar.jar"
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="jacoco-ant.xml"/>
14
15 <taskdef uri="antlib:org.sonar.ant" resource="org/sonar/ant/antlib.xml"/>
16
17 <property name="sonar.host.url" value="http://ssdt-web-10.nwoca.org:9000" />
18 <property name="sonar.language" value="grvy"/>
19 14
20 <target name="-check-sonar"> 15 <target name="-check-sonar">
21 <property file="${ssdt.devel.kit}/sonar.properties"/> 16 <property file="${ssdt.devel.kit}/sonar.properties"/>
17 <property name="sonar.host.url" value="http://ssdt-web-10.nwoca.org:9000" />
18 <property name="sonar.language" value="grvy"/>
19 <taskdef uri="antlib:org.sonar.ant" resource="org/sonar/ant/antlib.xml"/>
22 </target> 20 </target>
23 21
24 <target name="sonar" depends="project.init,-check-sonar,ivy-info,coverage.xml" if="sonar.enabled"> 22 <target name="sonar" depends="project.init,-check-sonar,ivy-info,coverage.xml" if="sonar.enabled">
25 <property name="clover.dest" value="${build.dir}/clover"/> 23 <sonar:sonar
26 <property name="coverage.report.path" location="${clover.dest}/clover.xml"/>
27 <sonar:sonar
28 workDir="${build.dir}/sonar" 24 workDir="${build.dir}/sonar"
29 key="${ivy.project.organisation}:${ivy.project.module}" 25 key="${ivy.project.organisation}:${ivy.project.module}"
30 version="${project.version}" > 26 version="${project.version}" >
31 <sources> 27 <sources>
32 <path location="${src.dir}" /> 28 <path location="${src.dir}" />
33 </sources> 29 </sources>
34 <property key="sonar.core.codeCoveragePlugin" value="clover"/> 30 <property key="sonar.core.codeCoveragePlugin" value="jacoco"/>
35 <property key="sonar.projectName" value="${ivy.project.module}"/> 31 <property key="sonar.projectName" value="${ivy.project.module}"/>
36 <property key="sonar.language" value="${sonar.language}" /> 32 <property key="sonar.language" value="${sonar.language}" />
37 <property key="sonar.dynamicAnalysis" value="reuseReports" /> 33 <property key="sonar.dynamicAnalysis" value="reuseReports" />
38 <property key="sonar.surefire.reportsPath" value="${build.test.results.dir}"/> 34 <property key="sonar.surefire.reportsPath" value="${build.test.results.dir}"/>
39 <property key="sonar.clover.reportPath" value="${clover.dest}/clover.xml"/> 35 <property key="sonar.jacoco.reportPath" value="${jacoco.data.file}"/>
40 <tests> 36 <tests>
41 <path location="${test.dir}" /> 37 <path location="${test.dir}" />
42 </tests> 38 </tests>
43 <binaries> 39 <binaries>
44 <path location="${build.dir}/classes" /> 40 <path location="${build.dir}/classes" />