-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.xml
374 lines (310 loc) · 14.6 KB
/
build.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
<project name="GUS" basedir=".">
<!-- oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo -->
<!-- oooooooooooooooooooooooooo Dependencies oooooooooooooooooooooooooo -->
<!-- oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo -->
<!--| Note: Imports are not used here because in some project groups, the full
-| GUS_Installation target is not required. ant parses the depends
-| targets up front, so if GusSchema is not required and thus is not
-| present, the build will fail. Using the explicit calls below, callers
-| can call individual GUS component builds without including GusSchema -->
<target name="CBIL-Installation">
<ant antfile="../CBIL/build.xml" target="CBIL-Installation">
<property name="project" value="CBIL" />
</ant>
</target>
<target name="GusSchema-Installation">
<ant antfile="../GusSchema/build.xml" target="GusSchema-Installation">
<property name="project" value="GusSchema" />
</ant>
</target>
<!-- oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo -->
<!-- oooooooooooooooooooooooooo Installation oooooooooooooooooooooooooo -->
<!-- oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo -->
<target name="GUS-Installation" depends="CBIL-Installation,
GUS/Supported-Installation,
GUS/Community-Installation,
GUS/DBAdmin-Installation,
GUS/GOPredict-Installation,
GusSchema-Installation,
GUS/Model-Installation,
GUS/ObjRelP-Installation,
GUS/Pipeline-Installation,
GUS/PluginMgr-Installation,
GUS/ReportMaker-Installation">
<ant target="defaultProjectInstall">
<property name="project" value="GUS" />
</ant>
</target>
<!-- ooooooooooooooooooooooo Install Components ooooooooooooooooooooooo -->
<target name="GUS/Supported-Installation">
<ant target="defaultComponentInstall">
<property name="project" value="GUS" />
<property name="component" value="Supported" />
</ant>
</target>
<target name="GUS/Community-Installation">
<ant target="defaultComponentInstall">
<property name="project" value="GUS" />
<property name="component" value="Community" />
</ant>
</target>
<target name="GUS/DBAdmin-Installation">
<ant target="defaultComponentInstall">
<property name="project" value="GUS" />
<property name="component" value="DBAdmin" />
</ant>
<ant target="installOracleDriver" />
</target>
<target name="GUS/GOPredict-Installation">
<ant target="defaultComponentInstall">
<property name="project" value="GUS" />
<property name="component" value="GOPredict" />
</ant>
</target>
<target name="GUS/Model-Installation" depends="PerlModel">
<ant target="defaultComponentInstall">
<property name="project" value="GUS" />
<property name="component" value="Model" />
</ant>
</target>
<target name="JavaModel" depends="checkJavaObjects,
javaGeneratedModel,
javaManuallyEditedModel">
<echo message="Starting target: JavaModel" />
</target>
<target name="PerlModel" depends="checkPerlObjects,
perlGeneratedModel,
perlManuallyEditedModel" />
<target name="javaGeneratedModel" unless="javaObjectsAlreadyGenerated"
depends="GUS/ObjRelJ-Installation">
<echo message="starting target: javaGeneratedModel" />
<mkdir dir="${projectsDir}/GUS/Model/src/java/org/gusdb/model/Core" />
<mkdir dir="${projectsDir}/GUS/Model/src/java/org/gusdb/model/DoTS" />
<mkdir dir="${projectsDir}/GUS/Model/src/java/org/gusdb/model/SRes" />
<mkdir dir="${projectsDir}/GUS/Model/src/java/org/gusdb/model/TESS" />
<mkdir dir="${projectsDir}/GUS/Model/src/java/org/gusdb/model/Study" />
<mkdir dir="${projectsDir}/GUS/Model/src/java/org/gusdb/model/PROT" />
<delete>
<fileset dir="${projectsDir}/GUS/Model/src/java/org/gusdb/model/Core"
includes="*.java, *.class" />
<fileset dir="${projectsDir}/GUS/Model/src/java/org/gusdb/model/DoTS"
includes="*.java, *.class" />
<fileset dir="${projectsDir}/GUS/Model/src/java/org/gusdb/model/SRes"
includes="*.java, *.class" />
<fileset dir="${projectsDir}/GUS/Model/src/java/org/gusdb/model/TESS"
includes="*.java, *.class" />
<fileset dir="${projectsDir}/GUS/Model/src/java/org/gusdb/model/Study"
includes="*.java, *.class" />
<fileset dir="${projectsDir}/GUS/Model/src/java/org/gusdb/model/PROT"
includes="*.java, *.class" />
</delete>
<echo message="generating java objects" />
<exec executable="generateGusObjects"
failonerror="true">
<arg value="--javaOrPerl=java" />
</exec>
</target>
<target name="javaManuallyEditedModel">
<mkdir dir="${projectsDir}/GUS/Model/src/java/org/gusdb/model/hand_edited/Core" />
<mkdir dir="${projectsDir}/GUS/Model/src/java/org/gusdb/model/hand_edited/DoTS" />
<mkdir dir="${projectsDir}/GUS/Model/src/java/org/gusdb/model/hand_edited/SRes" />
<mkdir dir="${projectsDir}/GUS/Model/src/java/org/gusdb/model/hand_edited/TESS" />
<mkdir dir="${projectsDir}/GUS/Model/src/java/org/gusdb/model/hand_edited/Study" />
<mkdir dir="${projectsDir}/GUS/Model/src/java/org/gusdb/model/hand_edited/PROT" />
<copy todir="${projectsDir}/GUS/Model/src/java/org/gusdb/model/DoTS"
overwrite="true">
<fileset
dir="${projectsDir}/GUS/Model/src/java/org/gusdb/model/hand_edited/DoTS" />
<mapper type="glob" from="*.java.man" to="*.java" />
</copy>
<copy todir="${projectsDir}/GUS/Model/src/java/org/gusdb/model/SRes"
overwrite="true">
<fileset
dir="${projectsDir}/GUS/Model/src/java/org/gusdb/model/hand_edited/SRes" />
<mapper type="glob" from="*.java.man" to="*.java" />
</copy>
<copy todir="${projectsDir}/GUS/Model/src/java/org/gusdb/model/Core"
overwrite="true">
<fileset
dir="${projectsDir}/GUS/Model/src/java/org/gusdb/model/hand_edited/Core" />
<mapper type="glob" from="*.java.man" to="*.java" />
</copy>
<copy todir="${projectsDir}/GUS/Model/src/java/org/gusdb/model/TESS"
overwrite="true">
<fileset
dir="${projectsDir}/GUS/Model/src/java/org/gusdb/model/hand_edited/TESS" />
<mapper type="glob" from="*.java.man" to="*.java" />
</copy>
<copy todir="${projectsDir}/GUS/Model/src/java/org/gusdb/model/PROT"
overwrite="true">
<fileset
dir="${projectsDir}/GUS/Model/src/java/org/gusdb/model/hand_edited/PROT" />
<mapper type="glob" from="*.java.man" to="*.java" />
</copy>
<copy todir="${projectsDir}/GUS/Model/src/java/org/gusdb/model/Study"
overwrite="true">
<fileset
dir="${projectsDir}/GUS/Model/src/java/org/gusdb/model/hand_edited/Study" />
<mapper type="glob" from="*.java.man" to="*.java" />
</copy>
</target>
<target name="perlGeneratedModel" unless="perlObjectsAlreadyGenerated"
depends="GUS/ObjRelP-Installation">
<mkdir dir="${projectsDir}/GUS/Model/lib/perl/Core" />
<mkdir dir="${projectsDir}/GUS/Model/lib/perl/DoTS" />
<mkdir dir="${projectsDir}/GUS/Model/lib/perl/SRes" />
<mkdir dir="${projectsDir}/GUS/Model/lib/perl/TESS" />
<mkdir dir="${projectsDir}/GUS/Model/lib/perl/PROT" />
<mkdir dir="${projectsDir}/GUS/Model/lib/perl/Study" />
<mkdir dir="${targetDir}/lib/perl/GUS/Model/Core" />
<mkdir dir="${targetDir}/lib/perl/GUS/Model/DoTS" />
<mkdir dir="${targetDir}/lib/perl/GUS/Model/SRes" />
<mkdir dir="${targetDir}/lib/perl/GUS/Model/TESS" />
<mkdir dir="${targetDir}/lib/perl/GUS/Model/PROT" />
<mkdir dir="${targetDir}/lib/perl/GUS/Model/Study" />
<delete>
<fileset dir="${projectsDir}/GUS/Model/lib/perl/Core" includes="*.pm" />
<fileset dir="${projectsDir}/GUS/Model/lib/perl/DoTS" includes="*.pm" />
<fileset dir="${projectsDir}/GUS/Model/lib/perl/SRes" includes="*.pm" />
<fileset dir="${projectsDir}/GUS/Model/lib/perl/TESS" includes="*.pm" />
<fileset dir="${projectsDir}/GUS/Model/lib/perl/Study" includes="*.pm" />
<fileset dir="${projectsDir}/GUS/Model/lib/perl/PROT" includes="*.pm" />
<fileset dir="${targetDir}/lib/perl/GUS/Model/Core" includes="*.pm" />
<fileset dir="${targetDir}/lib/perl/GUS/Model/DoTS" includes="*.pm" />
<fileset dir="${targetDir}/lib/perl/GUS/Model/SRes" includes="*.pm" />
<fileset dir="${targetDir}/lib/perl/GUS/Model/TESS" includes="*.pm" />
<fileset dir="${targetDir}/lib/perl/GUS/Model/PROT" includes="*.pm" />
<fileset dir="${targetDir}/lib/perl/GUS/Model/Study" includes="*.pm" />
</delete>
<echo message="generating Perl Objects" />
<exec executable="generateGusObjects"
failonerror="true">
<arg value="--javaOrPerl=perl" />
</exec>
</target>
<target name="perlManuallyEditedModel" depends="GUS/ObjRelP-Installation">
<mkdir dir="${projectsDir}/GUS/Model/lib/perl/Core" />
<mkdir dir="${projectsDir}/GUS/Model/lib/perl/DoTS" />
<mkdir dir="${projectsDir}/GUS/Model/lib/perl/SRes" />
<mkdir dir="${projectsDir}/GUS/Model/lib/perl/TESS" />
<mkdir dir="${projectsDir}/GUS/Model/lib/perl/Study" />
<mkdir dir="${projectsDir}/GUS/Model/lib/perl/PROT" />
<copy todir="${projectsDir}/GUS/Model/lib/perl/Core">
<fileset dir="${projectsDir}/GUS/Model/lib/perl/Core" />
<mapper type="glob" from="*.pm.man" to="*.pm" />
</copy>
<copy todir="${projectsDir}/GUS/Model/lib/perl/DoTS">
<fileset dir="${projectsDir}/GUS/Model/lib/perl/DoTS" />
<mapper type="glob" from="*.pm.man" to="*.pm" />
</copy>
<copy todir="${projectsDir}/GUS/Model/lib/perl/SRes">
<fileset dir="${projectsDir}/GUS/Model/lib/perl/SRes" />
<mapper type="glob" from="*.pm.man" to="*.pm" />
</copy>
<copy todir="${projectsDir}/GUS/Model/lib/perl/TESS">
<fileset dir="${projectsDir}/GUS/Model/lib/perl/TESS" />
<mapper type="glob" from="*.pm.man" to="*.pm" />
</copy>
<copy todir="${projectsDir}/GUS/Model/lib/perl/PROT">
<fileset dir="${projectsDir}/GUS/Model/lib/perl/PROT" />
<mapper type="glob" from="*.pm.man" to="*.pm" />
</copy>
<copy todir="${projectsDir}/GUS/Model/lib/perl/Study">
<fileset dir="${projectsDir}/GUS/Model/lib/perl/Study" />
<mapper type="glob" from="*.pm.man" to="*.pm" />
</copy>
</target>
<target name="checkPerlObjects">
<uptodate property="perlObjectsAlreadyGenerated"
targetfile="${projectsDir}/GUS/Model/lib/perl/generated">
<srcfiles dir="${projectsDir}/GusSchema/Definition/config"
includes="gus_schema.xml" />
<srcfiles dir="${projectsDir}/GUS/Model/data"
includes="modelSpecialCases.txt" />
</uptodate>
</target>
<target name="checkJavaObjects">
<uptodate property="javaObjectsAlreadyGenerated"
targetfile="${projectsDir}/GUS/Model/src/java/org/gusdb/model/generated">
<srcfiles dir="${projectsDir}/GusSchema/Definition/config"
includes="gus_schema.xml" />
<srcfiles dir="${projectsDir}/GUS/Model/data"
includes="modelSpecialCases.txt" />
</uptodate>
</target>
<target name="GUS/ObjRelP-Installation">
<ant target="defaultComponentInstall">
<property name="project" value="GUS" />
<property name="component" value="ObjRelP" />
</ant>
<!-- Hack to do replace immediately after ObjRelP is installed -->
<!-- so objects can be generated without breaking -->
<replace dir="${targetDir}/bin"
propertyFile="${targetDir}/config/gus.config">
<include name="**/*" />
<replacefilter token="@perl@" property="perl" />
</replace>
<!-- because the replace task clobbers permissions. see ant bug #5661 -->
<chmod perm="+x">
<fileset dir="${targetDir}/bin" />
</chmod>
</target>
<target name="GUS/ObjRelJ-Installation">
<!-- was doing rmic compiling here, but for the time being, not necessary -->
<ant target="defaultComponentInstall">
<property name="project" value="GUS" />
<property name="component" value="ObjRelJ" />
</ant>
</target>
<target name="GUS/ObjRelJ-RMIC" unless="skipJavaCompiling">
<rmic base="${projectsDir}/GUS/ObjRelJ/src/java"
classname="org.gusdb.objrelj.RemoteJDBCServer">
<classpath>
<fileset dir="${targetDir}/lib/java/">
<include name="*.jar" />
</fileset>
</classpath>
</rmic>
<rmic base="${projectsDir}/GUS/ObjRelJ/src/java"
classname="org.gusdb.objrelj.RemoteDatabaseConnection">
<classpath>
<fileset dir="${targetDir}/lib/java/">
<include name="*.jar" />
</fileset>
</classpath>
</rmic>
<move todir="${projectsDir}/GUS/ObjRelJ/classes/org/gusdb/objrelj">
<fileset dir="${projectsDir}/GUS/ObjRelJ/src/java/org/gusdb/objrelj">
<include name="*.class" />
</fileset>
</move>
</target>
<target name="GUS/Pipeline-Installation">
<ant target="defaultComponentInstall">
<property name="project" value="GUS" />
<property name="component" value="Pipeline" />
</ant>
</target>
<target name="GUS/PluginMgr-Installation" depends="GUS/ObjRelP-Installation">
<ant target="defaultComponentInstall">
<property name="project" value="GUS" />
<property name="component" value="PluginMgr" />
</ant>
</target>
<target name="GUS/ReportMaker-Installation">
<ant target="defaultComponentInstall">
<property name="project" value="GUS" />
<property name="component" value="ReportMaker" />
</ant>
</target>
<!-- oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo -->
<!-- oooooooooooooooooooooooo Web Installation oooooooooooooooooooooooo -->
<!-- oooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooo -->
<target name="GUS-WebInstallation" depends="GUS/DBAdmin-WebInstallation" />
<target name="GUS/DBAdmin-WebInstallation">
<ant target="defaultWebComponentInstall">
<property name="project" value="GUS" />
<property name="component" value="DBAdmin" />
</ant>
</target>
</project>