1 |
<?xml version="1.0"?> |
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
<project name="icenotify-bundle" default="all"> |
20 |
|
21 |
<property file="./build.properties"/> |
22 |
|
23 |
<target name="all" description="Builds the icenotify.jar."> |
24 |
<antcall target="icenotify" /> |
25 |
</target> |
26 |
|
27 |
<target name="allclean" description="Cleans all remnants of previous ICEsoft Notify builds."> |
28 |
<subant target="clean"> |
29 |
<fileset dir="." includes="*/build.xml"> |
30 |
<exclude name="**/maven2/build.xml"/> |
31 |
</fileset> |
32 |
</subant> |
33 |
<delete file="lib/icenotify.jar" failonerror="false" /> |
34 |
<delete file="lib/iceutil.jar" failonerror="false" /> |
35 |
</target> |
36 |
|
37 |
<target name="icenotify" description="Compiles and assembles the icenotify.jar."> |
38 |
<antcall target="util" /> |
39 |
<antcall target="cloud" /> |
40 |
<antcall target="merge-cloud-util" /> |
41 |
</target> |
42 |
|
43 |
<target name="cloud" description="Compiles and assembles the ICEsoft Notify (o/s) icenotify.jar."> |
44 |
<subant target="jar"> |
45 |
<fileset dir="cloud" includes="build.xml" /> |
46 |
</subant> |
47 |
</target> |
48 |
|
49 |
<target name="util" description="Compiles and assembles the ICEsoft Util (o/s) iceutil.jar."> |
50 |
<subant target="jar"> |
51 |
<fileset dir="util" includes="build.xml" /> |
52 |
</subant> |
53 |
</target> |
54 |
|
55 |
<target name="merge-cloud-util" description="Destructively merges the icenotify.jar and iceutil.jar into the icenotify.jar file."> |
56 |
<move file="lib/icenotify.jar" tofile="lib/icenotify-temp.jar" /> |
57 |
<zip destfile="lib/icenotify.jar"> |
58 |
<zipfileset src="lib/iceutil.jar" includes="org/**" /> |
59 |
<zipfileset src="lib/icenotify-temp.jar" includes="org/**,META-INF/MANIFEST.MF" /> |
60 |
</zip> |
61 |
<delete file="lib/icenotify-temp.jar"/> |
62 |
<delete file="lib/iceutil.jar"/> |
63 |
</target> |
64 |
|
65 |
</project> |