-
Notifications
You must be signed in to change notification settings - Fork 13
/
build_mm.xml
304 lines (263 loc) · 14 KB
/
build_mm.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
<project name="topcoder" default="main" basedir=".">
<property environment="env"/>
<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="sar.dir" value="${build}/sars"/>
<property name="ejb_jars" value="${build}/ejb_jars"/>
<property name="classes" value="${build}/classes"/>
<property name="testclasses" value="${build}/testcases"/>
<property name="global-dist.dir" value="${basedir}/../dist/artifacts"/>
<property name="external.jars.dir" location="../external-artifacts"/>
<property name="build.javadocs" value="${build}/javadocs"/>
<property name="lib.dir" value="lib"/>
<property name="jars.dir" value="${lib.dir}/jars"/>
<property name="jive.dir" value="lib/jars/jive"/>
<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.build" value="${basedir}/../shared"/>
<property name="shared" value="../shared/src/main"/>
<property name="testjava" value="${src.dir}/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="tccache.jar" value="${jars.dir}/tcs/tc_cache/1.0.0/tc_cache.jar"/>
<property name="long.jar" value="${bin}/long.jar"/>
<property name="web" value="src/main/com/topcoder/web"/>
<property name="jboss_home" value="${env.JBOSS_HOME}"/>
<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 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="${tccache.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/2.0.0/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}/hicbernate-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="${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"/>
<!-- twitter API -->
<pathelement location="${jars.dir}/twitter4j-core-3.0.6.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="${war.dir}"/>
<mkdir dir="${ejb_jars}"/>
</target>
<target name="compile" depends="init,compile_common" unless="compile_set">
<javac
srcdir="${java}"
destdir="${classes}"
classpathref="class.path"
deprecation="${deprecation}"
debug="${debug}"
source="1.5"
target="1.5"
>
<include name="com/topcoder/web/codinginterface/**"/>
<include name="com/topcoder/web/ejb/roundregistration/**"/>
</javac>
<property name="compile_set" value="true"/>
</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="package-EJB-RoundRegistrationBean" depends="compile">
<jar jarfile="${ejb_jars}/RoundRegistration.jar">
<zipfileset dir="${classes}" includes="com/topcoder/web/ejb/BaseEJB.class"/>
<zipfileset dir="${classes}" includes="com/topcoder/web/ejb/roundregistration/*.class"/>
<metainf dir="${java}/com/topcoder/web/ejb/roundregistration" includes="*.xml"/>
</jar>
</target>
<target name="build-security">
<ant antfile="build_security.xml" target="build-security"/>
</target>
<target name="war" depends="compile">
<jar jarfile="${long.jar}">
<fileset dir="${classes}">
<include name="com/topcoder/web/tc/model/*.class"/>
</fileset>
</jar>
<war warfile="${war.dir}/longcontest.war" webxml="${resources}/longcontest/web.xml">
<classes dir="${classes}">
<include name="com/topcoder/web/codinginterface/longcontest/**"/>
<include name="com/topcoder/web/codinginterface/view/tag/**"/>
<include name="com/topcoder/web/codinginterface/*.class"/>
<include name="com/topcoder/web/codinginterface/messaging/**"/>
<include name="com/topcoder/web/codinginterface/model/**"/>
<include name="problem.xsd"/>
</classes>
<classes dir="${resources}" includes="TC.properties"/>
<webinf dir="${resources}/taglib">
<include name="tc-webtags.tld"/>
<include name="codinginterface.tld"/>
<include name="rsc-taglib.tld"/>
<include name="nav.tld"/>
</webinf>
<webinf dir="${struts.dir}">
<include name="struts-logic.tld"/>
</webinf>
<webinf dir="${java}/com/topcoder/web/codinginterface/longcontest/view/">
<include name="tags/*.tag"/>
</webinf>
<webinf dir="${resources}/longcontest">
<include name="jboss-web.xml"/>
</webinf>
<lib dir="${struts.dir}">
<include name="*.jar"/>
</lib>
<lib dir="${jars.dir}">
<include name="jstl.jar"/>
<include name="standard.jar"/>
<include name="tc.jar"/>
<include name="TestServices.jar"/>
<include name="asyncservices.jar"/>
<include name="jedis-2.8.1.jar" />
<include name="commons-pool2-2.4.2.jar" />
</lib>
<lib dir="${bin}">
<include name="tcwebcommon.jar"/>
<!-- having it both here and in the jboss lib is causing problem. when we do this an an ear, we should get down to just one
copy in the classpath
<include name="shared.jar"/>
-->
</lib>
<lib dir="${jars.dir}//tcs/tc_cache/1.0.0">
<include name="tc_cache.jar"/>
</lib>
<lib dir="${external.jars.dir}">
<include name="object_formatter-1.0.jar"/>
</lib>
<!-- not necessary if we're deploying security app in the same jboss instance
<lib dir="${ejb_jars}">
<include name="security.jar"/>
</lib>
-->
<fileset dir="${java}/com/topcoder/web/codinginterface/longcontest/view">
<include name="**/*.jsp"/>
</fileset>
<fileset dir="${java}/com/topcoder/web/jsp">
<include name="*.jsp"/>
<include name="includes/**/*.jsp"/>
</fileset>
</war>
</target>
<target name="build" depends="war,build-security">
<antcall target="package-EJB-RoundRegistrationBean"/>
<ant antfile="build_tc.xml" target="package-EJB-CoderBean"/>
<ant antfile="build_tc.xml" target="package-EJB-UserBean"/>
<ant antfile="build_tc.xml" target="package-EJB-EmailBean"/>
</target>
<target name="deploy" depends="build">
<antcall target="expand"/>
</target>
<target name="expand">
<!-- copy the libs -->
<copy todir="${jboss_lib}" file="${jars.dir}/ifxjdbc.jar"/>
<!-- these jars are needed by the ejb's. really we should build a web app that contains these libs -->
<copy todir="${jboss_lib}" file="${shared.jar}"/>
<copy todir="${jboss_lib}" file="${common.jar}"/>
<copy todir="${jboss_lib}" file="${tccache.jar}"/>
<copy todir="${jboss_lib}" file="${jars.dir}/jedis-2.8.1.jar" />
<copy todir="${jboss_lib}" file="${jars.dir}/commons-pool2-2.4.2.jar" />
<copy todir="${jboss_lib}" file="${external.jars.dir}/id_generator-3.0.0.jar"/>
<copy todir="${jboss_lib}" file="${external.jars.dir}/base_exception-2.0.0.jar"/>
<copy todir="${jboss_lib}" file="${jars.dir}/jackson/1.9.7/jackson-core-asl.jar"/>
<copy todir="${jboss_lib}" file="${jars.dir}/jackson/1.9.7/jackson-mapper-asl.jar"/>
<copy todir="${jboss_lib}" file="${jars.dir}/json-lib-2.3-jdk15.jar"/>
<!-- copy the config -->
<copy todir="${jboss_conf}" file="${resources}/cache.properties"/>
<copy todir="${jboss_conf}" file="${resources}/ApplicationServer.properties"/>
<copy todir="${jboss_conf}" file="${resources}/DBMS.properties"/>
<copy todir="${jboss_conf}" file="${resources}/DataAccess.properties"/>
<copy todir="${jboss_conf}/com/topcoder/security/" file="${resources}/com/topcoder/security/Util.properties"/>
<copy todir="${jboss_conf}/com/topcoder/util/config/"
file="${resources}/com/topcoder/util/config/ConfigManager.properties"/>
<copy todir="${jboss_conf}" file="${resources}/LongContest.properties"/>
<copy todir="${jboss_conf}" file="${resources}/problem.xsd"/>
<copy todir="${jboss_conf}" file="${resources}/ProblemParser.properties"/>
<copy todir="${jboss_conf}" file="${resources}/Problem.properties"/>
<copy todir="${jboss_conf}" file="${resources}/twitter4j.properties"/>
<copy todir="${jboss_deploy}">
<fileset dir="${ejb_jars}">
<include name="RoundRegistration.jar"/>
<include name="User.jar"/>
<include name="Coder.jar"/>
<include name="Email.jar"/>
</fileset>
</copy>
<copy todir="${jboss_deploy}" file="${ear.dir}/security.ear"/>
<unwar src="${war.dir}/longcontest.war" dest="${jboss_deploy}/longcontest.war/"
overwrite="yes"/>
<delete dir="${jboss_deploy}/longcontest.war/META-INF"/>
</target>
</project>