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" default="jar"> |
20 |
|
21 |
|
22 |
|
23 |
|
24 |
<property file="../build.properties" /> |
25 |
<property file="build.properties" /> |
26 |
<property name="root.offset" value=".." /> |
27 |
<property name="java.dir" location="src/main/java" /> |
28 |
<property file="${root.offset}/build.properties" /> |
29 |
|
30 |
|
31 |
|
32 |
|
33 |
|
34 |
|
35 |
|
36 |
|
37 |
|
38 |
|
39 |
|
40 |
<path id="compile.run.classpath"> |
41 |
<pathelement location="${classes.dir}" /> |
42 |
<fileset dir="${root.offset}/${lib.dir}" /> |
43 |
</path> |
44 |
|
45 |
|
46 |
|
47 |
|
48 |
|
49 |
<target name="clean" |
50 |
description="Clean up all artifacts."> |
51 |
|
52 |
<delete dir="${build.dir}" /> |
53 |
<delete file="${root.offset}/${lib.dir}/icenotify.jar" /> |
54 |
</target> |
55 |
|
56 |
<target name="pre.compile" depends="check.iceutil.jar, build.iceutil.jar"> |
57 |
<mkdir dir="${build.dir}" /> |
58 |
<mkdir dir="${classes.dir}" /> |
59 |
<mkdir dir="${dist.dir}" /> |
60 |
</target> |
61 |
|
62 |
<target name="check.iceutil.jar"> |
63 |
<available file="${root.offset}/${util.dir}/${dist.dir}/iceutil.jar" property="iceutil.jar.present" /> |
64 |
</target> |
65 |
|
66 |
<target name="build.iceutil.jar" unless="iceutil.jar.present"> |
67 |
<subant failonerror="true"> |
68 |
<fileset dir="${root.offset}/${util.dir}" includes="build.xml" /> |
69 |
<target name="clean" /> |
70 |
<target name="jar" /> |
71 |
</subant> |
72 |
</target> |
73 |
|
74 |
<target name="compile" |
75 |
depends="pre.compile" |
76 |
description="Compile the ICEsoft Cloud Push sources."> |
77 |
|
78 |
<javac debug="true" |
79 |
destdir="${classes.dir}" |
80 |
includeantruntime="false" |
81 |
source="1.5" |
82 |
srcdir="${java.dir}" |
83 |
target="1.5"> |
84 |
|
85 |
<classpath refid="compile.run.classpath" /> |
86 |
</javac> |
87 |
</target> |
88 |
|
89 |
<target name="jar" depends="compile" |
90 |
description="Create the ICEsoft Cloud Push library."> |
91 |
|
92 |
<jar destfile="${dist.dir}/icenotify.jar" duplicate="preserve"> |
93 |
<fileset dir="${classes.dir}"> |
94 |
<include name="org/**" /> |
95 |
</fileset> |
96 |
<fileset dir="${java.dir}"> |
97 |
<include name="org/**/*.java" /> |
98 |
</fileset> |
99 |
</jar> |
100 |
<copy file="${dist.dir}/icenotify.jar" todir="${root.offset}/${lib.dir}" /> |
101 |
</target> |
102 |
|
103 |
</project> |