Mercurial > public > develkit
comparison sonar-ant.xml @ 25:e6fd2f1eba13
add sonar with clover coverage
author | smith@nwoca.org |
---|---|
date | Thu, 07 Apr 2011 19:14:15 -0400 |
parents | a63acb4e09f8 |
children | 639bec4999f2 |
comparison
equal
deleted
inserted
replaced
24:a63acb4e09f8 | 25:e6fd2f1eba13 |
---|---|
4 xmlns:sonar="antlib:org.sonar.ant" | 4 xmlns:sonar="antlib:org.sonar.ant" |
5 xmlns:ssdt="http://www.ssdt-ohio.org/ant/common"> | 5 xmlns:ssdt="http://www.ssdt-ohio.org/ant/common"> |
6 | 6 |
7 <description>Sonar Ant tasks</description> | 7 <description>Sonar Ant tasks</description> |
8 | 8 |
9 <property name="ssdt.sonar.jar.src" value="http://ivy.ssdt.nwoca.org/repository/sonar/sonar-ant-task.jar"/> | 9 <property name="ssdt.sonar.jar.src" |
10 | 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 | 14 |
14 <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"/> |
15 | 16 |
16 <property name="sonar.host.url" value="http://localhost:9000" /> | 17 <property name="sonar.host.url" value="http://localhost:9000" /> |
17 <property name="sonar.language" value="grvy"/> | 18 <property name="sonar.language" value="grvy"/> |
18 | 19 |
19 | 20 <target name="sonar" depends="project.init,ivy-info,coverage.xml"> |
20 <target name="sonar" depends="project.init,ivy-info"> | 21 <property name="clover.dest" value="${build.dir}/clover"/> |
22 <property name="coverage.report.path" location="${clover.dest}/clover.xml"/> | |
21 <sonar:sonar | 23 <sonar:sonar |
22 workDir="${build.dir}/sonar" | 24 workDir="${build.dir}/sonar" |
23 key="${ivy.project.organisation}:${ivy.project.module}" | 25 key="${ivy.project.organisation}:${ivy.project.module}" |
24 version="${project.version}" > | 26 version="${project.version}" > |
25 <sources> | 27 <sources> |
27 </sources> | 29 </sources> |
28 <property key="sonar.projectName" value="${ivy.project.module}"/> | 30 <property key="sonar.projectName" value="${ivy.project.module}"/> |
29 <property key="sonar.language" value="${sonar.language}" /> | 31 <property key="sonar.language" value="${sonar.language}" /> |
30 <property key="sonar.dynamicAnalysis" value="reuseReports" /> | 32 <property key="sonar.dynamicAnalysis" value="reuseReports" /> |
31 <property key="sonar.surefire.reportsPath" value="${build.test.results.dir}"/> | 33 <property key="sonar.surefire.reportsPath" value="${build.test.results.dir}"/> |
34 <property key="sonar.clover.reportPath" value="${clover.dest}/clover.xml"/> | |
32 <tests> | 35 <tests> |
33 <path location="${test.dir}" /> | 36 <path location="${test.dir}" /> |
34 </tests> | 37 </tests> |
35 <binaries> | 38 <binaries> |
36 <path location="${build.dir}/classes" /> | 39 <path location="${build.dir}/classes" /> |