1 |
|
2 |
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 |
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
<project name="ICEpush" default="build-all"> |
24 |
|
25 |
|
26 |
<property file="build.properties"/> |
27 |
<import file="build-common.xml"/> |
28 |
|
29 |
<target name="dist-icepush-bin"> |
30 |
<antcall target="jar-icepush-core"></antcall> |
31 |
<copy file="./core/dist/icepush.jar" todir="${dist.dir}"/> |
32 |
</target> |
33 |
|
34 |
<target name="dist-gwt-bin" depends="dist-icepush-bin"> |
35 |
<build.with.path.offset target="gwt"/> |
36 |
</target> |
37 |
|
38 |
<target name="dist-jsp-bin" depends="dist-icepush-bin"> |
39 |
<build.with.path.offset target="jsp"/> |
40 |
</target> |
41 |
|
42 |
<target name="dist-spring-bin" depends="dist-icepush-bin"> |
43 |
<build.with.path.offset target="spring"/> |
44 |
</target> |
45 |
|
46 |
<target name="dist-jquery-bin" depends="dist-icepush-bin"> |
47 |
<build.with.path.offset target="jquery"/> |
48 |
</target> |
49 |
|
50 |
<target name="dist-prototype-bin" depends="dist-icepush-bin"> |
51 |
<build.with.path.offset target="prototype"/> |
52 |
</target> |
53 |
|
54 |
<target name="dist-wicket-bin" depends="dist-icepush-bin"> |
55 |
<build.with.path.offset target="wicket"/> |
56 |
</target> |
57 |
|
58 |
<target name="dist-grails-bin" depends="dist-icepush-bin"> |
59 |
<build.with.path.offset target="grails"/> |
60 |
</target> |
61 |
|
62 |
<macrodef name="build.with.path.offset"> |
63 |
<attribute name="target"/> |
64 |
<sequential> |
65 |
<echo>Building Integration: @{target}</echo> |
66 |
|
67 |
<delete dir="${build.dir}" failonerror="false" includeEmptyDirs="true"></delete> |
68 |
|
69 |
<copy file="./core/${dist.dir}/icepush.jar" todir="${build.dir}"/> |
70 |
|
71 |
<ant dir="./integration/@{target}" target="build.all"/> |
72 |
<copy todir="${build.dir}"> |
73 |
<fileset dir="./integration/@{target}/${dist.dir}" includes="**"/> |
74 |
</copy> |
75 |
|
76 |
<zip destfile="${dist.dir}/icepush-@{target}.zip" basedir="${build.dir}"></zip> |
77 |
|
78 |
</sequential> |
79 |
</macrodef> |
80 |
|
81 |
<macrodef name="clean.with.path.offset"> |
82 |
<attribute name="target"/> |
83 |
<sequential> |
84 |
<echo>Cleaning Inegration @{target}</echo> |
85 |
<ant target="clean" dir="./integration/@{target}"/> |
86 |
</sequential> |
87 |
</macrodef> |
88 |
|
89 |
<target name="build-all"> |
90 |
|
91 |
<antcall target="dist-gwt-bin"/> |
92 |
<antcall target="dist-jsp-bin"/> |
93 |
<antcall target="dist-spring-bin"/> |
94 |
<antcall target="dist-jquery-bin"/> |
95 |
<antcall target="dist-prototype-bin"/> |
96 |
<antcall target="dist-wicket-bin"/> |
97 |
<antcall target="dist-grails-bin"/> |
98 |
|
99 |
|
100 |
|
101 |
<ant target="war" dir="./samples/icechat/ajax"/> |
102 |
|
103 |
</target> |
104 |
|
105 |
<target name="clean-all"> |
106 |
<clean/> |
107 |
<ant dir="./core" target="clean"/> |
108 |
|
109 |
<clean.with.path.offset target="jsp"/> |
110 |
<ant target="clean" dir="./samples/icechat/jsp"/> |
111 |
|
112 |
<ant target="clean" dir="./samples/basic"/> |
113 |
|
114 |
|
115 |
<clean.with.path.offset target="gwt"/> |
116 |
<ant target="clean" dir="./samples/icechat/gwt"/> |
117 |
|
118 |
<clean.with.path.offset target="spring"/> |
119 |
<ant target="clean" dir="./samples/icechat/spring"/> |
120 |
|
121 |
<clean.with.path.offset target="jquery"/> |
122 |
<ant target="clean" dir="./samples/icechat/jquery"/> |
123 |
|
124 |
<clean.with.path.offset target="prototype"/> |
125 |
<ant target="clean" dir="./samples/icechat/prototype"/> |
126 |
|
127 |
<clean.with.path.offset target="wicket"/> |
128 |
<ant target="clean" dir="./samples/icechat/wicket"/> |
129 |
|
130 |
<ant target="clean" dir="./samples/icechat/icefaces"/> |
131 |
|
132 |
|
133 |
</target> |
134 |
|
135 |
</project> |