-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathbuild.xml
More file actions
54 lines (45 loc) · 2.38 KB
/
build.xml
File metadata and controls
54 lines (45 loc) · 2.38 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
<?xml version="1.0" encoding="utf-8"?>
<project name="zutubi-android-ant" default="dist">
<property name="version" value="dev"/>
<property name="java-build.src-dir" location="src"/>
<property name="java-test.src-dir" location="test"/>
<property name="java-build.lib-dir" location="libs"/>
<property name="java-build.dist-filename" value="${ant.project.name}-${version}.jar"/>
<property name="java-report.checkstyle-config-file" value="etc/checkstyle/android.xml"/>
<property name="asl.dir" value="asl"/>
<target name="-explode-third-party">
<property name="explode-dir" location="${common.target-dir}/explode"/>
<delete dir="${explode-dir}"/>
<mkdir dir="${explode-dir}"/>
<unjar src="${java-build.lib-dir}/decentxml-1.2.jar" dest="${explode-dir}"/>
<copy todir="${java-build.classes-dir}">
<fileset dir="${explode-dir}">
<exclude name="META-INF/**"/>
</fileset>
</copy>
</target>
<import file="${asl.dir}/asl-java-build.xml"/>
<import file="${asl.dir}/asl-java-test.xml"/>
<import file="${asl.dir}/asl-java-report.xml"/>
<!-- Override the default checkstyle target to also check test classes. -->
<target name="report-checkstyle"
depends="-report-checkstyle-run,-report-checkstyle-xslt,-report-checkstyle-check"
description="Generates the code quality report from Checkstyle"/>
<target name="-report-checkstyle-run" depends="-report-init-checkstyle">
<mkdir dir="${java-report.checkstyle-data-dir}"/>
<checkstyle config="${java-report.checkstyle-config-file}"
failureProperty="checkstyle.failure"
failOnViolation="false">
<formatter type="xml" tofile="${java-report.checkstyle-data-file}"/>
<fileset dir="${java-build.src-dir}" includes="**/*.java"/>
<fileset dir="${java-test.src-dir}" includes="**/*.java"/>
</checkstyle>
</target>
<target name="-report-checkstyle-check">
<fail if="checkstyle.failure" message="Checkstyle failed."/>
</target>
<!-- Override the default report-all target to select just the reports we want. -->
<target name="report-all"
depends="report-javadoc, report-tests, report-cobertura, report-pmd, report-checkstyle"
description="Runs all reports"/>
</project>