This repository was archived by the owner on Jan 23, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathbuild_old.xml
executable file
·462 lines (390 loc) · 20.6 KB
/
build_old.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
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
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
<project name="topcoder" default="main" basedir=".">
<property name="Name" value="TopCoder"/>
<property name="build" value="build"/>
<property name="war.dir" value="${build}/wars"/>
<property name="ear.dir" value="${build}/ears"/>
<property name="ejb_jars" value="${build}/ejb_jars"/>
<property name="classes" value="${build}/classes"/>
<property name="bin" value="lib/bin"/>
<property name="testclasses" value="${build}/testcases"/>
<property name="build.javadocs" value="${build}/javadocs"/>
<property name="external.jars.dir" location="../external-artifacts"/>
<property name="lib.dir" value="lib"/>
<property name="jive.dir" value="lib/jars/jive"/>
<property name="jars.dir" value="${lib.dir}/jars"/>
<property name="global-dist.dir" value="${basedir}/../dist/artifacts"/>
<property name="shared.build" value="${basedir}/../shared"/>
<property name="shared.jar" value="${bin}/shared.jar"/>
<property name="struts.dir" value="${lib.dir}/jakarta-struts-1.1/lib"/>
<property name="bin" value="lib/bin"/>
<property name="src.dir" value="src"/>
<property name="java" value="${src.dir}/main"/>
<property name="shared" value="../shared/src/main"/>
<property name="testjava" value="${src.dir}/testcases"/>
<property name="testshared" value="../shared/src/testcases"/>
<property name="resources" value="resources"/>
<property name="conf" value="conf"/>
<property name="taglib" value="${resources}/taglib"/>
<property name="images" value="images"/>
<property name="shared.jar" value="${bin}/shared.jar"/>
<property name="common.jar" value="${bin}/tcwebcommon.jar"/>
<property name="long.jar" value="${bin}/long.jar"/>
<property name="web" value="src/main/com/topcoder/web"/>
<property name="jboss_home" value="../jboss-4.0.4.GA"/>
<property name="jboss_deploy" value="${jboss_home}/server/all/deploy"/>
<property name="jboss_lib" value="${jboss_home}/server/all/lib"/>
<property name="jboss_conf" value="${jboss_home}/server/all/conf"/>
<property environment="env"/>
<property name="deprecation" value="true"/>
<property name="debug" value="true"/>
<property name="junitsummary" value="on"/>
<target name="main" depends="compile">
</target>
<path id="class.path">
<pathelement location="${classes}"/>
<pathelement location="${shared.jar}"/>
<pathelement location="${testclasses}"/>
<pathelement location="${resources}"/>
<pathelement location="${resources}/hibernate"/>
<pathelement location="${images}"/>
<pathelement location="${jars.dir}/log4j-1.2.7.jar"/>
<pathelement location="${jars.dir}/ifxjdbc.jar"/>
<pathelement location="${jars.dir}/bfograph.jar"/>
<pathelement location="${jars.dir}/activation.jar"/>
<pathelement location="${jars.dir}/jboss/javax.servlet.jar"/>
<pathelement location="${jars.dir}/jboss/javax.servlet.jsp.jar"/>
<pathelement location="${jars.dir}/jboss/jbossall-client.jar"/>
<pathelement location="${jars.dir}/jboss/xalan.jar"/>
<pathelement location="${jars.dir}/jboss/xercesImpl.jar"/>
<pathelement location="${jars.dir}/jboss/xml-apis.jar"/>
<pathelement location="${jars.dir}/jboss/mail.jar"/>
<pathelement location="${jars.dir}/jboss/jboss-system.jar"/>
<pathelement location="${jars.dir}/jboss/jboss-cache.jar"/>
<pathelement location="${jars.dir}/jboss/jgroups.jar"/>
<pathelement location="${jive.dir}/jivebase.jar"/>
<pathelement location="${jive.dir}/jiveforums.jar"/>
<pathelement location="${jive.dir}/xwork.jar"/>
<pathelement location="${jive.dir}/htmlparser.jar"/>
<!-- TCS Components -->
<pathelement location="${jars.dir}/tcs/configuration_manager/2.1.5/configuration_manager.jar"/>
<pathelement location="${jars.dir}/object_formatter.jar"/>
<pathelement location="${jars.dir}/tcs/id_generator/3.0/id_generator.jar"/>
<pathelement location="${jars.dir}/tcs/db_connection_factory/1.0/db_connection_factory.jar"/>
<pathelement location="${jars.dir}/tcs/file_upload/2.0.2.0/file_upload.jar"/>
<pathelement location="${jars.dir}/tcs/json_object/1.0/json_object.jar"/>
<pathelement location="${jars.dir}/tcs/base_exception.jar"/>
<!--required for aol alerts only -->
<pathelement location="${jars.dir}/tcs/alerts_wrapper/1.0/java_alerts_wrapper.jar"/>
<pathelement location="${jars.dir}/tcs/logging_wrapper.jar"/>
<pathelement location="${jars.dir}/tcs/object_factory/2.0.1/object_factory.jar"/>
<!-- TCS Other -->
<pathelement location="${jars.dir}/tcs/catalog.jar"/>
<pathelement location="${jars.dir}/tcs/user.jar"/>
<!-- file conversion component -->
<pathelement location="${jars.dir}/fileconvert.jar"/>
<pathelement location="${jars.dir}/httpunit.jar"/>
<pathelement location="${jars.dir}/itext-1.1.jar"/>
<!-- hibernate files -->
<pathelement location="${jive.dir}/velocity-dep.jar"/>
<pathelement location="${jars.dir}/hibernate-3.2/hibernate3.jar"/>
<pathelement location="${jars.dir}/hibernate-3.2/commons-logging-1.0.4.jar"/>
<pathelement location="${jars.dir}/hibernate-3.2/ehcache-1.2.3.jar"/>
<pathelement location="${jars.dir}/hibernate-3.2/cglib-2.1.3.jar"/>
<pathelement location="${jars.dir}/hibernate-3.2/asm.jar"/>
<pathelement location="${jars.dir}/hibernate-3.2/ant-antlr-1.6.5.jar"/>
<pathelement location="${jars.dir}/hibernate-3.2/antlr-2.7.6.jar"/>
<pathelement location="${jars.dir}/hibernate-annotations-3.3.0.GA/hibernate-commons-annotations.jar"/>
<pathelement location="${jars.dir}/hibernate-annotations-3.3.0.GA/hibernate-annotations.jar"/>
<pathelement location="${jars.dir}/hibernate-annotations-3.3.0.GA/ejb3-persistence.jar"/>
<pathelement location="${external.jars.dir}/base_exception-2.0.0.jar"/>
<pathelement location="${external.jars.dir}/configuration_api-2.0.0.jar"/>
<pathelement location="${external.jars.dir}/image_overlay-1.0.0.jar"/>
<pathelement location="${external.jars.dir}/image_resizing-1.0.0.jar"/>
<pathelement location="${external.jars.dir}/image_manipulation-1.0.0.jar"/>
<pathelement location="${jars.dir}/TestServices.jar"/>
<pathelement location="${jars.dir}/asyncservices.jar"/>
<!-- app side dependencies...get rid of this if possible it's bad long contest design -->
<pathelement location="${jars.dir}/tc.jar"/>
<!--
<pathelement location="${confluence.jars}/hibernate-2.1.8-atlassian.jar"/>
<pathelement location="${confluence.jars}/atlassian-user-2007-05-22.jar"/>
<pathelement location="${confluence.jars}/confluence-2.5.3.jar"/>
<pathelement location="${confluence.jars}/seraph-0.7.23.jar"/>
<pathelement location="${confluence.jars}/atlassian-event-0.2.jar"/>
-->
</path>
<!-- adding this here because i can't figure out how to use the above path element in other path elements-->
<property name="class.path" refid="class.path"/>
<target name="init">
<mkdir dir="${classes}"/>
<mkdir dir="${testclasses}"/>
<mkdir dir="${bin}"/>
<mkdir dir="${ejb_jars}"/>
<mkdir dir="${war.dir}"/>
<mkdir dir="${ear.dir}"/>
</target>
<target name="compile_common" depends="init" unless="compile_common_set">
<ant antfile="build_common.xml" target="build-dist"/>
<property name="compile_common_set" value="true"/>
</target>
<target name="compile" depends="init,compile_common" unless="compile_set">
<depend srcdir="${java}" destdir="${classes}" cache="${build}/cache"/>
<javac
srcdir="${java}"
destdir="${classes}"
classpathref="class.path"
deprecation="${deprecation}"
debug="${debug}"
source="1.5"
target="1.5" memoryMaximumSize="380m" memoryInitialSize="380m" fork="true">
<include name="com/topcoder/ejb/**"/>
<include name="com/topcoder/security/**"/>
<include name="com/topcoder/utilities/**"/>
<include name="com/topcoder/web/**"/>
<exclude name="com/topcoder/web/csf/**"/>
<exclude name="com/topcoder/web/wiki/**"/>
<exclude name="com/topcoder/web/studio/**"/>
<exclude name="com/topcoder/web/openaim/**"/>
<exclude name="com/topcoder/web/forums/**"/>
<exclude name="com/topcoder/web/onsite/**"/>
<exclude name="com/topcoder/web/ejb/security/**"/>
</javac>
<property name="compile_set" value="true"/>
</target>
<target name="clean">
<!-- kill the entire build dir -->
<delete dir="${build}"/>
<delete dir="${bin}"/>
</target>
<target name="moveQueries" depends="compile">
<java classname="com.topcoder.utilities.querymover.QueryMover" fork="no">
<arg value="12418"/>
<arg value="12416"/>
<classpath>
<pathelement location="${classes}"/>
<pathelement location="${resources}"/>
<fileset dir="${jars.dir}">
<include name="**/*.jar"/>
</fileset>
<pathelement path="${env.CLASSPATH}"/>
</classpath>
</java>
</target>
<target name="comp_price" depends="compile">
<java classname="com.topcoder.web.tc.model.SoftwareComponent" fork="false">
<classpath>
<pathelement location="${classes}"/>
<pathelement location="${resources}"/>
<fileset dir="${jars.dir}">
<include name="**/*.jar"/>
</fileset>
<pathelement path="${env.CLASSPATH}"/>
</classpath>
</java>
</target>
<target name="run-ServerMonitorBot" depends="compile">
<java classname="com.topcoder.utilities.ServerMonitorBot" fork="true">
<jvmarg value="-Dsun.java2d.noddraw=true"/>
<classpath>
<pathelement location="${classes}"/>
<pathelement location="${jars.dir}/sharedForApp.jar"/>
<pathelement location="${jars.dir}/log4j-1.2.7.jar"/>
<pathelement location="${resources}"/>
<pathelement location="${jars.dir}/mail.jar"/>
<pathelement location="${jars.dir}/activation.jar"/>
</classpath>
</java>
</target>
<target name="crawl-site" depends="compile">
<java classname="com.topcoder.utilities.SiteCrawler" fork="true">
<classpath>
<pathelement location="${classes}"/>
<pathelement location="${jars.dir}/log4j-1.2.7.jar"/>
<pathelement location="${resources}"/>
<pathelement location="${jars.dir}/httpunit.jar"/>
<pathelement location="${jars.dir}/Tidy.jar"/>
<pathelement location="${jars.dir}/nekohtml.jar"/>
<pathelement location="${jars.dir}/xmlParserAPIs.jar"/>
<pathelement location="${jars.dir}/xercesImpl.jar"/>
</classpath>
</java>
</target>
<target name="placed-stuf">
<java classname="com.topcoder.utilities.ProjectResultPlacedSetter" fork="true">
<classpath>
<pathelement location="${shared.jar}"/>
<pathelement location="${bin}/classes.jar"/>
<pathelement location="${jars.dir}/log4j-1.2.7.jar"/>
<pathelement location="${jars.dir}/ifxjdbc.jar"/>
<pathelement location="${resources}"/>
</classpath>
</java>
</target>
<target name="competition-security-groups" depends="compile">
<java classname="com.topcoder.utilities.AddTCUsersToGroup" fork="true">
<classpath>
<pathelement location="${classes}"/>
<pathelement location="${jars.dir}/log4j-1.2.7.jar"/>
<pathelement location="${jars.dir}/ifxjdbc.jar"/>
<pathelement location="${jars.dir}/jboss/jbossall-client.jar"/>
<pathelement location="${jars.dir}/tcs/base_exception.jar"/>
<pathelement location="${jars.dir}/tcs/id_generator/3.0/id_generator.jar"/>
<pathelement location="${resources}"/>
</classpath>
</java>
</target>
<target name="contact_company_create" depends="compile">
<java classname="com.topcoder.utilities.ContactCompanyCreator" fork="true">
<classpath>
<pathelement location="${classes}"/>
<pathelement location="${jars.dir}/log4j-1.2.7.jar"/>
<pathelement location="${jars.dir}/ifxjdbc.jar"/>
<pathelement location="${jars.dir}/jboss/jbossall-client.jar"/>
<pathelement location="${jars.dir}/tcs/base_exception.jar"/>
<pathelement location="${jars.dir}/tcs/id_generator/3.0/id_generator.jar"/>
<pathelement location="${resources}"/>
</classpath>
</java>
</target>
<target name="condorcet">
<java classname="com.topcoder.utilities.CondorcetDoer" fork="true">
<arg value="22051"/>
<classpath>
<pathelement location="${shared.jar}"/>
<pathelement location="${bin}/classes.jar"/>
<!-- <pathelement location="${classes}"/>-->
<pathelement location="${jars.dir}/log4j-1.2.7.jar"/>
<pathelement location="${jars.dir}/ifxjdbc.jar"/>
<pathelement location="${jars.dir}/jboss/jbossall-client.jar"/>
<pathelement location="${jars.dir}/tcs/base_exception.jar"/>
<pathelement location="${jars.dir}/tcs/id_generator/3.0/id_generator.jar"/>
<pathelement location="${resources}"/>
</classpath>
</java>
</target>
<target name="rate_answers">
<java classname="com.topcoder.utilities.SurveyRateAnswers" fork="true">
<arg value="19893"/>
<classpath>
<pathelement location="${shared.jar}"/>
<pathelement location="${bin}/classes.jar"/>
<pathelement location="${classes}"/>
<pathelement location="${jars.dir}/log4j-1.2.7.jar"/>
<pathelement location="${jars.dir}/ifxjdbc.jar"/>
<pathelement location="${jars.dir}/jboss/jbossall-client.jar"/>
<pathelement location="${jars.dir}/tcs/base_exception.jar"/>
<pathelement location="${jars.dir}/tcs/id_generator/3.0/id_generator.jar"/>
<pathelement location="${resources}"/>
</classpath>
</java>
</target>
<target name="tco07" depends="compile">
<java classname="com.topcoder.utilities.TCO07Finalists" fork="true">
<classpath>
<pathelement location="${shared.jar}"/>
<pathelement location="${classes}"/>
<pathelement location="${jars.dir}/log4j-1.2.7.jar"/>
<pathelement location="${jars.dir}/ifxjdbc.jar"/>
<pathelement location="${jars.dir}/jboss/jbossall-client.jar"/>
<pathelement location="${jars.dir}/tcs/base_exception.jar"/>
<pathelement location="${jars.dir}/tcs/id_generator/3.0/id_generator.jar"/>
<pathelement location="${resources}"/>
</classpath>
</java>
</target>
<target name="royalties">
<java classname="com.topcoder.utilities.RoyaltyPaymentCreator" fork="true">
<classpath>
<pathelement location="${ejb_jars}/PactsClientServices.jar"/>
<pathelement location="${shared.jar}"/>
<pathelement location="${classes}"/>
<pathelement location="${jars.dir}/log4j-1.2.7.jar"/>
<pathelement location="${jars.dir}/ifxjdbc.jar"/>
<pathelement location="${jars.dir}/jboss/jbossall-client.jar"/>
<pathelement location="${jars.dir}/tcs/base_exception.jar"/>
<pathelement location="${jars.dir}/tcs/id_generator/3.0/id_generator.jar"/>
<pathelement location="${resources}"/>
<pathelement location="${jars.dir}/jboss/javax.servlet.jar"/>
<pathelement location="${jars.dir}/jboss/javax.servlet.jsp.jar"/>
<pathelement location="${jars.dir}/jboss/jbossall-client.jar"/>
<pathelement location="${jars.dir}/jboss/xalan.jar"/>
<pathelement location="${jars.dir}/jboss/xercesImpl.jar"/>
<pathelement location="${jars.dir}/jboss/xml-apis.jar"/>
<pathelement location="${jars.dir}/jboss/mail.jar"/>
<pathelement location="${jars.dir}/jboss/jboss-system.jar"/>
</classpath>
</java>
</target>
<target name="maxresponse" depends="compile">
<java classname="com.topcoder.utilities.CheckResponseSize" fork="true">
<classpath>
<pathelement location="${classes}"/>
<pathelement location="${jars.dir}/log4j-1.2.7.jar"/>
<pathelement location="${jars.dir}/ifxjdbc.jar"/>
<pathelement location="${jars.dir}/jboss/jbossall-client.jar"/>
<pathelement location="${jars.dir}/tcs/base_exception.jar"/>
<pathelement location="${jars.dir}/tcs/id_generator/3.0/id_generator.jar"/>
<pathelement location="${resources}"/>
</classpath>
</java>
</target>
<target name="convertresponse" depends="compile">
<java classname="com.topcoder.utilities.ConvertResponses" fork="true">
<classpath>
<pathelement location="build/ejb_jars/PactsServices.jar"/>
<pathelement location="${classes}"/>
<pathelement location="${jars.dir}/log4j-1.2.7.jar"/>
<pathelement location="${jars.dir}/ifxjdbc.jar"/>
<pathelement location="${jars.dir}/jboss/jbossall-client.jar"/>
<pathelement location="${jars.dir}/tcs/base_exception.jar"/>
<pathelement location="${jars.dir}/tcs/id_generator/3.0/id_generator.jar"/>
<pathelement location="${resources}"/>
</classpath>
</java>
</target>
<target name="testcache" depends="compile">
<java classname="com.topcoder.utilities.TestCache" fork="true">
<classpath>
<pathelement location="${classes}"/>
<pathelement location="${jars.dir}/log4j-1.2.7.jar"/>
<pathelement location="${jars.dir}/jboss/jbossall-client.jar"/>
<pathelement location="${jars.dir}/jboss/xalan.jar"/>
<pathelement location="${jars.dir}/jboss/xercesImpl.jar"/>
<pathelement location="${jars.dir}/jboss/xml-apis.jar"/>
<pathelement location="${jars.dir}/jboss/mail.jar"/>
<pathelement location="${jars.dir}/jboss/jboss-system.jar"/>
<pathelement location="${jars.dir}/jboss/jboss-cache.jar"/>
<pathelement location="${jars.dir}/jboss/jgroups.jar"/>
<pathelement location="${resources}"/>
</classpath>
</java>
</target>
<target name="oldstudio" depends="compile">
<java classname="com.topcoder.utilities.WidthHeightSetter" fork="true">
<classpath>
<pathelement location="${classes}"/>
<pathelement location="${jars.dir}/log4j-1.2.7.jar"/>
<pathelement location="${jars.dir}/ifxjdbc.jar"/>
<pathelement location="${resources}"/>
</classpath>
</java>
</target>
<target name="post-tournament-survey">
<java classname="com.topcoder.utilities.PostTournamentSurveyHelper" fork="true">
<arg value="algorithm.txt"/>
<arg value="algorithm"/>
<classpath>
<pathelement location="${shared.jar}"/>
<pathelement location="${classes}"/>
<pathelement location="${bin}/classes.jar"/>
<!-- <pathelement location="${classes}"/>-->
<pathelement location="${jars.dir}/log4j-1.2.7.jar"/>
<pathelement location="${jars.dir}/ifxjdbc.jar"/>
<pathelement location="${jars.dir}/jboss/jbossall-client.jar"/>
<pathelement location="${jars.dir}/tcs/base_exception.jar"/>
<pathelement location="${jars.dir}/tcs/id_generator/3.0/id_generator.jar"/>
<pathelement location="${resources}"/>
</classpath>
</java>
</target>
</project>