-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.xml
executable file
·110 lines (96 loc) · 3.84 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
103
104
105
106
107
108
109
110
<project default="build-and-jar">
<property name="src" value="src/main/java" />
<property name="bin" value="target" />
<property name="res" value="res" />
<property name="version" value="0.5" />
<property name="util-ver" value="0.9" />
<property name="sync-ver" value="0.9" />
<property name="task-ver" value="0.3" />
<property name="msg-ver" value="0.9" />
<property name="search-ver" value="0.5" />
<property name="cache-ver" value="0.9" />
<property name="core-ver" value="0.8" />
<property name="swing-task-ver" value="0.9" />
<property name="swing-util-ver" value="0.8" />
<property name="swing-search-ver" value="0.8" />
<property name="swing-dialog-ver" value="0.8" />
<property name="swing-ver" value="0.5" />
<property name="swing-all-ver" value="0.5" />
<target name="compile">
<mkdir dir="${bin}" />
<javac srcdir="." destdir="${bin}">
<exclude name="src/test/**" />
</javac>
</target>
<target name="jar-util" depends="compile">
<delete file="${bin}/sglj-util-${util-ver}.jar" />
<jar destfile="${bin}/sglj-util-${util-ver}.jar">
<fileset dir="${src}" includes="org/sglj/util/**/*.class" />
<fileset dir="${res}" includes="LICENCE.TXT" />
</jar>
</target>
<target name="jar-sync" depends="compile">
<delete file="${bin}/sglj-sync-${sync-ver}.jar" />
<jar destfile="${bin}/sglj-sync-${sync-ver}.jar">
<fileset dir="${src}" includes="org/sglj/sync/**/*.class" />
<fileset dir="${res}" includes="LICENCE.TXT" />
</jar>
</target>
<target name="jar-task" depends="compile">
<delete file="${bin}/sglj-task-${task-ver}.jar" />
<jar destfile="${bin}/sglj-task-${task-ver}.jar">
<fileset dir="${src}" includes="org/sglj/task/**/*.class" />
<fileset dir="${res}" includes="LICENCE.TXT" />
</jar>
</target>
<target name="jar-msg" depends="compile">
<delete file="${bin}/sglj-msg-${msg-ver}.jar" />
<jar destfile="${bin}/sglj-msg-${msg-ver}.jar">
<fileset dir="${src}" includes="org/sglj/msg/**/*.class" />
<fileset dir="${res}" includes="LICENCE.TXT" />
</jar>
</target>
<target name="jar-search" depends="compile">
<delete file="${bin}/sglj-search-${search-ver}.jar" />
<jar destfile="${bin}/sglj-search-${search-ver}.jar">
<fileset dir="${src}" includes="org/sglj/search/**/*.class" />
<fileset dir="${res}" includes="LICENCE.TXT" />
</jar>
</target>
<target name="jar-cache" depends="compile">
<delete file="${bin}/sglj-cache-${cache-ver}.jar" />
<jar destfile="${bin}/sglj-cache-${cache-ver}.jar">
<fileset dir="${src}" includes="org/sglj/cache/**/*.class" />
<fileset dir="${res}" includes="LICENCE.TXT" />
</jar>
</target>
<target name="jar-core" depends="compile">
<delete file="${bin}/sglj-core-${core-ver}.jar" />
<jar destfile="${bin}/sglj-core-${core-ver}.jar">
<fileset dir="${src}" includes="org/sglj/**/*.class"
excludes="org/sglj/swing/**/*.class" />
<fileset dir="${res}" includes="LICENCE.TXT" />
</jar>
</target>
<target name="jar-swing-all" depends="compile">
<delete file="${bin}/sglj-swing-all-${swing-all-ver}.jar" />
<jar destfile="${bin}/sglj-swing-all-${swing-all-ver}.jar">
<fileset dir="${src}" includes="org/sglj/swing/**/*.class" />
<fileset dir="${res}" includes="LICENCE.TXT" />
</jar>
</target>
<target name="jar-all" depends="compile">
<delete file="${bin}/sglj-${version}.jar" />
<jar destfile="${bin}/sglj-${version}.jar">
<fileset dir="${bin}" includes="**/*.class" />
<fileset dir="${res}" includes="LICENCE.TXT" />
</jar>
</target>
<target name="cleanup">
<delete>
<fileset dir="." includes="**/*.class" />
<fileset dir="${bin}" includes="*.jar" />
</delete>
</target>
<target name="build-and-jar" depends="compile,jar-all" />
</project>