-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild-sonar.xml
25 lines (21 loc) · 1.13 KB
/
build-sonar.xml
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
<project name="Sqoop sonar" default="all" basedir="." xmlns:sonar="antlib:org.sonar.ant">
<import file="${basedir}/build.xml"/>
<!-- Define the SonarQube global properties (the most usual way is to pass these properties via the command line) -->
<property name="sonar.jdbc.url" value="jdbc:mysql://172.22.73.136:3306/sonar?useUnicode=true&characterEncoding=utf8" />
<property name="sonar.jdbc.username" value="sonar" />
<property name="sonar.jdbc.password" value="sonar" />
<!-- Define the SonarQube project properties -->
<property name="sonar.projectKey" value="org.apache.sqoop:sqoop" />
<property name="sonar.projectName" value="Apache Sqoop" />
<property name="sonar.projectVersion" value="1.0" />
<property name="sonar.language" value="java" />
<property name="sonar.sources" value="src" />
<property name="sonar.binaries" value="${basedir}/build/" />
<property name="sonar.host.url" value="http://172.22.73.136:9000"/>
<!-- Define the SonarQube target -->
<target name="sonar">
<taskdef uri="antlib:org.sonar.ant" resource="org/sonar/ant/antlib.xml"/>
<!-- Execute the SonarQube analysis -->
<sonar:sonar />
</target>
</project>