-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild-sonar.xml
More file actions
54 lines (41 loc) · 1.87 KB
/
build-sonar.xml
File metadata and controls
54 lines (41 loc) · 1.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<project name="SonarAntProject" default="sonar">
<import file="build-properties.xml"/>
<property name="build.version" value="0.0.0.1-Sonar"/>
<property name="mysonar.organizationName" value="com.asaed"/>
<property name="sonar.projectName" value="${project.name}" />
<property name='sonar.surefire.reportsPath' value='${junit.report.xml}'/>
<property name="sonar.core.codeCoveragePlugin" value="emma"/>
<property name='sonar.emma.reportPath' value='${emma.outdir}'/>
<path id="sonar.classpath">
<fileset dir="${buildtools.dir}/sonar" includes="**/*.jar" />
</path>
<taskdef uri="antlib:org.sonar.ant" resource="org/sonar/ant/antlib.xml">
<classpath refid="sonar.classpath" />
</taskdef>
<target name="sonar" depends="clean, compile, compile-test, test">
<property name="sonar.jdbc.url"
value="jdbc:mysql://localhost:3306/sonar_temp?useUnicode=true&characterEncoding=utf8" />
<property name="sonar.jdbc.driverClassName" value="com.mysql.jdbc.Driver" />
<property name="sonar.jdbc.username" value="sonar_temp" />
<property name="sonar.jdbc.password" value="sonar_temp" />
<property name="sonar.host.url" value="http://localhost:9001/sonar" />
<sonar:sonar key="${mysonar.organizationName}:${sonar.projectName}" version="${build.version}" xmlns:sonar="antlib:org.sonar.ant">
<sources>
<path location="${project.dir}/src/main/java"/>
<path location="${project.dir}/src/main/resources"/>
</sources>
<tests>
<path location="${project.dir}/src/test/java"/>
<path location="${project.dir}/src/test/resources"/>
</tests>
<binaries>
<path location="${compile.outdir}"/>
</binaries>
<libraries>
<path>
<fileset dir="${project.dir}/lib" includes="*.jar" />
</path>
</libraries>
</sonar:sonar>
</target>
</project>