forked from matomo-org/matomo-java-tracker
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
57 lines (52 loc) · 2.64 KB
/
build.xml
File metadata and controls
57 lines (52 loc) · 2.64 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
55
56
57
<?xml version="1.0" encoding="UTF-8"?>
<project name="piwik-java-tracker" default="default" basedir=".">
<description>Builds, tests, and runs the project Piwik Java Tracker.</description>
<import file="nbproject/build-impl.xml"/>
<target depends="-javadoc-build" name="-post-jar">
<jar compress="${jar.compress}" basedir="dist/javadoc" destfile="dist/${ant.project.name}-${project.version}-javadoc.jar" />
<jar compress="${jar.compress}" basedir="src" destfile="dist/${ant.project.name}-${project.version}-sources.jar" />
</target>
<!-- Define the Analyze target -->
<target depends="init" name="analyze" description="Analyzes the project with SonarQube.">
<property name="sonar.projectKey" value="org.piwik.java.tracking" />
<property name="sonar.projectName" value="Piwik Java Tracker" />
<property name="sonar.projectVersion" value="1.0.0" />
<property name="sonar.language" value="java" />
<property name="sonar.sources" value="${src.dir}" />
<taskdef name="sonar" classname="org.sonar.ant.SonarTask">
<classpath path="${file.reference.sonar-ant-task-2.2.jar}" />
</taskdef>
<sonar />
</target>
<!-- Define the Mutate target -->
<target depends="test" name="mutate" description="Performs mutation testing on the project with Pitest.">
<property name="pitest.target" value="org.piwik.java.tracking.*" />
<property name="pitest.excludedClasses" value="*IT" />
<property name="pitest.excludedMethods" value="hashCode" />
<property name="pitest.format" value="html,xml" />
<path id="mutation.path">
<path refid="pitest.path" />
<pathelement location="${run.test.classpath}" />
</path>
<path id="pitest.path">
<pathelement location="${javac.test.classpath}" />
<pathelement location="${file.reference.pitest-1.1.6.jar}" />
<pathelement location="${file.reference.pitest-ant-1.1.6.jar}" />
</path>
<taskdef name="pitest"
classname="org.pitest.ant.PitestTask"
classpathref="pitest.path" />
<pitest
pitClasspath="pitest.path"
classPath="mutation.path"
targetClasses="${pitest.target}"
targetTests="${pitest.target}"
excludedClasses="${pitest.excludedClasses}"
excludedMethods="${pitest.excludedMethods}"
reportDir="${build.test.results.dir}"
outputFormats="${pitest.format}"
sourceDir="${source.root}"
threads="1"
verbose="false"/>
</target>
</project>