-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
615 lines (519 loc) · 21.9 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
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
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
<?xml version = "1.0" encoding = "utf-8"?>
<project name = "Web Protege Build File" default = "tomcat" basedir = ".">
<property file="local.properties"/>
<property environment="env"/>
<property name="protege.home" location = "${env.PROTEGE_HOME}"/>
<property name="catalina.home" location = "${env.CATALINA_HOME}"/>
<property name="hosted.memory" location = "3G"/>
<property name="war.name" value = "webprotege"/>
<property name="server.dir" location = "./war"/>
<property name="server.metaproject" location = "./war/projects/metaproject/metaproject.pprj"/>
<property name="wp.projects" location = "./war/projects"/>
<property name="wp.user" value = "webprotege"/>
<property name="wp.password" value = "webprotege"/>
<!--<taskdef name="junit" classname="org.apache" classpath="${gwt.dir}/gwt-dev.jar"/>-->
<property name = "src" location = "./src"/>
<property name = "test-src" location = "./test"/>
<property name = "war.template" location = "./war"/>
<property name = "lib" location = "${war.template}/WEB-INF/lib"/>
<property name = "test.lib" location = "test-lib"/>
<property name = "etc" location = "./etc"/>
<property name = "jetty-base-files" location = "${etc}/jetty-base-files"/>
<property name = "build" location = "./build"/>
<property name = "war" location = "${build}/war"/>
<property name = "classes" location = "${build}/classes"/>
<property name = "test-classes" location = "${build}/test-classes"/>
<property name = "owl.path" value = "edu.stanford.smi.protegex.owl"/>
<property name = "test-results" location = "${build}/test-results"/>
<property name = "gwt-temp" location = "${build}/gwt-temp"/>
<property name = "dev-mode-reports" location = "${build}/reports/htmlunit.dev"/>
<path id = "test.classpath">
<fileset dir="${test.lib}"/>
<path refid = "project.classpath"/>
<pathelement location="${classes}"/>
</path>
<!--
# ********** Finding Protege Libraries. *************
-->
<target name="checkProtegeHome">
<condition property="protege.home.set">
<available file="${protege.home}/protege.jar" type="file"/>
</condition>
</target>
<target name="useProtegeHome" depends="checkProtegeHome" if="protege.home.set">
<echo message="Using Protege Home = ${protege.home} to find protege jars"/>
<property name="protege.lib" location="${protege.home}/protege.jar"/>
<property name="protege.owl.lib" location="${protege.home}/plugins/${owl.path}/protege-owl.jar"/>
<property name="changes.lib" location="${protege.home}/plugins/edu.stanford.smi.protegex.changes/change-management.jar"/>
<property name="chat.lib" location="${protege.home}/plugins/edu.stanford.smi.protegex.chatPlugin/chat.jar"/>
<property name="collab.lib" location="${protege.home}/plugins/edu.stanford.smi.protege.collab/protege-collab.jar"/>
<property name="rdf.lib" location="${protege.home}/plugins/edu.stanford.smi.protegex.rdf_backend/rdf-backend.jar"/>
<property name="standard.lib" location="${protege.home}/plugins/edu.stanford.smi.protegex.standard_extensions/standard-extensions.jar"/>
<property name="bioportal1.lib" location="${protege.home}/plugins/edu.stanford.bmir.protegex.bp.ref/bioportalReference.jar"/>
<property name="bioportal2.lib" location="${protege.home}/plugins/edu.stanford.bmir.protegex.bp.ref/bioportal-services-lib.jar"/>
<property name="lucene1.lib" location="${protege.home}/plugins/edu.stanford.smi.protegex.query.lucene/luceneQueryPlugin.jar"/>
<property name="lucene2.lib" location="${protege.home}/plugins/edu.stanford.smi.protegex.query.lucene/lucene-core.jar"/>
<property name="icd.lib" location="${protege.home}/plugins/edu.stanford.bmir.icd.misc/icd.jar"/>
</target>
<target name = "checkProtegeLibs" depends="useProtegeHome">
<condition property="libs.found">
<and>
<available file="${protege.lib}" type = "file"/>
<available file="${protege.owl.lib}" type = "file"/>
<available file="${changes.lib}" type = "file"/>
<available file="${chat.lib}" type = "file"/>
<available file="${collab.lib}" type = "file"/>
<available file="${rdf.lib}" type = "file"/>
<available file="${standard.lib}" type = "file"/>
<available file="${gwt.dir}/gwt-user.jar" type = "file"/>
<available file="${gwt.dir}/gwt-dev.jar" type = "file"/>
<available file="${bioportal1.lib}" type = "file"/>
<available file="${bioportal2.lib}" type = "file"/>
<available file="${lucene1.lib}" type = "file"/>
<available file="${lucene2.lib}" type = "file"/>
<available file="${icd.lib}" type = "file"/>
</and>
</condition>
<path id = "project.classpath">
<pathelement location = "${protege.lib}"/>
<pathelement location = "${protege.owl.lib}"/>
<pathelement location="${changes.lib}"/>
<pathelement location="${chat.lib}"/>
<pathelement location="${collab.lib}"/>
<pathelement location="${rdf.lib}"/>
<pathelement location="${standard.lib}"/>
<pathelement location="${gwt.dir}/gwt-user.jar"/>
<pathelement location="${gwt.dir}/gwt-dev.jar"/>
<pathelement location="${gwt.dir}/validation-api-1.0.0.GA.jar"/>
<pathelement location="${gwt.dir}/validation-api-1.0.0.GA-sources.jar"/>
<pathelement location="${bioportal1.lib}"/>
<pathelement location="${bioportal2.lib}"/>
<pathelement location="${lucene1.lib}"/>
<pathelement location="${lucene2.lib}"/>
<pathelement location="${icd.lib}"/>
<fileset dir="${lib}"/>
</path>
</target>
<target name="checkProtegeLibsAndReport" depends="checkProtegeLibs"
unless="libs.found">
<echo message="Missing protege or gwt libraries. See the readme.txt"/>
<echo message="for the location of the gwt libraries and update the"/>
<echo message="local.properties file to point to these locations."/>
<echo message="You also need to set the PROTEGE_HOME environment variable to an"/>
<echo message="protege installation directory where the"/>
<echo message="appropriate plugins have been installed."/>
<echo message="Use the -v option to ant to see what jars are missing."/>
<fail message = "missing protege libraries"/>
</target>
<!--
# ********** Finding Protege Libraries Done. *************
-->
<!--
# ********** Initialization and staging *************
-->
<target name = "init">
<tstamp>
<format property="build.time" pattern="MM/dd/yyyy hh:mm aa"/>
</tstamp>
<mkdir dir = "${build}"/>
<mkdir dir = "${classes}"/>
<condition property="set.if.use.server">
<istrue value="${use.server}"/>
</condition>
<condition property="set.if.deploy.in.root">
<equals arg1="${deploy.in.root}" arg2="true"/>
</condition>
<available property="alt.war.template.exists"
file="${alt.war.template}"
type="dir"/>
<available property="alt.projects.template.exists"
file="${alt.war.template}/projects"
type="dir"/>
</target>
<!--
Workaround for gwt eclipse plugin bug.
It appears that the gwt eclipse plugin writes some files to
the ./war area. These files are dropped from the copy to
ensure a consistent and predictable build. This could cause
trouble later if someone commits some of these files and
they don't get installed.
-->
<target name = "copy.war" depends="checkProtegeLibsAndReport, init">
<mkdir dir = "${war}"/>
<copy todir="${war}">
<fileset dir="${war.template}">
<exclude name="webprotege/**"/>
<exclude name="webprotege"/>
<exclude name="authenticate/**"/>
<exclude name="authenticate"/>
<exclude name="WEB-INF/classes/**"/>
<exclude name="WEB-INF/classes"/>
<exclude name="WEB-INF/deploy/**"/>
<exclude name="WEB-INF/deploy"/>
<exclude name="WEB-INF/lib/gwt-servlet.jar"/>
</fileset>
</copy>
</target>
<target name = "stage.war" depends="copy.war">
<!-- Protege dependencies -->
<copy todir = "${war}/WEB-INF/lib">
<!-- protege-core -->
<fileset dir = "${protege.home}" includes = "looks-2.1.3.jar, unicode_panel.jar"/>
<!-- protege-owl -->
<fileset dir = "${protege.home}/plugins/${owl.path}"
includes = "**/*.jar"
excludes = "ekitspell.jar, json.jar, junit.jar, kazuki.jar, lucene-core-2.3.1.jar, swrl-jess-bridge.jar, commons-lang-2.0.jar, log4j-1.2.12.jar"/>
<fileset dir = "${protege.home}/plugins/edu.stanford.smi.protegex.rdf_backend"
includes = "**/*.jar"
excludes = "xerces.jar"/>
<fileset dir = "${protege.home}/plugins/edu.stanford.bmir.protegex.bp.ref"
includes = "**/*.jar"
excludes="**/xpp*.jar,**/xstream*.jar"/>
<fileset dir = "${protege.home}/plugins/edu.stanford.smi.protegex.query.lucene"
includes = "**/*.jar"
excludes="**/phonetix*.jar,**/xstream*.jar"/>
</copy>
<copy todir = "${war}/WEB-INF/lib" file="${protege.lib}"/>
<copy todir = "${war}/WEB-INF/lib" file="${changes.lib}"/>
<copy todir = "${war}/WEB-INF/lib" file="${chat.lib}"/>
<copy todir = "${war}/WEB-INF/lib" file="${collab.lib}"/>
<copy todir = "${war}/WEB-INF/lib" file="${standard.lib}"/>
<copy todir = "${war}/WEB-INF/lib" file="${icd.lib}"/>
<antcall target="replace.projects"/>
<antcall target="copy.alt.war.template"/>
</target>
<target name="replace.projects" if="alt.projects.template.exists">
<delete dir="${war}/projects"/>
</target>
<target name="copy.alt.war.template" if="alt.war.template.exists">
<copy todir="${war}" overwrite="true">
<fileset dir="${alt.war.template}"/>
</copy>
</target>
<!--
# ********** Compilation *************
-->
<target name = "compile" depends = "init, checkProtegeLibsAndReport">
<javac srcdir = "${src}"
destdir = "${classes}"
debug="on"
includeAntRuntime="false"
source="1.8">
<classpath refid = "project.classpath"/>
</javac>
<copy todir="${classes}">
<fileset dir="${src}">
<include name="**/*"/>
<exclude name="**/*.java"/>
<exclude name="**/MANIFEST.MF"/>
<exclude name="**/manifest.mf"/>
</fileset>
</copy>
</target>
<target name="webprotege.lib" depends="stage.war, compile">
<jar file="${war}/WEB-INF/lib/webprotege-lib.jar" basedir="${classes}"/>
</target>
<target name = "check.js.compiled">
<uptodate property="js.up.to.date"
targetfile="${war}/BUILT">
<srcfiles dir="${src}"/>
</uptodate>
</target>
<target name = "compile.js"
depends = "compile,check.js.compiled, stage.war"
unless = "js.up.to.date">
<!-- Must use fork="true" here. If not, GWTCompiler fails with
"No source path entries; expect subsequent failures".
No explanation is given in forums about why adding this
attribute solves errors. See thread on GWT forum:
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/086d288e06aba18b
-->
<java classname = "com.google.gwt.dev.Compiler"
fork = "true"
maxmemory = "1500M">
<classpath>
<path refid="project.classpath"/>
<pathelement path="${classes}"/>
<pathelement path="${src}"/>
</classpath>
<jvmarg value="-Xss100M"/>
<arg line = "-war"/>
<arg line = "${war}"/>
<arg line = "-style"/>
<arg line = "OBF"/>
<arg line = "-logLevel"/>
<arg line = "INFO"/>
<arg value = "${gwt.xml.target}"/>
<arg value = "${gwt.xml.target.authenticate}"/>
</java>
<touch file="${war}/BUILT"/>
<antcall target="copy.rpc.in.war" />
</target>
<target name = "compile.draft.js"
depends = "compile,check.js.compiled, stage.war"
unless = "js.up.to.date">
<!-- Must use fork="true" here. If not, GWTCompiler fails with
"No source path entries; expect subsequent failures".
No explanation is given in forums about why adding this
attribute solves errors. See thread on GWT forum:
http://groups.google.com/group/Google-Web-Toolkit/browse_thread/thread/086d288e06aba18b
-->
<java classname = "com.google.gwt.dev.Compiler"
fork = "true"
maxmemory = "1500M">
<classpath>
<path refid="project.classpath"/>
<pathelement path="${classes}"/>
<pathelement path="${src}"/>
</classpath>
<jvmarg value="-Xss100M"/>
<arg line="-draftCompile" />
<arg line="-strict" />
<arg line = "-incremental"/>
<arg line = "-localWorkers"/>
<arg line = "2" />
<arg line = "-war"/>
<arg line = "${war}"/>
<arg line = "-style"/>
<arg line = "OBF"/>
<arg line = "-logLevel"/>
<arg line = "INFO"/>
<arg value = "${gwt.xml.target}"/>
<arg value = "${gwt.xml.target.authenticate}"/>
</java>
<touch file="${war}/BUILT"/>
<antcall target="copy.rpc.in.war" />
</target>
<target name="copy.rpc.in.war" if="set.if.deploy.in.root">
<echo message="Copying the rpc files in war (workaround for GWT + proxy bug)"/>
<copy todir="${war}">
<fileset dir="${war}/${gwt.module}">
<include name="**/*.rpc"/>
</fileset>
</copy>
</target>
<!--
# ********** Tomcat *************
-->
<target name = "tomcat" depends="webprotege.lib,compile.js">
<delete file="${war}/WEB-INF/lib/gwt-user.jar"/>
<copy file="${gwt.dir}/gwt-servlet.jar"
todir="${war}/WEB-INF/lib"/>
<war destfile="${build}/${war.name}.war"
basedir = "${war}" />
</target>
<target name = "tomcat.dev" depends="webprotege.lib,compile.draft.js">
<delete file="${war}/WEB-INF/lib/gwt-user.jar"/>
<copy file="${gwt.dir}/gwt-servlet.jar"
todir="${war}/WEB-INF/lib"/>
<war destfile="${build}/${war.name}.war"
basedir = "${war}" />
</target>
<target name = "deploy" depends="tomcat">
<delete dir = "${catalina.home}/webapps/${war.name}"/>
<copy tofile="${catalina.home}/webapps/${war.name}.war"
file="${build}/${war.name}.war"/>
</target>
<target name = "update" depends="webprotege.lib, compile.js">
<copy todir="${catalina.home}/webapps/${war.name}">
<fileset dir="${war}">
<exclude name="projectConfigurations/*"/>
<exclude name="projects/**"/>
<exclude name="WEB-INF/web.xml"/>
</fileset>
</copy>
</target>
<!--
# ********** Running *************
-->
<target name="run.server">
<java fork="true" dir="${server.dir}"
maxmemory="${server.memory}"
classname="edu.stanford.smi.protege.server.Server">
<classpath>
<pathelement path="${protege.home}/protege.jar"/>
<pathelement path="${protege.home}/looks-2.1.3.jar"/>
<pathelement path="${protege.home}/unicode_panel.jar"/>
<fileset dir="${protege.home}" includes="driver*.jar"/>
</classpath>
<jvmarg value="-agentlib:jdwp=transport=dt_socket,address=8200,server=y,suspend=n"/>
<jvmarg value="-Dprotege.rmi.registry.port=${server.rmi.port}"/>
<jvmarg value="-Dprotege.rmi.server.port=${server.port}"/>
<jvmarg value="-Dprotege.dir=${protege.home}"/>
<jvmarg value="-Djava.awt.headless=true"/>
<jvmarg value="-Djava.rmi.server.codebase=file:${protege.home}/protege.jar"/>
<jvmarg value="-Dlog4j.configuration=file:${protege.home}/log4j.xml"/>
<arg value="${server.metaproject}"/>
</java>
</target>
<target name = "hosted"
depends = "webprotege.lib,stage.war,compile.draft.js">
<copy todir="${war}/WEB-INF/lib" file="${gwt.dir}/gwt-user.jar"/>
<java classname = "com.google.gwt.dev.DevMode"
fork = "true" maxmemory = "${hosted.memory}"
dir="${war}">
<classpath>
<path refid="project.classpath"/>
<pathelement path="${classes}"/>
<pathelement path="${src}"/>
</classpath>
<jvmarg value="-agentlib:jdwp=transport=dt_socket,address=8100,server=y,suspend=n"/>
<jvmarg value = "-Dlog4j.configuration=file:${protege.home}/log4j.xml"/>
<jvmarg value = "${extra.hosted.jvm.arg}"/>
<arg value = "-war"/>
<arg value = "${war}"/>
<arg value = "${gwt.xml.target}"/>
<arg value = "-startupUrl"/>
<arg value = "${gwt.html.target}"/>
</java>
</target>
<target name = "hosted.wp"
depends = "webprotege.lib,stage.war,compile.draft.js">
<copy todir="${war}/WEB-INF/lib" file="${gwt.dir}/gwt-user.jar"/>
<java classname = "com.google.gwt.dev.DevMode"
fork = "true" maxmemory = "${hosted.memory}"
dir="${war}">
<classpath>
<path refid="project.classpath"/>
<pathelement path="${classes}"/>
<pathelement path="${src}"/>
</classpath>
<jvmarg value="-agentlib:jdwp=transport=dt_socket,address=8100,server=y,suspend=n"/>
<jvmarg value = "-Dlog4j.configuration=file:${protege.home}/log4j.xml"/>
<jvmarg value="-Dpython.home=${python.home}" />
<jvmarg value = "${extra.hosted.jvm.arg}"/>
<arg value = "-war"/>
<arg value = "${war}"/>
<arg value = "edu.stanford.bmir.protege.web.WebProtege"/>
<arg value = "-startupUrl"/>
<arg value = "${gwt.html.target}"/>
</java>
</target>
<target name = "hosted.ns"
depends = "webprotege.lib,stage.war,compile.draft.js">
<echo message="Running hosted.ns"/>
<copy todir="${war}/WEB-INF/lib" file="${gwt.dir}/gwt-user.jar"/>
<java classname = "com.google.gwt.dev.DevMode"
fork = "true" failonerror="true" maxmemory = "${hosted.memory}"
dir="${war}">
<classpath>
<path refid="project.classpath"/>
<pathelement path="${classes}"/>
<pathelement path="${src}"/>
<pathelement location="${gwt.dir}/gwt-codeserver.jar"/>
</classpath>
<jvmarg value = "-Dlog4j.configuration=file:${protege.home}/log4j.xml"/>
<!-- <jvmarg value="-Dpython.home=${python.home}" /> -->
<jvmarg value = "${extra.hosted.jvm.arg}"/>
<arg value = "-startupUrl"/>
<arg value = "${gwt.html.target}"/>
<arg value = "-war"/>
<arg value = "${war}"/>
<arg value = "-noserver"/>
<arg value = "${gwt.xml.target}" />
</java>
</target>
<target name = "hosted.ns.jetty">
<parallel>
<sequential>
<antcall target="hosted.ns" />
</sequential>
<sequential>
<antcall target="jetty.start" />
</sequential>
</parallel>
</target>
<!-- Jetty scripts used if running the hosted mode with an external Jetty server, such as hosted.wp.ns -->
<target name="jetty.copy.base.files">
<!-- copy all of war into jetty webabbs-->
<copy todir="${war}">
<fileset dir="${jetty-base-files}"/>
</copy>
</target>
<target name="jetty.start" depends="jetty.copy.base.files">
<echo message="Starting jetty in ${war}"/>
<java dir="${war}"
jar="${jetty.home}/start.jar"
fork="true"
failonerror="true"
maxmemory="${hosted.memory}">
<!-- <jvmarg value="-Dpython.home=${python.home}" /> -->
<jvmarg value="-Dicat.built.war=${war}" />
<jvmarg value="-agentlib:jdwp=transport=dt_socket,address=8100,server=y,suspend=n"/>
</java>
</target>
<!-- End Jetty targets -->
<!-- Test targets -->
<target name = "test.server" depends="compile,compile.tests">
<mkdir dir="${test-results}"/>
<echo message="${test-results}"/>
<junit fork="yes" >
<classpath refid="test.classpath"/>
<classpath location="${test-classes}"/>
<batchtest todir="${test-results}">
<fileset dir="test" includes="**/server/**/*Test.java" excludes="**/*PortletTest*"/>
<formatter type="plain" usefile="false"/>
</batchtest>
</junit>
</target>
<target name="compile.tests" depends="compile" description="Compiles test code">
<mkdir dir="${test-classes}"/>
<mkdir dir="${test-results}"/>
<property name="myclasspath" refid="test.classpath"/>
<echo message="classpath= ${myclasspath}"/>
<javac srcdir="test" includes="**" encoding="utf-8"
source="1.5" target="1.5" nowarn="true"
destdir="${test-classes}"
debug="true" debuglevel="lines,vars,source">
<classpath location="/home/jacke/Projects/who/test-lib/junit.jar"/>
<classpath refid="test.classpath"/>
</javac>
</target>
<target name="test.dev" depends="compile.tests" description="Run development mode tests">
<mkdir dir="${dev-mode-reports}" />
<copy todir="${gwt-temp}/edu.stanford.bmir.protege.web.WebProtegeTest.JUnit/js">
<fileset dir="${war.template}/js"/>
</copy>
<copy todir="${gwt-temp}/edu.stanford.bmir.protege.web.WebProtegeTest.JUnit/css">
<fileset dir="${war.template}/css"/>
</copy>
<junit fork="yes" printsummary="yes" haltonfailure="yes">
<jvmarg line="-Xmx256m" />
<sysproperty key="gwt.args" value="-standardsMode -logLevel WARN -out ${gwt-temp}" />
<sysproperty key="java.awt.headless" value="true" />
<classpath>
<pathelement location="${src}" />
<pathelement location="${test-src}" />
<pathelement location="${test-classes}" />
<path refid="project.classpath" />
<fileset dir="${test.lib}"/>
</classpath>
<batchtest todir="${dev-mode-reports}" >
<fileset dir="test" >
<include name="**/client/**/*Test.java" />
</fileset>
</batchtest>
<formatter type="plain" />
<formatter type="xml" />
</junit>
</target>
<!--
# ********** Usage *************
-->
<target name="usage">
<echo message="tomcat - makes a war file"/>
<echo message="deploy - makes a war file and deploys it to ${CATALINA_HOME}"/>
<echo message="hosted - runs web-protege in hosted mode with remote debug support"/>
<echo message="run.server - runs the protege server configured for web-protege"/>
<echo message="stage.war - makes a copy of the war directory in ./build/war"/>
<echo message="usage - prints a help message"/>
<echo message="clean - cleans the build directory"/>
</target>
<!--
# ********** Clean *************
-->
<target name = "clean">
<delete dir = "${build}"/>
<delete dir = "${gwt-temp}"/>
</target>
</project>