[go: up one dir, main page]

Menu

[r1148]: / gw / trunk / gw / build.xml  Maximize  Restore  History

Download this file

344 lines (289 with data), 10.6 kB

  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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
<!--
Copyright 2006 Nokia Corporation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!--
Created by: Ferenc Dosa Racz
-->
<project name="gw" default="build" basedir=".">
<!-- properties defined in this file will override the ones
defaulted here
-->
<property file="build.properties"/>
<property file="gw.build.properties"/>
<property name="catalina.home" value="cf gw.build.properties"/>
<property name="util.home" value="util"/>
<property name="db.home" value="db"/>
<property name="gwdb.home" value="gwdb"/>
<property name="iapi.home" value="iapi"/>
<property name="connector.server.home" value="connector/server"/>
<property name="connector.client.home" value="connector/client"/>
<property name="valve.home" value="valve"/>
<property name="funcsystest.home" value="funcsystest"/>
<property name="httpclient.home" value="httpclient"/>
<property name="webutil.home" value="webutil"/>
<property name="webapps.test.home" value="webapps/test"/>
<property name="webapps.musers.home" value="webapps/musers"/>
<property name="webapps.oos.home" value="webapps/oos"/>
<property name="webapps.props.home" value="webapps/props"/>
<property name="webapps.systest.home" value="webapps/systest"/>
<property name="webapps.admin.home" value="webapps/admin"/>
<property name="webapps.account.home" value="webapps/account"/>
<property name="webapps.hits.home" value="webapps/hits"/>
<property name="webapps.messenger.home" value="webapps/messenger"/>
<target name="check"
description="Checks if *.orig files have been customized">
<available file="gw.build.properties"
property="gw.build.properties.exists"/>
<fail message="You don't have a customized gw.build.properties.">
<condition>
<not>
<isset property="gw.build.properties.exists"/>
</not>
</condition>
</fail>
</target>
<target name="brief"
description="Gives a short overall description of this build file.">
<echo>
This build file is ment mainly for daily development. For
installation, it is recommended to build and test the components
separattely, and manual installation is required in many case.
However, one can use this build file to get a clue what to install
where - to some extent.
</echo>
</target>
<target name="cleancore"
description="Cleans gw core libraries">
<ant antfile="build.xml"
dir="${util.home}"
target="clean"/>
<ant antfile="build.xml"
dir="${db.home}"
target="clean"/>
<ant antfile="build.xml"
dir="${gwdb.home}"
target="clean"/>
<ant antfile="build.xml"
dir="${iapi.home}"
target="clean"/>
<ant antfile="build.xml"
dir="${connector.server.home}"
target="clean"/>
<ant antfile="build.xml"
dir="${connector.client.home}"
target="clean"/>
<ant antfile="build.xml"
dir="${valve.home}"
target="clean"/>
<ant antfile="build.xml"
dir="${funcsystest.home}"
target="clean"/>
</target>
<target name="cleanwebapps"
description="Cleans webapps">
<ant antfile="build.xml"
dir="${webutil.home}"
target="clean"/>
<ant antfile="build.xml"
dir="${httpclient.home}"
target="clean"/>
<ant antfile="build.xml"
dir="${webapps.test.home}"
target="clean"/>
<ant antfile="build.xml"
dir="${webapps.musers.home}"
target="clean"/>
<ant antfile="build.xml"
dir="${webapps.oos.home}"
target="clean"/>
<ant antfile="build.xml"
dir="${webapps.props.home}"
target="clean"/>
<ant antfile="build.xml"
dir="${webapps.systest.home}"
target="clean"/>
<ant antfile="build.xml"
dir="${webapps.admin.home}"
target="clean"/>
<ant antfile="build.xml"
dir="${webapps.account.home}"
target="clean"/>
<ant antfile="build.xml"
dir="${webapps.hits.home}"
target="clean"/>
<ant antfile="build.xml"
dir="${webapps.messenger.home}"
target="clean"/>
</target>
<target name="cleanall"
description="Cleans all (gw core libs and webapps)"
depends="cleancore,cleanwebapps">
</target>
<target name="buildcore"
description="Builds gw core libraries"
depends="check">
<ant antfile="build.xml"
dir="${util.home}"
target="jar"
inheritAll="false"/>
<ant antfile="build.xml"
dir="${db.home}"
target="jar"
inheritAll="false"/>
<ant antfile="build.xml"
dir="${gwdb.home}"
target="jar"
inheritAll="false"/>
<ant antfile="build.xml"
dir="${iapi.home}"
target="jar"
inheritAll="false"/>
<ant antfile="build.xml"
dir="${connector.server.home}"
target="jar"
inheritAll="false"/>
<ant antfile="build.xml"
dir="${connector.client.home}"
target="jar"
inheritAll="false"/>
<ant antfile="build.xml"
dir="${valve.home}"
target="jar"
inheritAll="false"/>
<ant antfile="build.xml"
dir="${funcsystest.home}"
target="jar"
inheritAll="false"/>
</target>
<target name="buildwebapps"
description="Builds webapps"
depends="check,buildcore">
<ant antfile="build.xml"
dir="${webutil.home}"
target="jar"
inheritAll="false"/>
<ant antfile="build.xml"
dir="${httpclient.home}"
target="jar"
inheritAll="false"/>
<ant antfile="build.xml"
dir="${webapps.test.home}"
target="compile"
inheritAll="false"/>
<ant antfile="build.xml"
dir="${webapps.musers.home}"
target="compile"
inheritAll="false"/>
<ant antfile="build.xml"
dir="${webapps.oos.home}"
target="compile"
inheritAll="false"/>
<ant antfile="build.xml"
dir="${webapps.props.home}"
target="compile"
inheritAll="false"/>
<ant antfile="build.xml"
dir="${webapps.systest.home}"
target="compile"
inheritAll="false"/>
<ant antfile="build.xml"
dir="${webapps.admin.home}"
target="compile"
inheritAll="false"/>
<ant antfile="build.xml"
dir="${webapps.account.home}"
target="compile"
inheritAll="false"/>
<ant antfile="build.xml"
dir="${webapps.hits.home}"
target="compile"
inheritAll="false"/>
<ant antfile="build.xml"
dir="${webapps.messenger.home}"
target="compile"
inheritAll="false"/>
</target>
<target name="build"
description="Default target, does exactly the same as buildcore"
depends="buildall">
</target>
<target name="buildall"
description="Builds all (gw core libs and webapps)"
depends="buildcore,buildwebapps">
</target>
<target name="rebuildcore"
description="Rebuilds gw core libraries"
depends="cleancore,buildcore">
</target>
<target name="rebuildwebapps"
description="Rebuilds webapps"
depends="cleanwebapps,buildwebapps">
</target>
<target name="rebuildall"
description="Rebuilds all (gw core libs and webapps)"
depends="rebuildcore,rebuildwebapps">
</target>
<target name="installcorelibs"
description="Installs gw core libraries to tomcat5"
depends="buildcore">
<copy file="${mws.util.jar}"
todir="${catalina.home}/common/lib"/>
<copy file="${mws.db.jar}"
todir="${catalina.home}/common/lib"/>
<copy file="${mws.gwdb.jar}"
todir="${catalina.home}/common/lib"/>
<copy file="${mws.iapi.jar}"
todir="${catalina.home}/common/lib"/>
<copy file="${mws.connector.server.jar}"
todir="${catalina.home}/server/lib"/>
<copy file="${mws.valve.jar}"
todir="${catalina.home}/server/lib"/>
<echo>
Copied these JARs to ${catalina.home}/common/lib:
o mws-util.jar
o mws-db.jar
o mws-gwdb.jar
o mws-iapi.jar
Copied these JARs to ${catalina.home}/server/lib:
o mws-connector-server.jar
o mws-valve.jar
NOTE
Remember, that the mysql connector (JDBC driver for mysql) JAR
must be in ${catalina.home}/common/lib.
Remember, that the created mws-gw-db.cfg (see ${db.home}/bin/dbmgr.sh)
must be in the ${catalina.home}/bin directory. Every time you change
GW DB (or it's settings, you'd better copy the new mws-gw-db.cfg
to that place).
Remember, that only (common and server) libraries were copied
to tomcat, web apps were not. Most of those need manual configuration
and installation.
Please (re)start tomcat.
</echo>
</target>
<target name="installcorewebapps"
description="Deploys essential webapps to tomcat5 (oos, props)"
depends="buildwebapps">
<ant antfile="build.xml"
dir="${webapps.oos.home}"
target="install"
inheritAll="false"/>
<ant antfile="build.xml"
dir="${webapps.props.home}"
target="install"
inheritAll="false"/>
<echo>
Deployed the two most important webapp to tomcat5
o webapps/oos to context /mws-oos,
o webapps/props to context /mws-props.
</echo>
</target>
</project>