-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.xml
1667 lines (1466 loc) · 66.8 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
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!--
The contents of this file are subject to the THDL Open Community License
Version 1.0 (the "License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License on the THDL web site
(http://www.thdl.org/).
Software distributed under the License is distributed on an "AS IS" basis,
WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
License for the specific terms governing rights and limitations under the
License.
The Initial Developer of this software is the Tibetan and Himalayan Digital
Library (THDL). Portions created by the THDL are Copyright 2002-2003 THDL.
All Rights Reserved.
Contributor(s): ______________________________________.
-->
<!-- @author David Chandler, [email protected]
FAQ: Getting a java.lang.OutOfMemoryError? See
http://thdltools.sourceforge.net/BuildSystems.html#oom.
FIXME
Right now, the web-start-releases and self-contained-dist
targets hard-code the paths of the JARs/ZIPs they need. Be
sure you have yours in the right place.
FIXME
We have a document,
http://thdltools.sourceforge.net/BuildSystems.html, that
describes how to use this file to build Jskad, TiblEdit (TIBBIBL
editor), and the translation tool.
This build file is the main one, and it uses jwsbuild.xml for
building Java Web Start (JWS) releases. See the comments in that
file to learn why. Likewise with junitbuild.xml.
Quick start for the impatient: This buildfile looks for the
following, which are not in the CVS repository:
$ANT_HOME/lib/xalan.jar
$ANT_HOME/lib/xercesImpl.jar
$ANT_HOME/lib/xml-apis.jar
See the developers site, linked to from http://thdltools.sf.net/,
for info on where to find these. (You may be able to use Ant's
copies of some of them, if you really can't wait to get started.
Examine the contents of '$ANT_HOME/lib'.)
-->
<project name="ttt" default="dist" basedir=".">
<description>
This Jakarta Ant buildfile is used to build Jskad, TiblEdit
(TIBBIBL editor), and the Translation Tool. The docs at
http://thdltools.sf.net/api are created using this buildfile, for
example. Read the comments of this buildfile to learn more, or
see http://thdltools.sourceforge.net/BuildSystems.html.
</description>
<!--
To customize a property without having to commit something to CVS
(or feeling bothered by CVS), create the file build.properties in
the same directory as this file. It's a Java properties file, so
you have lines like 'this.property=that' in it.
-->
<property file="build.properties"/>
<!-- set global properties for this build -->
<property name="my.jar.suffix" value=""/>
<property name="javacdashg" value="yes"/>
<property name="source" location="source"/>
<property name="license" location="license"/>
<!-- 'ant clean' won't work well if ${jskadbin} and the other *bin aren't
subdirectories of ${bin}. -->
<property name="bin" location="bin"/>
<property name="jskadbin" location="bin/jskad"/>
<property name="converterguibin" location="bin/convertergui"/>
<property name="tibleditbin" location="bin/tibledit"/>
<property name="junitbin" location="bin/for-junit"/>
<property name="ttstandalonebin" location="bin/tt-standalone"/>
<property name="ttappletjwsbin" location="bin/tt-applet-and-java-web-start"/>
<property name="tthandheldbin" location="bin/tt-handheld"/>
<property name="ttservletbin" location="bin/tt-servlet"/>
<property name="uimabin" location="bin/uima-annotators"/>
<property name="uimadesc" location="config/uima/desc"/>
<property name="docs" location="docs"/>
<property name="dist" location="dist"/>
<property name="vanillalib" location="${dist}/lib-vanilla"/>
<property name="jwslib" location="${dist}/lib-jws"/>
<property name="lib" location="${vanillalib}"/>
<property name="ext" location="extensions"/>
<property name="publicjavadocs" location="${docs}/public-javadocs"/>
<property name="privatejavadocs" location="${docs}/private-javadocs"/>
<!-- Getting your nightly builds set up can take a long time.
Changing this to "jskad-jws" tests that you've got Vamp and your
keystore set up correctly if you use the dc-nightly-build
target. -->
<property name="dcnbt" value="nightly-build"/>
<!-- If you wish to have your Javadocs link to someplace other than
Sun's web site, maybe just changing these two, link.offline and
java.api.loc.url, will do the trick: -->
<property name="link.offline" value="false"/>
<property name="java.api.loc.url"
value="http://java.sun.com/j2se/1.4/docs/api/"/>
<property name="jnlp.codebase"
value="http://www.thdl.org/tools"/>
<property name="key.alias" value="David Germano"/>
<property name="keystore" value="file:///f:/thdl/Jskad/thawte/keystore"/>
<!-- If you have installed the J2EE SDK, then you can compile servlets.
Set this property to the directory containing j2ee.jar:
-->
<property name="j2ee.sdk.home" location="F:\Program Files\j2sdkee1.3.1\lib"/>
<property name="tomcat.servlet.jar"
location="d:\lenguaje\jakarta-tomcat-3.2.1\lib\servlet.jar"/>
<!-- Attributes used for debugging the servlet version of the translation tool within Netbeans IDE. Probably can be generalized -->
<property name="tt.debug.path"
location="webroot\WEB-INF\lib"/>
<property name="tt.debug.url"
value="http://localhost:8080/tibetan/"/>
<property name="tt.debug.jpda.host"
value="localhost"/>
<!-- If debugging by shared memory
<property name="tt.debug.jpda.address"
value="tomcat_shared_memory_id"/>
<property name="tt.debug.jpda.transport"
value="dt_shmem"/>-->
<!-- If debugging by socket. In order for this to work add the following options to
the jvm starting tomcat:
-Xdebug
-Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n -->
<property name="tt.debug.jpda.address"
value="8000"/>
<property name="tt.debug.jpda.transport"
value="dt_socket"/>
<!-- Set to true for more output when running the tools and if you
want the code to abort when it reaches poorly thought-out
control flow paths (i.e., iffy code).
-->
<property name="thdl.debug" value="true"/>
<!-- Compress nightlyBuild.zip? -->
<property name="compress.nightly.build" value="false"/>
<!-- Set to the name of the dictionary used by the Translation Tool: -->
<property name="arch.dict" value="architecture_dictionary"/>
<property name="target.jvm" value="11"/>
<property name="source.jvm" value="11"/>
<!-- Only the tt-servlet-compile target changes this. Humans
shouldn't mess with this. -->
<property name="our.javac.classpathref" value="entire.class.path"/>
<!-- Javadoc needs to find all classes, so you have to give it a megaclasspath: -->
<property name="javadocs.class.path.ref" value="all.extras.class.path"/>
<!-- To easily add a jar to the CLASSPATH, just drop it into
'extensions/drop-ins/'. -->
<path id="entire.class.path">
<pathelement location="${ext}/"/> <!-- for netscape.javascript and calpa.html -->
<!-- Developers: although these JARs are not yet in CVS, you're
responsible for finding them and putting them into
'extensions/': -->
<pathelement location="${ext}/jdom.jar"/>
<!-- jars needed for uima and solr -->
<pathelement location="${ext}/solr/solr-core-4.7.0.jar"/>
<pathelement location="${ext}/solr/solr-solrj-4.7.0.jar"/>
<pathelement location="${ext}/solr/lucene-core-4.7.0.jar"/>
<pathelement location="${ext}/solr/lucene-analyzers-common-4.7.0.jar"/>
<pathelement location="${ext}/crf/CRFPP.jar"/>
<pathelement location="${ext}/tt4j/org.annolab.tt4j-1.1.2-SNAPSHOT.jar"/>
<!-- this gets Ant's jars, so leave it out:
<pathelement path="${java.class.path}/"/> -->
<fileset dir="${ext}/drop-ins">
<include name="*.jar"/>
<include name="*.JAR"/>
<include name="*.zip"/>
<include name="*.ZIP"/>
</fileset>
<!-- Developers: set this on the ant command line if you need to
with 'ant -Dadditional.class.path="c:\foo"': -->
<pathelement path="${additional.class.path}"/>
</path>
<path id="all.extras.class.path">
<pathelement location="${j2ee.sdk.home}/j2ee.jar"/>
<pathelement location="${tomcat.servlet.jar}"/>
<path refid="entire.class.path"/>
</path>
<target name="init">
<!-- Create the time stamp -->
<tstamp/>
<!-- Create the build directory structure used by compile -->
<mkdir dir="${dist}/releases"/>
<mkdir dir="${dist}/docs"/>
<mkdir dir="${vanillalib}"/>
<mkdir dir="${jwslib}"/>
<mkdir dir="${lib}"/>
<mkdir dir="${dist}/java-web-start"/>
<mkdir dir="${dist}/source"/>
<mkdir dir="${publicjavadocs}"/>
<mkdir dir="${privatejavadocs}"/>
</target>
<target name="check-one"
description="Compiles and runs a single named JUnit test."
depends="compile-junit-tests">
<ant antfile="junitbuild.xml" target="run-one-junit-test"
inheritAll="false" inheritRefs="false">
<reference refid="entire.class.path"/>
<property name="soletest" value="${soletest}"/>
<property name="junitbin" value="${junitbin}"/>
</ant>
</target>
<!--
See http://thdltools.sourceforge.net/BuildSystems.html for full
details on unit testing our software. If you're eager enough
to get started, just read
extensions/to-be-installed-with-ant/README.TXT.
Just as with 'ant dist', it is wise to 'ant clean' before
running 'ant check'.
-->
<target name="check"
description="Compiles and runs all JUnit tests (that can be run given the present extension JARs) for the entire project. Our coverage is currently quite low."
depends="compile-junit-tests">
<ant antfile="junitbuild.xml" target="run-headed-junit-tests"
inheritAll="false" inheritRefs="false">
<reference refid="entire.class.path"/>
<property name="junitbin" value="${junitbin}"/>
</ant>
<ant antfile="junitbuild.xml" target="run-headless-junit-tests"
inheritAll="false" inheritRefs="false">
<reference refid="entire.class.path"/>
<property name="junitbin" value="${junitbin}"/>
<property name="java.awt.headless" value="true"/>
<property name="java.awt.graphicsenv" value=""/>
</ant>
<echo message=""/>
<echo message="You may now examine the files TEST-* for more details."/>
</target>
<!-- Use 'ant check' for testing the software, and this merely for putting the build system through its paces: -->
<target name="test-all-ant-targets"
depends="clean,distclean,compile,dist,src-dist,self-contained-dist,public-javadocs-dist,private-javadocs-dist,releases,web-start-releases,check,nightly-build"
description="runs every target in this buildfile in a smart order; useful for testing the buildfile and your build environment" />
<target name="nightly-build"
depends="distclean"
description="Creates ${dist}/nightlyBuild.zip" >
<!-- I believe that this order might actually matter, because some
targets execute 'ant clean' (though they only do so because I
am lazy). I stopped a couple from so doing, but I'm not sure
if I got them all. -->
<!-- If you change *build.xml, then 'ant dc-nightly-build' will be
using the OLD build.xml, not the new one, if it were to
execute the 'cvs-update' target itself. You should update
and then use a new ant process to read the potentially
revised buildfiles; e.g., ant distclean cvs-update && ant
dc-nightly-build. -->
<antcall target="web-start-releases"/>
<antcall target="self-contained-dist"/>
<!-- vanilla JARs: -->
<antcall target="dist"/>
<antcall target="public-javadocs-dist">
<param name="DSTAMP" value="today"/>
</antcall>
<unzip src="${dist}/docs/public-javadocs-today.zip" dest="${dist}/docs/public"/>
<antcall target="private-javadocs-dist">
<param name="DSTAMP" value="today"/>
</antcall>
<unzip src="${dist}/docs/private-javadocs-today.zip" dest="${dist}/docs/private"/>
<antcall target="src-dist">
<param name="DSTAMP" value="today"/>
</antcall>
<antcall target="check-report"/>
<echo file="${dist}/DateStampForNightlyBuilds.html"
append="false"><![CDATA[<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Nightly Build Timestamp</title>
</head>
<body>
<h1>THDL Tools Nightly Build Timestamp</h1>
<p>
These nightly builds were made at ]]></echo>
<tstamp>
<format property="nb.creation.time" pattern="MM/dd/yyyy hh:mm aa"/>
</tstamp>
<echo file="${dist}/DateStampForNightlyBuilds.html" append="true">${nb.creation.time}</echo>
<echo file="${dist}/DateStampForNightlyBuilds.html" append="true"><![CDATA[.
</p>
</body>
</html>
]]></echo>
<zip destfile="${dist}/nightlyBuild.zip"
compress="${compress.nightly.builds}">
<zipfileset dir="${dist}"
excludes="nightlyBuild.zip,lib-jws/**,*.jnlp,README.TXT,releases"
prefix="."/>
</zip>
<delete file="${dist}/DateStampForNightlyBuilds.html"/>
</target>
<!-- DLC FIXME: add tibledit-all-in-one-dist -->
<target name="self-contained-dist"
depends="jskad-all-in-one-dist"
description="JARs up everything into self-contained JARs for double-click, classpath-worry-free joy" />
<target name="dist"
depends="uima-annotators-dist,jskad-dist,tt-handheld-dist,tt-standalone-dist,tt-applet-plus-jws-dist,tt-servlet-dist,tibledit-dist,convertergui-dist"
description="JARs up everything" />
<target name="compile"
depends="jskad-compile,tt-standalone-compile,tt-handheld-compile,tt-applet-plus-jws-compile,tt-servlet-compile,tibledit-compile,convertergui-compile"
description="compiles all programs" />
<target name="jskad-compile" depends="init"
description="compiles Jskad" >
<mkdir dir="${jskadbin}"/>
<antcall target="create-timestamp-source-code"/> <!-- DLC NOW! The -run targets are mucking with this! It isn't fatal, but it should be fixed. -->
<antcall target="our-internal-javac-task">
<param name="mybin" value="${jskadbin}"/>
<param name="my.included.source.file"
value="org/thdl/tib/input/Jskad.java"/>
</antcall>
<!-- For XSLT, we want this in jskad.jar: -->
<antcall target="our-internal-javac-task">
<param name="mybin" value="${jskadbin}"/>
<param name="my.included.source.file"
value="org/thdl/tib/text/TibetanHTML.java"/>
</antcall>
<!-- For XSLT, we want this in jskad.jar: -->
<antcall target="our-internal-javac-task">
<param name="mybin" value="${jskadbin}"/>
<param name="my.included.source.file"
value="org/thdl/tib/text/ttt/EwtsToUnicodeForXslt.java"/>
</antcall>
<!-- Put org.thdl.VerboseUnicodeDump in Jskad's jar for those who
want to use it. -->
<antcall target="our-internal-javac-task">
<param name="mybin" value="${jskadbin}"/>
<param name="my.included.source.file"
value="org/thdl/util/VerboseUnicodeDump.java"/>
</antcall>
<!-- Put TibetanConverter in Jskad's jar for those who want to use
it. -->
<antcall target="our-internal-javac-task">
<param name="mybin" value="${jskadbin}"/>
<param name="my.included.source.file"
value="org/thdl/tib/input/TibetanConverter.java"/>
</antcall>
<antcall target="our-internal-javac-task">
<param name="mybin" value="${jskadbin}"/>
<param name="my.included.source.file"
value="org/thdl/tib/text/ttt/TConverter.java"/>
</antcall>
<antcall target="our-internal-javac-task">
<param name="mybin" value="${jskadbin}"/>
<param name="my.included.source.file"
value="org/thdl/tib/input/ConverterGUI.java"/>
</antcall>
<antcall target="copy-ini-files-to-bin-dir-for-jarring">
<param name="mybin" value="${jskadbin}"/>
</antcall>
<antcall target="copy-tmw-fonts-to-bin-dir">
<param name="my.bin" value="${jskadbin}"/>
</antcall>
<antcall target="copy-tm-fonts-to-bin-dir">
<param name="my.bin" value="${jskadbin}"/>
</antcall>
<antcall target="copy-calhtmlpane-to-bin-dir">
<param name="my.bin" value="${jskadbin}"/>
</antcall>
<antcall target="copy-license-etc-to-bin-dir-for-jarring">
<param name="mybin" value="${jskadbin}"/>
</antcall>
<copy todir="${jskadbin}">
<fileset dir="${source}">
<include name="org/thdl/tib/input/jskad_doc.html"/>
</fileset>
</copy>
<copy todir="${jskadbin}/org/thdl/tib/input">
<fileset dir="${source}">
<include name="*.rtf"/>
<!-- We don't have ACIP_keyboard.rtf yet, but creating such a
thing manually is just one option. We could easily
generate all the keyboard descriptions
programmatically. (FIXME) -->
</fileset>
</copy>
</target>
<target name="convertergui-compile" depends="init"
description="compiles Convertergui" >
<mkdir dir="${converterguibin}"/>
<antcall target="create-timestamp-source-code"/> <!-- DLC NOW! The -run targets are mucking with this! It isn't fatal, but it should be fixed. -->
<antcall target="our-internal-javac-task">
<param name="mybin" value="${converterguibin}"/>
<param name="my.included.source.file"
value="org/thdl/tib/input/ConverterGUI.java"/>
</antcall>
<!-- Put TibetanConverter in this jar for those who want
to use it. -->
<antcall target="our-internal-javac-task">
<param name="mybin" value="${converterguibin}"/>
<param name="my.included.source.file"
value="org/thdl/tib/input/TibetanConverter.java"/>
</antcall>
<antcall target="copy-ini-files-to-bin-dir-for-jarring">
<param name="mybin" value="${converterguibin}"/>
</antcall>
<antcall target="copy-license-etc-to-bin-dir-for-jarring">
<param name="mybin" value="${converterguibin}"/>
</antcall>
</target>
<target name="tibledit-compile" depends="init"
description="compiles TiblEdit" >
<mkdir dir="${tibleditbin}"/>
<antcall target="copy-tmw-fonts-to-bin-dir">
<param name="my.bin" value="${tibleditbin}"/>
</antcall>
<antcall target="create-timestamp-source-code"/> <!-- DLC NOW! The -run targets are mucking with this! It isn't fatal, but it should be fixed. -->
<antcall target="our-internal-javac-task">
<param name="mybin" value="${tibleditbin}"/>
<param name="my.included.source.file"
value="org/thdl/tib/bibl/TiblEdit.java"/>
</antcall>
<antcall target="copy-ini-files-to-bin-dir-for-jarring">
<param name="mybin" value="${tibleditbin}"/>
</antcall>
<antcall target="copy-license-etc-to-bin-dir-for-jarring">
<param name="mybin" value="${tibleditbin}"/>
</antcall>
</target>
<target name="compile-junit-tests" depends="init"
description="compiles all JUnit test cases that can be compiled in the present CLASSPATH (NB that this distinction is just wishful thinking for now because we have such weak test coverage at this point)" >
<mkdir dir="${junitbin}"/>
<antcall target="create-timestamp-source-code"/> <!-- DLC NOW! The -run targets are mucking with this! It isn't fatal, but it should be fixed. -->
<antcall target="our-internal-javac-task">
<param name="mybin" value="${junitbin}"/>
<param name="my.included.source.file"
value="org/thdl/tib/text/reverter/UnicodeToTranslitForXsltTest.java"/>
</antcall>
<antcall target="our-internal-javac-task">
<param name="mybin" value="${junitbin}"/>
<param name="my.included.source.file"
value="org/thdl/tib/text/reverter/ConverterTest.java"/>
</antcall>
<antcall target="our-internal-javac-task">
<param name="mybin" value="${junitbin}"/>
<param name="my.included.source.file"
value="org/thdl/tib/text/ttt/EwtsToUnicodeForXsltTest.java"/>
</antcall>
<antcall target="our-internal-javac-task">
<param name="mybin" value="${junitbin}"/>
<param name="my.included.source.file"
value="org/thdl/tib/text/ttt/EWTSTest.java"/>
</antcall>
<antcall target="our-internal-javac-task">
<param name="mybin" value="${junitbin}"/>
<param name="my.included.source.file"
value="org/thdl/tib/text/ttt/EWTStibwniniTest.java"/>
</antcall>
<antcall target="our-internal-javac-task">
<param name="mybin" value="${junitbin}"/>
<param name="my.included.source.file"
value="org/thdl/tib/text/TibetanMachineWebTest.java"/>
</antcall>
<antcall target="our-internal-javac-task">
<param name="mybin" value="${junitbin}"/>
<param name="my.included.source.file"
value="org/thdl/tib/text/ttt/PackageTest.java"/>
</antcall>
<antcall target="our-internal-javac-task">
<param name="mybin" value="${junitbin}"/>
<param name="my.included.source.file"
value="org/thdl/tib/text/ttt/LotsOfTshegBarsTest.java"/>
</antcall>
<antcall target="copy-ini-files-to-bin-dir-for-jarring">
<param name="mybin" value="${junitbin}"/>
</antcall>
<antcall target="our-internal-javac-task">
<param name="mybin" value="${junitbin}"/>
<param name="my.included.source.file"
value="org/thdl/tib/input/TMW_RTF_TO_THDL_WYLIETest.java"/>
</antcall>
<antcall target="our-internal-javac-task">
<param name="mybin" value="${junitbin}"/>
<param name="my.included.source.file"
value="org/thdl/util/ThdlLazyExceptionTest.java"/>
</antcall>
<antcall target="our-internal-javac-task">
<param name="mybin" value="${junitbin}"/>
<param name="my.included.source.file"
value="org/thdl/util/TrieTest.java"/>
</antcall>
<antcall target="our-internal-javac-task">
<param name="mybin" value="${junitbin}"/>
<param name="my.included.source.file"
value="org/thdl/tib/text/tshegbar/UnicodeUtilsTest.java"/>
</antcall>
<antcall target="our-internal-javac-task">
<param name="mybin" value="${junitbin}"/>
<param name="my.included.source.file"
value="org/thdl/tib/text/tshegbar/LegalTshegBarTest.java"/>
</antcall>
<antcall target="create-timestamp-source-code">
<param name="mybin" value="${junitbin}"/>
</antcall>
<antcall target="our-internal-javac-task">
<param name="mybin" value="${junitbin}"/>
<param name="my.included.source.file"
value="org/thdl/tib/input/DuffPaneTest.java"/>
</antcall>
<antcall target="our-internal-javac-task">
<param name="mybin" value="${junitbin}"/>
<param name="my.included.source.file"
value="org/thdl/tib/input/TinyTest.java"/>
</antcall>
<antcall target="our-internal-javac-task">
<param name="mybin" value="${junitbin}"/>
<param name="my.included.source.file"
value="org/thdl/tib/text/tshegbar/UnicodeGraphemeClusterTest.java"/>
</antcall>
<antcall target="our-internal-javac-task">
<param name="mybin" value="${junitbin}"/>
<param name="my.included.source.file"
value="org/thdl/tib/text/tshegbar/UnicodeCodepointToThdlWylieTest.java"/>
</antcall>
<antcall target="our-internal-javac-task">
<param name="mybin" value="${junitbin}"/>
<param name="my.included.source.file"
value="org/thdl/util/RTFFixerInputStreamTest.java"/>
</antcall>
</target>
<!-- Builds the standalone translation tool: -->
<target name="tt-standalone-compile" depends="init"
description="compiles the standalone Translation Tool" >
<mkdir dir="${ttstandalonebin}"/>
<antcall target="copy-tmw-fonts-to-bin-dir">
<param name="my.bin" value="${ttstandalonebin}"/>
</antcall>
<antcall target="create-timestamp-source-code"/>
<antcall target="our-internal-javac-task">
<param name="mybin" value="${ttstandalonebin}"/>
<param name="my.included.source.file"
value="org/thdl/tib/scanner/BinaryFileGenerator.java"/>
</antcall>
<antcall target="our-internal-javac-task">
<param name="mybin" value="${ttstandalonebin}"/>
<param name="my.included.source.file"
value="org/thdl/tib/scanner/SwingWindowScannerFilter.java"/>
</antcall>
<antcall target="our-internal-javac-task">
<param name="mybin" value="${ttstandalonebin}"/>
<param name="my.included.source.file"
value="org/thdl/tib/scanner/ConsoleScannerFilter.java"/>
</antcall>
<antcall target="our-internal-javac-task">
<param name="mybin" value="${ttstandalonebin}"/>
<param name="my.included.source.file"
value="org/thdl/tib/scanner/CachedSyllableListTree.java"/>
</antcall>
<antcall target="our-internal-javac-task">
<param name="mybin" value="${ttstandalonebin}"/>
<param name="my.included.source.file"
value="org/thdl/tib/scanner/AcipToWylie.java"/>
</antcall>
<antcall target="copy-ini-files-to-bin-dir-for-jarring">
<param name="mybin" value="${ttstandalonebin}"/>
</antcall>
<antcall target="copy-license-etc-to-bin-dir-for-jarring">
<param name="mybin" value="${ttstandalonebin}"/>
</antcall>
<copy todir="${ttstandalonebin}/org/thdl/tib/input">
<fileset dir="${source}">
<include name="*.rtf"/>
</fileset>
</copy>
</target>
<!-- Builds the translation tool for handhelds. This tells J2SDK
1.4 to compile for handhelds (-target 1.1 does the trick).
Compiling with J2SDK 1.3 does so by default, by the way. -->
<target name="tt-handheld-compile" depends="init"
description="compiles the handheld Translation Tool" >
<mkdir dir="${tthandheldbin}"/>
<antcall target="copy-about-dicts-for-tt-jarring">
<param name="my.bin" value="${tthandheldbin}"/>
</antcall>
<antcall target="create-timestamp-source-code"/>
<antcall target="our-internal-javac-task">
<param name="target.jvm" value="1.7"/>
<param name="source.jvm" value="1.7"/>
<param name="mybin" value="${tthandheldbin}"/>
<param name="my.included.source.file"
value="org/thdl/tib/scanner/PocketWindowScannerFilter.java"/>
</antcall>
<!-- <antcall target="our-internal-javac-task">
<param name="target.jvm" value="1.1"/>
<param name="mybin" value="${tthandheldbin}"/>
<param name="my.included.source.file"
value="org/thdl/tib/scanner/ConsoleScannerFilter.java"/>
</antcall> -->
<antcall target="copy-license-etc-to-bin-dir-for-jarring">
<param name="mybin" value="${tthandheldbin}"/>
</antcall>
</target>
<!-- Builds the applet + the Java Web Start translation tool: -->
<target name="tt-applet-plus-jws-compile" depends="init"
description="compiles the applet + Java Web Start forms of the Translation Tool" >
<mkdir dir="${ttappletjwsbin}"/>
<antcall target="copy-tmw-fonts-to-bin-dir">
<param name="my.bin" value="${ttappletjwsbin}"/>
</antcall>
<antcall target="copy-about-dicts-for-tt-jarring">
<param name="my.bin" value="${ttappletjwsbin}"/>
</antcall>
<antcall target="create-timestamp-source-code"/>
<antcall target="our-internal-javac-task">
<param name="mybin" value="${ttappletjwsbin}"/>
<param name="my.included.source.file"
value="org/thdl/tib/scanner/AppletScannerFilter.java"/>
</antcall>
<antcall target="our-internal-javac-task">
<param name="mybin" value="${ttappletjwsbin}"/>
<param name="my.included.source.file"
value="org/thdl/tib/scanner/SwingWindowScannerFilter.java"/>
</antcall>
<antcall target="copy-ini-files-to-bin-dir-for-jarring">
<param name="mybin" value="${ttappletjwsbin}"/>
</antcall>
<antcall target="copy-license-etc-to-bin-dir-for-jarring">
<param name="mybin" value="${ttappletjwsbin}"/>
</antcall>
<copy todir="${ttappletjwsbin}/org/thdl/tib/input">
<fileset dir="${source}">
<include name="*.rtf"/>
</fileset>
</copy>
</target>
<target name="tt-servlet-compile"
depends="ttsc-init"
if="found.servlet.classes"
description="compiles the servlet form of the Translation Tool if you've set the j2ee.sdk.home property correctly" >
<mkdir dir="${ttservletbin}"/>
<antcall target="copy-tmw-fonts-to-bin-dir">
<param name="my.bin" value="${ttservletbin}"/>
</antcall>
<antcall target="copy-about-dicts-for-tt-jarring">
<param name="my.bin" value="${ttservletbin}"/>
</antcall>
<antcall target="create-timestamp-source-code"/>
<!-- For now, these two paths are identical: -->
<path id="ttsc.class.path">
<path refid="all.extras.class.path"/>
</path>
<antcall target="our-internal-javac-task">
<reference torefid="ttsc.class.path" refid="ttsc.class.path"/>
<param name="target.jvm" value="11"/>
<param name="source.jvm" value="11"/>
<param name="our.javac.classpathref" value="ttsc.class.path"/>
<param name="mybin" value="${ttservletbin}"/>
<param name="my.included.source.file"
value="org/thdl/tib/scanner/OnLineScannerFilter.java"/>
</antcall>
<antcall target="our-internal-javac-task">
<reference torefid="ttsc.class.path" refid="ttsc.class.path"/>
<param name="target.jvm" value="11"/>
<param name="source.jvm" value="11"/>
<param name="our.javac.classpathref" value="ttsc.class.path"/>
<param name="mybin" value="${ttservletbin}"/>
<param name="my.included.source.file"
value="org/thdl/tib/scanner/RemoteScannerFilter.java"/>
</antcall>
<antcall target="copy-ini-files-to-bin-dir-for-jarring">
<param name="mybin" value="${ttservletbin}"/>
</antcall>
<antcall target="copy-license-etc-to-bin-dir-for-jarring">
<param name="mybin" value="${ttservletbin}"/>
</antcall>
</target>
<!-- Builds the standalone translation tool: -->
<target name="uima-annotators-compile" depends="init"
description="compiles the UIMA annotators" >
<mkdir dir="${uimabin}"/>
<antcall target="create-timestamp-source-code"/>
<antcall target="our-internal-javac-task">
<param name="mybin" value="${uimabin}"/>
<param name="my.included.source.file"
value="org/soas/solr/update/processor/SegScoreUPF.java"/>
</antcall>
<antcall target="our-internal-javac-task">
<param name="mybin" value="${uimabin}"/>
<param name="my.included.source.file"
value="org/soas/solr/update/processor/TagScoreUPF.java"/>
</antcall>
<antcall target="our-internal-javac-task">
<param name="mybin" value="${uimabin}"/>
<param name="my.included.source.file"
value="org/soas/solr/update/processor/TagCompareUPF.java"/>
</antcall>
<antcall target="our-internal-javac-task">
<param name="mybin" value="${uimabin}"/>
<param name="my.included.source.file"
value="org/thdl/tib/solr/UnicodeToWylieUPF.java"/>
</antcall>
<antcall target="our-internal-javac-task">
<param name="mybin" value="${uimabin}"/>
<param name="my.included.source.file"
value="org/thdl/tib/solr/WylieToUnicodeUPF.java"/>
</antcall>
<antcall target="our-internal-javac-task">
<param name="mybin" value="${uimabin}"/>
<param name="my.included.source.file"
value="org/thdl/tib/solr/TshegBarSplitterUPF.java"/>
</antcall>
<antcall target="our-internal-javac-task">
<param name="mybin" value="${uimabin}"/>
<param name="my.included.source.file"
value="org/thdl/tib/solr/TshegBarJoinerUPF.java"/>
</antcall>
<antcall target="our-internal-javac-task">
<param name="mybin" value="${uimabin}"/>
<param name="my.included.source.file"
value="org/thdl/tib/solr/TshegBarTaggerUPF.java"/>
</antcall>
<antcall target="our-internal-javac-task">
<param name="mybin" value="${uimabin}"/>
<param name="my.included.source.file"
value="org/thdl/tib/solr/TshegBarTagMergerUPF.java"/>
</antcall>
<antcall target="our-internal-javac-task">
<param name="mybin" value="${uimabin}"/>
<param name="my.included.source.file"
value="org/thdl/tib/solr/SimpleRuleTaggerUPF.java"/>
</antcall>
<antcall target="our-internal-javac-task">
<param name="mybin" value="${uimabin}"/>
<param name="my.included.source.file"
value="org/soas/solr/update/processor/AppendTagUPF.java"/>
</antcall>
<antcall target="our-internal-javac-task">
<param name="mybin" value="${uimabin}"/>
<param name="my.included.source.file"
value="org/soas/solr/update/processor/PruneMinorUPF.java"/>
</antcall>
<antcall target="our-internal-javac-task">
<param name="mybin" value="${uimabin}"/>
<param name="my.included.source.file"
value="org/soas/solr/update/processor/WhereDifferentUPF.java"/>
</antcall>
<antcall target="our-internal-javac-task">
<param name="mybin" value="${uimabin}"/>
<param name="my.included.source.file"
value="org/soas/solr/update/processor/DropTagsUPF.java"/>
</antcall>
<antcall target="our-internal-javac-task">
<param name="mybin" value="${uimabin}"/>
<param name="my.included.source.file"
value="org/soas/solr/update/processor/DropFeaturesUPF.java"/>
</antcall>
<antcall target="our-internal-javac-task">
<param name="mybin" value="${uimabin}"/>
<param name="my.included.source.file"
value="org/soas/solr/update/processor/LexiconTaggerUPF.java"/>
</antcall>
<antcall target="our-internal-javac-task">
<param name="mybin" value="${uimabin}"/>
<param name="my.included.source.file"
value="org/soas/solr/update/processor/UnambiguousTagCountUPF.java"/>
</antcall>
<antcall target="our-internal-javac-task">
<param name="mybin" value="${uimabin}"/>
<param name="my.included.source.file"
value="org/soas/solr/update/processor/AmbiguousTagCountUPF.java"/>
</antcall>
<antcall target="our-internal-javac-task">
<param name="mybin" value="${uimabin}"/>
<param name="my.included.source.file"
value="org/soas/solr/update/processor/CrfppTaggerUPF.java"/>
</antcall>
<antcall target="our-internal-javac-task">
<param name="mybin" value="${uimabin}"/>
<param name="my.included.source.file"
value="org/soas/solr/update/processor/CrfppTaggerUpdateProcessor.java"/>
</antcall>
<antcall target="our-internal-javac-task">
<param name="mybin" value="${uimabin}"/>
<param name="my.included.source.file"
value="org/soas/solr/update/processor/Tt4jTaggerUPF.java"/>
</antcall>
<antcall target="our-internal-javac-task">
<param name="mybin" value="${uimabin}"/>
<param name="my.included.source.file"
value="org/soas/solr/update/processor/Tt4jTaggerUpdateProcessor.java"/>
</antcall>
<antcall target="our-internal-javac-task">
<param name="mybin" value="${uimabin}"/>
<param name="my.included.source.file"
value="org/thdl/tib/solr/DictionaryBreakerUPF.java"/>
</antcall>
<antcall target="our-internal-javac-task">
<param name="mybin" value="${uimabin}"/>
<param name="my.included.source.file"
value="org/thdl/tib/crf/SyllableFinalUPF.java"/>
</antcall>
<antcall target="our-internal-javac-task">
<param name="mybin" value="${uimabin}"/>
<param name="my.included.source.file"
value="org/soas/solr/analysis/MagicPrefixFilterFactory.java"/>
</antcall>
<antcall target="our-internal-javac-task">
<param name="mybin" value="${uimabin}"/>
<param name="my.included.source.file"
value="org/soas/solr/analysis/MagicPrefixTokenFilter.java"/>
</antcall>
<antcall target="our-internal-javac-task">
<param name="mybin" value="${uimabin}"/>
<param name="my.included.source.file"
value="org/soas/solr/analysis/PermuteShingleFilterFactory.java"/>
</antcall>
<antcall target="our-internal-javac-task">
<param name="mybin" value="${uimabin}"/>
<param name="my.included.source.file"
value="org/soas/solr/analysis/PermuteShingleTokenFilter.java"/>
</antcall>
<antcall target="our-internal-javac-task">
<param name="mybin" value="${uimabin}"/>
<param name="my.included.source.file"
value="org/thdl/tib/solr/util/TshegBarUtils.java"/>
</antcall>
</target>
<target name="uima-annotators-dist" depends="uima-annotators-compile"
description="generates the uima-tibetan.jar file" >
<!-- Put everything in ${uimabin} into the JAR file -->
<jar jarfile="${lib}/uima-tibetan${my.jar.suffix}.jar"
basedir="${uimabin}">
</jar>
</target>
<!-- DLC FIXME: add tibledit-jws -->
<!--
Note that jardiffs for the JWS stuff are done by the JWS system
itself when appropriate and when the server is configured
correctly. We have no work to do on that front.
-->
<target name="web-start-releases"
depends="jskad-jws,tt-jws"
description="Builds the Java Web Start versions of all applications"/>
<target name="jskad-jws"
depends="init"
description="Builds the Java Web Start version of Jskad">
<antcall target="compile-from-scratch-and-call-jws-subbuild">
<param name="my.app" value="Jskad"/>
<param name="jwsjarsuffix" value="-self-contained"/>
<param name="my.prereq" value="jskad-all-in-one-dist"/>
<param name="lib" value="${jwslib}"/>
</antcall>
</target>
<target name="tt-jws"
depends="init"
description="Builds the Java Web Start version of the translation tool">
<antcall target="compile-from-scratch-and-call-jws-subbuild">
<param name="my.app" value="DictionarySearchAppletAndJavaWebStart"/>
<param name="jwsjarsuffix" value=""/>
<param name="my.prereq" value="tt-applet-plus-jws-dist"/>
<param name="lib" value="${jwslib}"/>
</antcall>
</target>
<target name="src-dist" depends="init"
description="generates the full Jskad+TiblEdit+Translation Tool source distribution" >
<!-- Put everything necessary into the zip file -->
<zip destfile="${dist}/source/THDL-Tools-src-${DSTAMP}.zip">
<zipfileset dir="${source}"
includes="**"
prefix="source"/>
<zipfileset dir="${ext}/drop-ins"
includes="README.TXT"
prefix="extensions/drop-ins"/>
<zipfileset dir="${ext}/calpa/html"
includes="*.class"
prefix="extensions/calpa/html"/>
<!-- Without a Fonts dir, the build from source will fail. Cludge: hack: FIXME: -->
<zipfileset dir="Fonts/TibetanMachine"
includes="*.txt"
prefix="Fonts/TibetanMachine"/>
<zipfileset dir="Fonts/TibetanMachineWeb"
includes="*.txt"
prefix="Fonts/TibetanMachineWeb"/>
<zipfileset dir="${license}"
includes="*"
prefix="."/>
<zipfileset dir="${license}"
includes="*"
prefix="license"/>
<zipfileset dir="."
includes="*build.xml"
prefix="."/>
<zipfileset dir="."
includes="docs/*package-list/**"
prefix="."/>
</zip>
</target>
<target name="jskad-dist" depends="jskad-compile"
description="generates the bare Jskad binary distribution" >
<!-- Put everything in ${jskadbin} into the JAR file -->
<jar jarfile="${lib}/Jskad${my.jar.suffix}.jar"
basedir="${jskadbin}">
<manifest>
<attribute name="Main-Class" value="org.thdl.tib.input.Jskad"/>
</manifest>
</jar>
</target>
<target name="convertergui-dist" depends="convertergui-compile"
description="generates the bare ConverterGUI binary distribution" >
<!-- Put everything in ${converterguibin} into the JAR file -->
<jar jarfile="${lib}/TibetanConverterGUI${my.jar.suffix}.jar"
basedir="${converterguibin}">
<manifest>
<attribute name="Main-Class" value="org.thdl.tib.input.ConverterGUI"/>
</manifest>
</jar>
</target>
<target name="tibledit-dist" depends="tibledit-compile"
description="generates the bare TiblEdit binary distribution" >
<!-- Put everything in ${tibleditbin} into the JAR file -->
<jar jarfile="${lib}/TiblEdit${my.jar.suffix}.jar"
basedir="${tibleditbin}">