This repository has been archived by the owner on May 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
/
build.xml
102 lines (81 loc) · 2.48 KB
/
build.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
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
101
102
<project name="DAAP" default="build" basedir=".">
<description>DAAP support</description>
<property name="version" value="0.1"/>
<property name="daap" value="daap-${version}"/>
<property name="build" location="build"/>
<property name="dist" location="dist/${daap}"/>
<property name="src" location="src/main/java"/>
<property name="rsrc" location="resources/main/java"/>
<property name="build.classes" location="${build}/classes"/>
<property name="build.resources" location="${build}/resources"/>
<property name="build.lib" location="${build}/lib"/>
<property name="daap-jar" location="${build.lib}/${daap}.jar"/>
<target name="init">
<tstamp/>
</target>
<target name="build" depends="init">
<mkdir dir="${build.classes}"/>
<javac srcdir="${src}"
destdir="${build.classes}"
source="1.5"
target="1.5">
<classpath>
<fileset dir="lib/main/java">
<include name="**/*.jar"/>
</fileset>
</classpath>
</javac>
<mkdir dir="${build.resources}"/>
<copy todir="${build.resources}" failonerror="false">
<fileset dir="${rsrc}"/>
</copy>
</target>
<target name="jar" depends="clean, build">
<mkdir dir="${build.lib}"/>
<jar jarfile="${daap-jar}">
<fileset dir="${build.classes}"/>
<fileset dir="${build.resources}"/>
<manifest>
<attribute name="Built-By" value="${user.name}"/>
<attribute name="Implementation-Title" value="DAAP"/>
</manifest>
</jar>
</target>
<target name="dist" depends="jar">
<mkdir dir="${dist}"/>
<copy file="README" todir="${dist}"/>
<copy file="${daap-jar}" todir="${dist}"/>
<!-- Copy the docs directory -->
<mkdir dir="${dist}/docs"/>
<copy todir="${dist}/docs">
<fileset dir="docs"/>
</copy>
<!-- Copy the License files -->
<copy todir="${dist}">
<fileset dir="${basedir}">
<include name="LICENSE*.txt"/>
</fileset>
</copy>
<!-- Copy the runtime JARs -->
<mkdir dir="${dist}/lib"/>
<copy todir="${dist}/lib">
<fileset dir="lib/main/java">
<include name="**/*.jar"/>
</fileset>
</copy>
<property name="javadoc.dir" location="/home/roger/Desktop/docs/api"/>
<javadoc
sourcepath="${src}"
destdir="${dist}/api"
author="true"
version="true"
use="true"
windowtitle="DAAP">
<link offline="true" href="http://java.sun.com/javase/6/docs/api" packagelistLoc="${javadoc.dir}"/>
</javadoc>
</target>
<target name="clean">
<delete dir="${build}"/>
<delete dir="${dist}"/>
</target>
</project>