comparison sonar-ant.xml @ 24:a63acb4e09f8

inital sonar-ant script to publish metrics to Sonar server
author smith@nwoca.org
date Tue, 05 Apr 2011 16:28:00 -0400
parents
children e6fd2f1eba13
comparison
equal deleted inserted replaced
23:50476062adbe 24:a63acb4e09f8
1 <?xml version="1.0" encoding="UTF-8"?>
2 <project name="sonar-project-tasks" default="" basedir="."
3 xmlns:ivy="antlib:fr.jayasoft.ivy.ant"
4 xmlns:sonar="antlib:org.sonar.ant"
5 xmlns:ssdt="http://www.ssdt-ohio.org/ant/common">
6
7 <description>Sonar Ant tasks</description>
8
9 <property name="ssdt.sonar.jar.src" value="http://ivy.ssdt.nwoca.org/repository/sonar/sonar-ant-task.jar"/>
10
11 <ssdt:fetch dest="${user.home.ant.lib}/sonar.jar"
12 src="${ssdt.sonar.jar.src}"/>
13
14 <taskdef uri="antlib:org.sonar.ant" resource="org/sonar/ant/antlib.xml"/>
15
16 <property name="sonar.host.url" value="http://localhost:9000" />
17 <property name="sonar.language" value="grvy"/>
18
19
20 <target name="sonar" depends="project.init,ivy-info">
21 <sonar:sonar
22 workDir="${build.dir}/sonar"
23 key="${ivy.project.organisation}:${ivy.project.module}"
24 version="${project.version}" >
25 <sources>
26 <path location="${src.dir}" />
27 </sources>
28 <property key="sonar.projectName" value="${ivy.project.module}"/>
29 <property key="sonar.language" value="${sonar.language}" />
30 <property key="sonar.dynamicAnalysis" value="reuseReports" />
31 <property key="sonar.surefire.reportsPath" value="${build.test.results.dir}"/>
32 <tests>
33 <path location="${test.dir}" />
34 </tests>
35 <binaries>
36 <path location="${build.dir}/classes" />
37 </binaries>
38 </sonar:sonar>
39 </target>
40
41 </project>