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