-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.xml
More file actions
executable file
·100 lines (88 loc) · 3.62 KB
/
Copy pathbuild.xml
File metadata and controls
executable file
·100 lines (88 loc) · 3.62 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<project basedir="." default="build" name="azei">
<property environment="env"/>
<property name="debuglevel" value="source,lines,vars"/>
<property name="target" value="1.6"/>
<property name="source" value="1.6"/>
<property name="lib.dir" value="lib"/>
<property name="bin.dir" value="bin"/>
<property name="src.dir" value="src"/>
<property name="test.dir" value="test"/>
<property name="target.dir" value="target"/>
<property name="docs.dir" value="${target.dir}/docs"/>
<property name="reports.dir" value="${target.dir}/reports"/>
<property name="artifacts.dir" value="${target.dir}/artifacts"/>
<property file="plugin.properties"/>
<path id="classpath.base">
<fileset dir="${lib.dir}">
<include name="**/*.jar" />
</fileset>
</path>
<path id="classpath.test">
<pathelement location="${bin.dir}" />
<path refid="classpath.base"/>
</path>
<target name="compile-test">
<echo message="Compiling tests..."/>
<javac debug="true" debuglevel="${debuglevel}" destdir="${bin.dir}" source="${source}" target="${target}">
<src path="${test.dir}"/>
<classpath refid="classpath.test"/>
</javac>
</target>
<target name="init">
<echo message="Initialising..."/>
<mkdir dir="${target.dir}"/>
<mkdir dir="${reports.dir}"/>
<mkdir dir="${artifacts.dir}"/>
<mkdir dir="${bin.dir}"/>
</target>
<target name="clean">
<echo message="Cleaning..."/>
<delete dir="${bin.dir}"/>
<delete dir="${target.dir}"/>
</target>
<target name="build" depends="compile">
<echo message="Building"/>
<jar jarfile="${artifacts.dir}/${ant.project.name}-${plugin.version}.jar" update="true">
<fileset dir="${bin.dir}"/>
<fileset dir="${src.dir}" includes="**/Messages.properties"/>
<fileset dir="." includes="plugin.properties"/>
<zipgroupfileset dir="${lib.dir}" includes="mail.jar"/>
</jar>
</target>
<target name="compile" depends="init">
<echo message="Compiling..."/>
<javac debug="true" debuglevel="${debuglevel}" destdir="${bin.dir}" source="${source}" target="${target}">
<src path="${src.dir}"/>
<classpath refid="classpath.base"/>
</javac>
</target>
<target name="javadoc" depends="init">
<echo message="Creating javadoc..."/>
<javadoc access="public"
author="true"
classpath="classpath.base"
destdir="${docs.dir}"
doctitle="Azureus Email Interface"
nodeprecated="false"
nodeprecatedlist="false"
noindex="false" nonavbar="false" notree="false"
source="${source}"
link="http://cdn01.vuze.com/site/dev/javadoc/Vuze_4703-18/"
sourcepath="${src.dir}" splitindex="true" use="true" version="true">
<classpath refid="classpath.base"/>
</javadoc>
</target>
<target name="test" depends="compile, compile-test">
<echo message="Testing..."/>
<junit printsummary="on">
<classpath refid="classpath.test"/>
<batchtest todir="${reports.dir}">
<fileset dir="${bin.dir}">
<include name="**/*Test.class"/>
</fileset>
</batchtest>
<formatter type="xml"/>
</junit>
</target>
</project>