forked from apache/xerces2-j
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.xml
1547 lines (1408 loc) · 77.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
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
<?xml version="1.0"?>
<!--
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
-->
<!-- ===================================================================
Read the README file for build instruction.
Authors:
Stefano Mazzocchi <stefano@apache.org>
Anupam Bagchi <abagchi@apache.org>
Andy Clark, IBM
$Id$
==================================================================== -->
<project default="usage" basedir=".">
<!-- Xerces Java directories -->
<property name="build.dir" value="./build"/>
<property name="data.dir" value="./data"/>
<property name="docs.dir" value="./docs"/>
<property name="samples.dir" value="./samples"/>
<property name="src.dir" value="./src"/>
<property name="tests.dir" value="./tests"/>
<property name="tools.dir" value="./tools"/>
<!-- enable compilation under JDK 1.4 and above -->
<taskdef name="xjavac" classname="org.apache.xerces.util.XJavac">
<classpath>
<pathelement location="${tools.dir}/bin/xjavac.jar"/>
</classpath>
</taskdef>
<!-- Allow properties following these statements to be overridden -->
<!-- Note that all of these don't have to exist. They've just been defined
incase they are used. -->
<property file="build.properties"/>
<property file=".ant.properties"/>
<property file="${user.home}/.ant.properties"/>
<property file="default.properties"/>
<target name="init">
<property name='parser.Name' value='Xerces-J'/>
<property name='parser.name' value='xerces-j'/>
<property name='parser.shortname' value='xerces'/>
<property name='parser.Version' value='2.12.0'/>
<property name='parser.version' value='2.12.0'/>
<property name='parser_version' value='2_12_0'/>
<property name='deprecatedjar.parser' value='xerces.jar'/>
<property name='jar.apis' value='xml-apis.jar'/>
<property name='jar.parser' value='xercesImpl.jar'/>
<property name='jar.samples' value='xercesSamples.jar'/>
<property name='jar.dv' value='xercesDV.jar'/>
<property name='jar.resolver' value='resolver.jar'/>
<property name='jar.serializer' value='serializer.jar'/>
<property name='jar.junit' value='junit.jar'/>
<property name='jar.ant' value='ant.jar'/>
<property name='jar.ant.nodeps' value='ant-nodeps.jar'/>
<property name='jar.xjavac' value='xjavac.jar'/>
<property name='default.parser.config.name' value='XIncludeAwareParserConfiguration'/>
<property name='default.parser.config.qualified' value='org.apache.xerces.parsers.XIncludeAwareParserConfiguration'/>
<property name="year" value="1999-2018"/>
<property name="copyright" value="Copyright © ${year} The Apache Software Foundation. All Rights Reserved."/>
<echo message= "---------------- ${parser.Name} ${parser.Version} [${year}] ---------------"/>
<!-- changed made to synchronize with a patch from Sam Ruby (<rubys@apache.org>) to Xerces1
<property name="build.compiler" value="classic"/> -->
<property name="debug" value="off"/>
<property name="debuglevel" value="lines,source"/>
<property name="optimize" value="on"/>
<property name="deprecation" value="off"/>
<property name="javac.source" value="${ant.java.version}"/>
<property name="javac.target" value="${ant.java.version}"/>
<property name="docs.book" value="${docs.dir}/docs-book.xml"/>
<property name="packages" value="org.*"/>
<property name="doc.generator" value="org.apache.stylebook.StyleBook"/>
<property name="doc.generator.package" value="${tools.dir}/stylebook-1.0-b2.jar"/>
<property name="build.src" value="${build.dir}/src"/>
<property name="build.dest" value="${build.dir}/classes"/>
<property name="build.docs" value="${build.dir}/docs"/>
<property name="build.samples" value="${build.dir}/samples"/>
<property name="build.tests" value="${build.dir}/tests"/>
<property name="build.data" value="${build.dir}/data"/>
<property name="build.javadocs" value="${build.dir}/docs/javadocs"/>
<property name="distsrc.dir" value="${build.dir}/${parser.shortname}-${parser_version}"/>
<property name="disttools.dir" value="${build.dir}/tools"/>
<property name="distbin.dir" value="${build.dir}/${parser.shortname}-${parser_version}"/>
<property name='src.apis.zip' value="${tools.dir}/xml-commons-external-src.zip"/>
<filter token="year" value="${year}"/>
<filter token="version" value="${parser.Version}"/>
<filter token="date" value="${TODAY}"/>
<filter token="log" value="true"/>
<filter token="verbose" value="true"/>
</target>
<!-- =================================================================== -->
<!-- Help on usage -->
<!-- =================================================================== -->
<target name="usage" depends="init">
<echo message=""/>
<echo message=""/>
<echo message="${parser.Name} Build instructions"/>
<echo message="-------------------------------------------------------------"/>
<echo message=""/>
<echo message=" available targets are:"/>
<echo message=""/>
<echo message=" jar --> generates the xercesImpl.jar file"/>
<echo message=" sampjar --> generates the xercesSamples.jar file"/>
<echo message=" jars --> generates xercesImpl & xercesSamples jars"/>
<echo message=" jar-schema11 --> 'jar' + XML Schema 1.1 support"/>
<echo message=" jars-schema11 --> 'jars' + XML Schema 1.1 support"/>
<echo message=" xjavac-jar --> generates the xjavac.jar file"/>
<echo message=" docs --> generates the HTML documentation"/>
<echo message=" javadocs --> generates the API docs (needs Java 1.2 or higher)"/>
<echo message=" samples --> compiles the samples source code"/>
<echo message=" compile --> compiles the source code"/>
<echo message=" deprecatedjar --> generates the xerces.jar file"/>
<echo message=" tests --> compiles the tests source code"/>
<echo message=" deprecatedjars --> generates xerces.jar and samples jar"/>
<echo message=" dtdjars --> generates xercesImpl containing no schema support or WML/HTML DOM and xercesSamples & xml-apis jars"/>
<echo message=" dvjar --> generates a Schema datatype jar"/>
<echo message=" pack-tools --> generates the tools distributions (zip and tar.gz)"/>
<echo message=" pack-src --> generates the source distributions (zip and tar.gz)"/>
<echo message=" deprecated-bin --> generates the binary distributions (zip and tar.gz)"/>
<echo message=" pack-bin --> generates the binary distributions (zip and tar.gz)"/>
<echo message=" all --> generates the binary, source and tools distributions"/>
<echo message=" deprecatedall --> generates the binary, source and tools distributions with the xerces.jar"/>
<echo message=" test --> runs a sanity test on the sample files"/>
<echo message=" clean --> cleans up all generated files and directories"/>
<echo message=" usage --> provides help on using the build tool (default)"/>
<echo message=""/>
<echo message=" See comments inside the build.xml file for more details."/>
<echo message="-------------------------------------------------------------"/>
<echo message=""/>
<echo message=""/>
</target>
<!-- =================================================================== -->
<!-- Prepares the build directory -->
<!-- =================================================================== -->
<target name="prepare" depends="init">
<mkdir dir="${build.dir}"/>
</target>
<!-- =================================================================== -->
<!-- directory creation and file copying common to all configurations -->
<!-- =================================================================== -->
<target name="prepare-common" depends="prepare">
<!-- create directories -->
<mkdir dir="${build.src}"/>
<mkdir dir="${build.dest}"/>
<mkdir dir="${build.dest}/META-INF"/>
<mkdir dir="${build.dest}/META-INF/services"/>
<copy file="${src.dir}/org/apache/xerces/jaxp/javax.xml.parsers.DocumentBuilderFactory"
tofile="${build.dest}/META-INF/services/javax.xml.parsers.DocumentBuilderFactory"/>
<copy file="${src.dir}/org/apache/xerces/jaxp/javax.xml.parsers.SAXParserFactory"
tofile="${build.dest}/META-INF/services/javax.xml.parsers.SAXParserFactory"/>
<copy file="${src.dir}/org/apache/xerces/jaxp/datatype/javax.xml.datatype.DatatypeFactory"
tofile="${build.dest}/META-INF/services/javax.xml.datatype.DatatypeFactory"/>
<copy file="${src.dir}/org/apache/xerces/jaxp/validation/javax.xml.validation.SchemaFactory"
tofile="${build.dest}/META-INF/services/javax.xml.validation.SchemaFactory"/>
<copy file="${src.dir}/org/apache/xerces/stax/javax.xml.stream.XMLEventFactory"
tofile="${build.dest}/META-INF/services/javax.xml.stream.XMLEventFactory"/>
<copy file="${src.dir}/org/apache/xerces/parsers/org.xml.sax.driver"
tofile="${build.dest}/META-INF/services/org.xml.sax.driver"/>
</target>
<!-- =================================================================== -->
<!-- Prepares the source code -->
<!-- =================================================================== -->
<target name="prepare-src" depends="prepare-common">
<!-- Do not include this file in xercesImpl.jar. It prevents applications further down the
classpath from overriding the parser's default and may also cause an incompatible mix
of classes to be loaded leading to a failure such as a NoSuchMethodError. -->
<!-- <copy file="${src.dir}/org/apache/xerces/parsers/org.apache.xerces.xni.parser.XMLParserConfiguration"
tofile="${build.dest}/META-INF/services/org.apache.xerces.xni.parser.XMLParserConfiguration"/> -->
<copy file="${src.dir}/org/apache/xerces/dom/org.w3c.dom.DOMImplementationSourceList"
tofile="${build.dest}/META-INF/services/org.w3c.dom.DOMImplementationSourceList"/>
<!-- copy src files -->
<copy todir="${build.src}">
<fileset
dir="${src.dir}"
includes="org/apache/**
org/w3c/dom/html/HTMLDOMImplementation.java"
excludes="**/classfiles_updated **/CVS* **/.#* **/XMLMessages.java
**/DatatypeContentModel.java **/ComplexTypeInfo.java
**/v1/** **/v2/**
javax.xml.parsers.ConvertToURI.java">
</fileset>
</copy>
<!-- create English message bundles from the default ones -->
<copy file="${src.dir}/org/apache/xerces/impl/msg/DatatypeMessages.properties"
tofile="${build.src}/org/apache/xerces/impl/msg/DatatypeMessages_en.properties"/>
<copy file="${src.dir}/org/apache/xerces/impl/msg/DOMMessages.properties"
tofile="${build.src}/org/apache/xerces/impl/msg/DOMMessages_en.properties"/>
<copy file="${src.dir}/org/apache/xerces/impl/msg/JAXPValidationMessages.properties"
tofile="${build.src}/org/apache/xerces/impl/msg/JAXPValidationMessages_en.properties"/>
<copy file="${src.dir}/org/apache/xerces/impl/msg/SAXMessages.properties"
tofile="${build.src}/org/apache/xerces/impl/msg/SAXMessages_en.properties"/>
<copy file="${src.dir}/org/apache/xerces/impl/msg/XIncludeMessages.properties"
tofile="${build.src}/org/apache/xerces/impl/msg/XIncludeMessages_en.properties"/>
<copy file="${src.dir}/org/apache/xerces/impl/msg/XMLMessages.properties"
tofile="${build.src}/org/apache/xerces/impl/msg/XMLMessages_en.properties"/>
<copy file="${src.dir}/org/apache/xerces/impl/msg/XMLSchemaMessages.properties"
tofile="${build.src}/org/apache/xerces/impl/msg/XMLSchemaMessages_en.properties"/>
<copy file="${src.dir}/org/apache/xerces/impl/msg/XMLSerializerMessages.properties"
tofile="${build.src}/org/apache/xerces/impl/msg/XMLSerializerMessages_en.properties"/>
<copy file="${src.dir}/org/apache/xerces/impl/msg/XPointerMessages.properties"
tofile="${build.src}/org/apache/xerces/impl/msg/XPointerMessages_en.properties"/>
<copy file="${src.dir}/org/apache/xerces/impl/xpath/regex/message.properties"
tofile="${build.src}/org/apache/xerces/impl/xpath/regex/message_en.properties"/>
<!-- now deal with API's: -->
<unzip src="${src.apis.zip}" dest="${build.src}">
<patternset
includes="org/xml/sax/**
javax/xml/**
javax/xml/datatype/**
javax/xml/namespace/**
javax/xml/parsers/**
javax/xml/stream/**
javax/xml/transform/**
javax/xml/validation/**
javax/xml/xpath/**
org/w3c/dom/*
org/w3c/dom/bootstrap/**
org/w3c/dom/events/**
org/w3c/dom/html/**
org/w3c/dom/ls/**
org/w3c/dom/ranges/**
org/w3c/dom/traversal/**
org/w3c/dom/views/**
org/w3c/dom/xpath/**"
/>
</unzip>
<!-- substitute tokens as needed -->
<replace file="${build.dir}/src/org/apache/xerces/impl/Version.java"
token="@@VERSION@@" value="${parser.Name} ${parser.Version}"/>
</target>
<!-- =================================================================== -->
<!-- Compiles the source directory -->
<!-- =================================================================== -->
<target name="compile" depends="prepare-src">
<copy todir="${build.dest}">
<fileset dir="${build.src}"
includes="**/*.res, **/*.properties">
</fileset>
</copy>
<xjavac srcdir="${build.src}"
destdir="${build.dest}"
source="${javac.source}"
target="${javac.target}"
classpath="${build.dir}/classes:${tools.dir}/${jar.apis}:${tools.dir}/${jar.resolver}:${tools.dir}/${jar.serializer}"
debug="${debug}"
debuglevel="${debuglevel}"
deprecation="${deprecation}"
optimize="${optimize}"
includeAntRuntime="false"
includeJavaRuntime="false"
excludes="org/xml/sax/**
javax/xml/**
org/w3c/dom/*
org/w3c/dom/bootstrap/**
org/w3c/dom/events/**
org/w3c/dom/ls/**
org/w3c/dom/html/**
org/w3c/dom/ranges/**
org/w3c/dom/traversal/**
org/w3c/dom/views/**
org/w3c/dom/xpath/**"
/>
</target>
<!-- =================================================================== -->
<!-- Creates the omnibus class package -->
<!-- =================================================================== -->
<target name="deprecatedjar" depends="compile">
<jar jarfile="${build.dir}/${deprecatedjar.parser}"
basedir="${build.dest}"
compress="true"
includes="org/**, javax/**,META-INF/**">
<metainf dir="." includes="LICENSE,NOTICE"/>
</jar>
</target>
<!-- =================================================================== -->
<!-- Creates the implementation class package, including DOM Level 3 -->
<!-- =================================================================== -->
<target name="jar" depends="compile">
<!-- take care of manifest file -->
<filter token="java.version" value="${java.version}"/>
<filter token="java.vendor" value="${java.vendor}"/>
<filter token="impl.name" value="${parser.Name} ${parser.Version}"/>
<filter token="impl.version" value="${parser.Version}"/>
<copy todir="${build.dir}" file="${src.dir}/manifest.xerces" filtering="true"/>
<jar jarfile="${build.dir}/${jar.parser}"
basedir="${build.dest}"
compress="true"
includes="org/apache/**, META-INF/**
org/w3c/dom/html/HTMLDOMImplementation.class"
manifest="${build.dir}/manifest.xerces">
<manifest>
<attribute name="Ant-Version" value="${ant.version}"/>
</manifest>
<metainf dir="." includes="LICENSE,NOTICE"/>
</jar>
</target>
<!-- =================================================================== -->
<!-- Compiles the samples -->
<!-- =================================================================== -->
<target name="samples" depends="compile">
<mkdir dir="${build.samples}"/>
<copy todir="${build.samples}" >
<fileset dir="${samples.dir}"/>
</copy>
<xjavac srcdir="${build.samples}"
destdir="${build.dest}"
source="${javac.source}"
target="${javac.target}"
classpath="${build.dir}/classes:${tools.dir}/${jar.apis}"
debug="${debug}"
debuglevel="${debuglevel}"
includeAntRuntime="false"
includeJavaRuntime="true"/>
</target>
<!-- =================================================================== -->
<!-- Compiles the tests -->
<!-- =================================================================== -->
<target name="tests" depends="samples">
<mkdir dir="${build.tests}"/>
<copy todir="${build.tests}">
<fileset dir="${tests.dir}"
excludes="dom/rename/**" />
</copy>
<xjavac srcdir="${build.tests}"
destdir="${build.dest}"
source="${javac.source}"
target="${javac.target}"
classpath="${tools.dir}/${jar.apis}:${build.dir}/classes:./tools/junit.jar"
debug="${debug}"
debuglevel="${debuglevel}"
includeAntRuntime="false"
includeJavaRuntime="true"/>
</target>
<!-- =================================================================== -->
<!-- Creates the samples package -->
<!-- =================================================================== -->
<target name="sampjar" depends="samples">
<jar jarfile="${build.dir}/${jar.samples}"
basedir="${build.dest}"
compress="true"
includes="dom/**,sax/**,jaxp/**,socket/**,ui/**,xni/**,xs/**">
<metainf dir="." includes="LICENSE,NOTICE"/>
</jar>
</target>
<!-- =================================================================== -->
<!-- Prepares the docs -->
<!-- =================================================================== -->
<target name="prepare-docs" depends="init">
<mkdir dir="${build.docs}"/>
<mkdir dir="${build.dir}/xdocs"/>
<copy todir="${build.dir}/xdocs">
<fileset dir="${docs.dir}"/>
</copy>
<replace file="${build.dir}/xdocs/dtd/entities.ent"
token="@@VERSION@@" value="${parser.Version}"/>
<replace file="${build.dir}/xdocs/dtd/entities.ent"
token="@@version@@" value="${parser.version}"/>
<replace file="${build.dir}/xdocs/dtd/entities.ent"
token="@@_version_@@" value="${parser_version}"/>
<replace file="${build.dir}/xdocs/dtd/entities.ent"
token="@@DEFAULT_CONFIG@@" value="${default.parser.config.name}"/>
<replace file="${build.dir}/xdocs/dtd/entities.ent"
token="@@DEFAULT_CONFIG_LONG@@" value="${default.parser.config.qualified}"/>
</target>
<!-- =================================================================== -->
<!-- Generate HTML docs -->
<!-- =================================================================== -->
<target name="docs" depends="prepare, prepare-docs">
<echo message="Building docs for ${parser.Name} ${parser.Version} ..." />
<java fork="yes"
classpath="${java.class.path}:${doc.generator.package}:./tools/xalan.jar"
classname="${doc.generator}"
failOnError="yes">
<sysproperty key="java.awt.headless" value="true"/>
<arg value="targetDirectory=${build.docs}"/>
<arg value="${build.dir}/xdocs/docs-book.xml"/>
<arg value="${build.dir}/xdocs/style"/>
</java>
<copy file="${docs.dir}/download.cgi" tofile="${build.docs}/download.cgi"/>
</target>
<target name="javadoc-replace" unless="additional.param">
<replace token="@xerces.internal" dir="${build.src}">
<replacevalue><![CDATA[<DL><DT><H1 style="font-size:110%">INTERNAL:</H1><DD>Usage of this class is not supported. It may be altered or removed at any time.</DD></DT></DL>]]></replacevalue>
</replace>
<replace token="@xerces.experimental" dir="${build.src}">
<replacevalue><![CDATA[<DL><DT><H1 style="font-size:150%">EXPERIMENTAL:</H1><DD>This class should not be considered stable. It is likely to be altered or replaced in the future.</DD></DT></DL>]]></replacevalue>
</replace>
</target>
<!-- =================================================================== -->
<!-- Creates the API documentation -->
<!-- =================================================================== -->
<target name="javadocs" depends="prepare-src">
<condition property="additional.param" value=" -taglet org.apache.xerces.util.ExperimentalTaglet -taglet org.apache.xerces.util.InternalTaglet -tagletpath ${tools.dir}/bin/xerces2taglets.jar">
<available classname="com.sun.tools.doclets.Taglet"/>
</condition>
<antcall target="javadoc-replace" />
<condition property="additional.param" value="">
<not>
<available classname="com.sun.tools.doclets.Taglet"/>
</not>
</condition>
<mkdir dir='${build.dir}/docs/javadocs/api'/>
<javadoc packagenames='javax.xml.*,org.w3c.*,org.xml.*'
locale='en_US'
sourcepath='${build.src}' destdir='${build.dir}/docs/javadocs/api'
author='true' version='true'
windowtitle='XML Standard API' doctitle='XML Standard API'
bottom='${copyright}'
additionalparam='${additional.param}'
/>
<mkdir dir='${build.dir}/docs/javadocs/xni'/>
<javadoc packagenames='org.apache.xerces.xni.*'
locale='en_US'
sourcepath='${build.src}' destdir='${build.dir}/docs/javadocs/xni'
author='true' version='true'
windowtitle='Xerces Native Interface'
doctitle='Xerces Native Interface'
bottom='${copyright}'
additionalparam='${additional.param}'
/>
<mkdir dir='${build.dir}/docs/javadocs/xs'/>
<javadoc packagenames='org.apache.xerces.xs, org.apache.xerces.xs.datatypes'
locale='en_US'
sourcepath='${build.src}' destdir='${build.dir}/docs/javadocs/xs'
author='true' version='true'
windowtitle='XML Schema API'
doctitle='XML Schema API'
bottom='${copyright}'
additionalparam='${additional.param}'
/>
<mkdir dir='${build.dir}/docs/javadocs/xerces2'/>
<javadoc packagenames='org.apache.xerces.dom.*,
org.apache.xerces.impl.*,
org.apache.xerces.jaxp.*,
org.apache.xerces.parsers,
org.apache.xerces.stax.*,
org.apache.xerces.util,
org.apache.xerces.xinclude,
org.apache.xerces.xpointer'
locale='en_US'
sourcepath='${build.src}' destdir='${build.dir}/docs/javadocs/xerces2'
classpath='${tools.dir}/${jar.resolver}:${tools.dir}/${jar.serializer}'
author='true' version='true'
windowtitle='Xerces2 Implementation'
doctitle='Xerces2 Implementation'
bottom='${copyright}'
additionalparam='${additional.param}'
/>
<mkdir dir='${build.dir}/docs/javadocs/other'/>
<javadoc packagenames='org.apache.html.*,
org.apache.wml.*,
org.apache.xml.serialize.*'
locale='en_US'
sourcepath='${build.src}' destdir='${build.dir}/docs/javadocs/other'
author='true' version='true'
windowtitle='Other Classes' doctitle='Other Classes'
bottom='${copyright}'
additionalparam='${additional.param}'
/>
</target>
<!-- =================================================================== -->
<!-- Prepares the source distribution -->
<!-- =================================================================== -->
<target name="pack-src" depends="init">
<echo message="Building the source distribution files (zip,tar)"/>
<delete dir="${distbin.dir}"/>
<mkdir dir="${distsrc.dir}"/>
<mkdir dir="${distsrc.dir}/src"/>
<mkdir dir="${distsrc.dir}/data"/>
<mkdir dir="${distsrc.dir}/docs"/>
<mkdir dir="${distsrc.dir}/samples"/>
<copy todir="${distsrc.dir}/src" >
<fileset
dir="${src.dir}"
includes="org/**, dom3/**, javax/**, manifest.xerces"
excludes="**/CVS*, **/.#*, **/*.class
**/v1/** **/v2/**"
/>
</copy>
<copy todir="${distsrc.dir}/data" >
<fileset
dir="${data.dir}"
excludes="**/CVS*, **/.#*"
/>
</copy>
<copy todir="${distsrc.dir}/docs" >
<fileset
dir="${docs.dir}"
excludes="**/CVS*, **/*.#*, pdf/**, html/**, **/javadocs*"
/>
</copy>
<copy todir="${distsrc.dir}/samples" >
<fileset
dir="${samples.dir}"
excludes="**/CVS*, **/*.#*"
/>
</copy>
<copy file="LICENSE" tofile="${distsrc.dir}/LICENSE"/>
<copy file="NOTICE" tofile="${distsrc.dir}/NOTICE"/>
<copy file="NOTICE.resolver.txt" tofile="${distsrc.dir}/NOTICE.resolver.txt"/>
<copy file="NOTICE.serializer.txt" tofile="${distsrc.dir}/NOTICE.serializer.txt"/>
<copy file="LICENSE.DOM-documentation.html" tofile="${distsrc.dir}/LICENSE.DOM-documentation.html"/>
<copy file="LICENSE.DOM-software.html" tofile="${distsrc.dir}/LICENSE.DOM-software.html"/>
<copy file="LICENSE-SAX.html" tofile="${distsrc.dir}/LICENSE-SAX.html"/>
<copy file="LICENSE.resolver.txt" tofile="${distsrc.dir}/LICENSE.resolver.txt"/>
<copy file="LICENSE.serializer.txt" tofile="${distsrc.dir}/LICENSE.serializer.txt"/>
<copy file="README" tofile="${distsrc.dir}/README"/>
<copy file="Readme.html" tofile="${distsrc.dir}/Readme.html"/>
<copy file="build.xml" tofile="${distsrc.dir}/build.xml"/>
<copy file="${basedir}/build.sh" tofile="${distsrc.dir}/build.sh" />
<chmod file="${distsrc.dir}/build.sh" perm="ugo+rx" />
<copy file="${basedir}/build.bat" tofile="${distsrc.dir}/build.bat" />
<zip zipfile="${build.dir}/${parser.Name}-src.${parser.version}.zip"
basedir="${build.dir}"
includes="${parser.shortname}-${parser_version}/**" excludes="*.class"/>
<tar tarfile="${build.dir}/${parser.Name}-src.${parser.version}.tar"
basedir="${build.dir}"
includes="${parser.shortname}-${parser_version}/**" excludes="*.class"/>
<gzip zipfile="${build.dir}/${parser.Name}-src.${parser.version}.tar.gz"
src="${build.dir}/${parser.Name}-src.${parser.version}.tar" />
<!-- and why not get rid of the un-gzip'd tarball and save ourselves 15 Mb? -->
<delete file="${build.dir}/${parser.Name}-src.${parser.version}.tar"/>
</target>
<!-- =================================================================== -->
<!-- Prepares the tools distribution -->
<!-- =================================================================== -->
<target name="pack-tools" depends="init">
<echo message="Building the tools distribution files (zip,tar)"/>
<mkdir dir="${disttools.dir}"/>
<copy todir="${disttools.dir}" >
<fileset
dir="${tools.dir}"
includes="**/*.txt, **/*.html, **/*.bat, **/*.jar, **/*.zip, **/*.opt"
excludes="**/CVS*, **/.#*, **/*.class, **/icu4j*"
/>
</copy>
<zip zipfile="${build.dir}/${parser.Name}-tools.${parser.version}.zip"
basedir="${build.dir}"
includes="tools/**"/>
<tar tarfile="${build.dir}/${parser.Name}-tools.${parser.version}.tar"
basedir="${build.dir}"
includes="tools/**"/>
<gzip zipfile="${build.dir}/${parser.Name}-tools.${parser.version}.tar.gz"
src="${build.dir}/${parser.Name}-tools.${parser.version}.tar" />
<!-- and why not get rid of the un-gzip'd tarball and save ourselves Mb? -->
<delete file="${build.dir}/${parser.Name}-tools.${parser.version}.tar"/>
<!-- and delete the directory: -->
<delete dir="${disttools.dir}"/>
</target>
<!-- =================================================================== -->
<!-- Prepares common parts of the binary distributions -->
<!-- =================================================================== -->
<target name="pack-bin-common" depends="javadocs, docs, sampjar">
<echo message="Building the binary distribution files (zip,tar)"/>
<delete dir="${distbin.dir}"/>
<mkdir dir="${distbin.dir}"/>
<mkdir dir="${distbin.dir}/data"/>
<mkdir dir="${distbin.dir}/docs"/>
<mkdir dir="${distbin.dir}/docs/javadocs"/>
<mkdir dir="${distsrc.dir}/samples"/>
<copy todir="${distbin.dir}/data" >
<fileset
dir="${data.dir}"
excludes="**/CVS*, **/*.#*"
/>
</copy>
<copy todir="${distbin.dir}/docs" >
<fileset dir="${build.docs}" />
</copy>
<copy todir="${distbin.dir}/docs/javadocs/api" >
<fileset dir="${build.dir}/docs/javadocs/api" />
</copy>
<copy todir="${distbin.dir}/docs/javadocs/xni" >
<fileset dir="${build.dir}/docs/javadocs/xni" />
</copy>
<copy todir="${distbin.dir}/docs/javadocs/xerces2" >
<fileset dir="${build.dir}/docs/javadocs/xerces2" />
</copy>
<copy todir="${distbin.dir}/docs/javadocs/other" >
<fileset dir="${build.dir}/docs/javadocs/other" />
</copy>
<copy file="LICENSE" tofile="${distbin.dir}/LICENSE"/>
<copy file="NOTICE" tofile="${distsrc.dir}/NOTICE"/>
<copy file="NOTICE.resolver.txt" tofile="${distsrc.dir}/NOTICE.resolver.txt"/>
<copy file="NOTICE.serializer.txt" tofile="${distsrc.dir}/NOTICE.serializer.txt"/>
<copy file="LICENSE.DOM-documentation.html" tofile="${distsrc.dir}/LICENSE.DOM-documentation.html"/>
<copy file="LICENSE.DOM-software.html" tofile="${distsrc.dir}/LICENSE.DOM-software.html"/>
<copy file="LICENSE-SAX.html" tofile="${distbin.dir}/LICENSE-SAX.html"/>
<copy file="LICENSE.resolver.txt" tofile="${distbin.dir}/LICENSE.resolver.txt"/>
<copy file="LICENSE.serializer.txt" tofile="${distsrc.dir}/LICENSE.serializer.txt"/>
<copy file="Readme.html" tofile="${distbin.dir}/Readme.html"/>
<copy file="${build.dir}/${jar.samples}" tofile="${distbin.dir}/${jar.samples}"/>
<copy todir="${distsrc.dir}/samples" >
<fileset
dir="${samples.dir}"
excludes="**/CVS*, **/*.#*"
/>
</copy>
<copydir src="${samples.dir}" dest="${distsrc.dir}/samples" excludes="**/CVS*, **/*.#*"/>
</target>
<!-- =================================================================== -->
<!-- Prepares the binary distribution -->
<!-- =================================================================== -->
<target name="pack-bin" depends="pack-bin-common, jars">
<copy file="${build.dir}/${jar.parser}" tofile="${distbin.dir}/${jar.parser}"/>
<!-- include the xml-commons APIs -->
<copy file="${tools.dir}/${jar.apis}" tofile="${distbin.dir}/${jar.apis}"/>
<!-- include the xml-commons resolver -->
<copy file="${tools.dir}/${jar.resolver}" tofile="${distbin.dir}/${jar.resolver}"/>
<!-- include the Xalan Serializer -->
<copy file="${tools.dir}/${jar.serializer}" tofile="${distbin.dir}/${jar.serializer}"/>
<zip zipfile="${build.dir}/${parser.Name}-bin.${parser.version}.zip"
basedir="${build.dir}"
includes="${parser.shortname}-${parser_version}/**"
excludes="*.class, **/${deprecatedjar.parser}"/>
<tar tarfile="${build.dir}/${parser.Name}-bin.${parser.version}.tar"
basedir="${build.dir}"
includes="${parser.shortname}-${parser_version}/**"
excludes="*.class, **/${deprecatedjar.parser}"/>
<gzip zipfile="${build.dir}/${parser.Name}-bin.${parser.version}.tar.gz"
src="${build.dir}/${parser.Name}-bin.${parser.version}.tar" />
<!-- as before, let's kill of the ungzip'd tarball! -->
<delete file="${build.dir}/${parser.Name}-bin.${parser.version}.tar"/>
</target>
<!-- =================================================================== -->
<!-- Prepares the deprecated binary distribution -->
<!-- =================================================================== -->
<target name="deprecated-bin" depends="pack-bin-common, deprecatedjars">
<copy file="${build.dir}/${deprecatedjar.parser}" tofile="${distbin.dir}/${deprecatedjar.parser}"/>
<!-- include the xml-commons resolver -->
<copy file="${tools.dir}/${jar.resolver}" tofile="${distbin.dir}/${jar.resolver}"/>
<!-- include the Xalan Serializer -->
<copy file="${tools.dir}/${jar.serializer}" tofile="${distbin.dir}/${jar.serializer}"/>
<zip zipfile="${build.dir}/deprecated${parser.Name}-bin.${parser.version}.zip"
basedir="${build.dir}"
includes="${parser.shortname}-${parser_version}/**"
excludes="*.class, **/${jar.parser}, **/${jar.apis}"/>
<tar tarfile="${build.dir}/deprecated${parser.Name}-bin.${parser.version}.tar"
basedir="${build.dir}"
includes="${parser.shortname}-${parser_version}/**"
excludes="*.class, **/${jar.parser}, **/${jar.apis}"/>
<gzip zipfile="${build.dir}/deprecated${parser.Name}-bin.${parser.version}.tar.gz"
src="${build.dir}/deprecated${parser.Name}-bin.${parser.version}.tar" />
<!-- as before, let's kill of the ungzip'd tarball! -->
<delete file="${build.dir}/deprecated${parser.Name}-bin.${parser.version}.tar"/>
</target>
<!-- =================================================================== -->
<!-- Do a sanity test using samples -->
<!-- =================================================================== -->
<target name="test" depends="tests">
<echo message="Performing sanity test for ${parser.Name} ${parser.Version} ..." />
<echo message="Using classpath='${tools.dir}/${jar.apis}:${tools.dir}/${jar.resolver}:${tools.dir}/${jar.serializer}:${build.dir}/classes'" />
<echo message="Running sax.Counter ..." />
<java fork="yes"
classname="sax.Counter"
failOnError="yes">
<jvmarg value="-Xbootclasspath/p:${tools.dir}/${jar.apis}${path.separator}${tools.dir}/${jar.resolver}${path.separator}${tools.dir}/${jar.serializer}${path.separator}${build.dir}/classes"/>
<arg value="${data.dir}/personal.xml"/>
</java>
<echo message="Running sax.Writer ..." />
<java fork="yes"
classname="sax.Writer"
failOnError="yes">
<jvmarg value="-Xbootclasspath/p:${tools.dir}/${jar.apis}${path.separator}${tools.dir}/${jar.resolver}${path.separator}${tools.dir}/${jar.serializer}${path.separator}${build.dir}/classes"/>
<arg value="${data.dir}/personal.xml"/>
</java>
<echo message="Running dom.Counter ..." />
<java fork="yes"
classname="dom.Counter"
failOnError="yes">
<jvmarg value="-Xbootclasspath/p:${tools.dir}/${jar.apis}${path.separator}${tools.dir}/${jar.resolver}${path.separator}${tools.dir}/${jar.serializer}${path.separator}${build.dir}/classes"/>
<arg value="${data.dir}/personal.xml"/>
</java>
<echo message="Running dom.Writer ..." />
<java fork="yes"
classname="dom.Writer"
failOnError="yes">
<jvmarg value="-Xbootclasspath/p:${tools.dir}/${jar.apis}${path.separator}${tools.dir}/${jar.resolver}${path.separator}${tools.dir}/${jar.serializer}${path.separator}${build.dir}/classes"/>
<arg value="${data.dir}/personal.xml"/>
</java>
<echo message="Running thread.Test dom" />
<java fork="yes"
classname="thread.Test"
failOnError="yes">
<jvmarg value="-Xbootclasspath/p:${tools.dir}/${jar.apis}${path.separator}${tools.dir}/${jar.resolver}${path.separator}${tools.dir}/${jar.serializer}${path.separator}${build.dir}/classes"/>
<arg value="-dom"/>
<arg value="-threads"/>
<arg value="20"/>
<arg value="-time"/>
<arg value="10"/>
<arg value="${data.dir}/personal-schema.xml"/>
</java>
<echo message="Running thread.Test sax" />
<java fork="yes"
classname="thread.Test"
failOnError="yes">
<jvmarg value="-Xbootclasspath/p:${tools.dir}/${jar.apis}${path.separator}${tools.dir}/${jar.resolver}${path.separator}${tools.dir}/${jar.serializer}${path.separator}${build.dir}/classes"/>
<arg value="-threads"/>
<arg value="20"/>
<arg value="-time"/>
<arg value="10"/>
<arg value="${data.dir}/personal-schema.xml"/>
</java>
<!--
<echo message="Running DOMFilter ..." />
<java fork="yes"
classpath="${tools.dir}/${jar.apis}:${tools.dir}/${jar.resolver}:${tools.dir}/${jar.serializer}:${build.dir}/classes"
classname="dom.DOMFilter"
args="-p dom.wrappers.DOMParser ${data.dir}/personal.xml"/>
-->
<!-- The following are samples but not command-line applications.
<echo message="Running IteratorView ..." />
<java fork="yes"
classpath="${tools.dir}/${jar.apis}:${tools.dir}/${jar.resolver}:${tools.dir}/${jar.serializer}:${build.dir}/classes"
classname="dom.traversal.IteratorView"
failOnError="yes"
args="${data.dir}/personal.xml"/>
<echo message="Running TreeWalkerView ..." />
<java fork="yes"
classpath="${tools.dir}/${jar.apis}:${tools.dir}/${jar.resolver}:${tools.dir}/${jar.serializer}:${build.dir}/classes"
classname="dom.traversal.TreeWalkerView"
failOnError="yes"
args="${data.dir}/personal.xml"/>
<echo message="Running TreeViewer ..." />
<java fork="yes"
classpath="${tools.dir}/${jar.apis}:${tools.dir}/${jar.resolver}:${tools.dir}/${jar.serializer}:${build.dir}/classes"
classname="dom.TreeViewer"
failOnError="yes"
args="${data.dir}/personal.xml"/>
-->
<echo message="Running dom.DTest ..." />
<java fork="yes"
classname="dom.DTest"
failOnError="yes">
<jvmarg value="-Xbootclasspath/p:${tools.dir}/${jar.apis}${path.separator}${tools.dir}/${jar.resolver}${path.separator}${tools.dir}/${jar.serializer}${path.separator}${build.dir}/classes"/>
</java>
<echo message="Running dom.mem.Test ..." />
<java fork="yes"
classname="dom.mem.Test"
failOnError="yes">
<jvmarg value="-Xbootclasspath/p:${tools.dir}/${jar.apis}${path.separator}${tools.dir}/${jar.resolver}${path.separator}${tools.dir}/${jar.serializer}${path.separator}${build.dir}/classes"/>
</java>
<echo message="Running dom.range.Test ..." />
<java fork="yes"
classname="dom.range.Test"
failOnError="yes">
<jvmarg value="-Xbootclasspath/p:${tools.dir}/${jar.apis}${path.separator}${tools.dir}/${jar.resolver}${path.separator}${tools.dir}/${jar.serializer}${path.separator}${build.dir}/classes"/>
<arg value="all"/>
</java>
<echo message="Running dom.ids.Test ..." />
<java fork="yes"
classname="dom.ids.Test"
failOnError="yes">
<jvmarg value="-Xbootclasspath/p:${tools.dir}/${jar.apis}${path.separator}${tools.dir}/${jar.resolver}${path.separator}${tools.dir}/${jar.serializer}${path.separator}${build.dir}/classes"/>
</java>
<echo message="Running dom.serialization.Test ..." />
<java fork="yes"
classname="dom.serialization.Test"
failOnError="yes">
<jvmarg value="-Xbootclasspath/p:${tools.dir}/${jar.apis}${path.separator}${tools.dir}/${jar.resolver}${path.separator}${tools.dir}/${jar.serializer}${path.separator}${build.dir}/classes"/>
<arg value="${data.dir}/personal-schema.xml"/>
<arg value="out.xml"/>
</java>
<echo message="Running dom.traversal.AllTests ..." />
<java fork="yes"
classname="dom.traversal.AllTests"
failOnError="yes">
<jvmarg value="-Xbootclasspath/p:${tools.dir}/${jar.apis}${path.separator}${tools.dir}/${jar.resolver}${path.separator}${tools.dir}/${jar.serializer}${path.separator}${tools.dir}/${jar.junit}${path.separator}${build.dir}/classes${path.separator}${build.dir}/tests"/>
</java>
<echo message="Running schema.Test ..." />
<java fork="yes"
classname="schema.Test"
failOnError="yes">
<jvmarg value="-Xbootclasspath/p:${tools.dir}/${jar.apis}${path.separator}${tools.dir}/${jar.resolver}${path.separator}${tools.dir}/${jar.serializer}${path.separator}${build.dir}/classes"/>
</java>
<echo message="Running schema.config.AllTests ..." />
<java fork="yes"
classname="schema.config.AllTests"
failOnError="yes">
<jvmarg value="-Xbootclasspath/p:${tools.dir}/${jar.apis}${path.separator}${tools.dir}/${jar.resolver}${path.separator}${tools.dir}/${jar.serializer}${path.separator}${tools.dir}/${jar.junit}${path.separator}${build.dir}/classes${path.separator}${build.dir}/tests"/>
</java>
<echo message="Running schema.annotations.AllTests ..." />
<java fork="yes"
classname="schema.annotations.AllTests"
failOnError="yes">
<jvmarg value="-Xbootclasspath/p:${tools.dir}/${jar.apis}${path.separator}${tools.dir}/${jar.resolver}${path.separator}${tools.dir}/${jar.serializer}${path.separator}${tools.dir}/${jar.junit}${path.separator}${build.dir}/classes${path.separator}${build.dir}/tests"/>
</java>
<echo message="Running jaxp.PropertyTest ..." />
<java fork="yes"
classname="jaxp.PropertyTest"
failOnError="yes">
<jvmarg value="-Xbootclasspath/p:${tools.dir}/${jar.apis}${path.separator}${tools.dir}/${jar.resolver}${path.separator}${tools.dir}/${jar.serializer}${path.separator}${build.dir}/classes"/>
</java>
<echo message="Running jaxp.JAXPSpecTest ..." />
<java fork="yes"
classname="jaxp.JAXPSpecTest"
failOnError="yes">
<jvmarg value="-Xbootclasspath/p:${tools.dir}/${jar.apis}${path.separator}${tools.dir}/${jar.resolver}${path.separator}${tools.dir}/${jar.serializer}${path.separator}${build.dir}/classes"/>
<arg value="testSchemaLanguageSAX"/>
<arg value="testSchemaSourceSAX"/>
<arg value="testSchemaLanguageDOM"/>
<arg value="testSchemaSourceDOM"/>
</java>
<echo message="Running xinclude.Test ..." />
<java fork="yes"
classname="xinclude.Test"
failOnError="yes">
<jvmarg value="-Xbootclasspath/p:${tools.dir}/${jar.apis}${path.separator}${tools.dir}/${jar.resolver}${path.separator}${tools.dir}/${jar.serializer}${path.separator}${build.dir}/classes"/>
</java>
<echo message="Running dom.registry.Test ..." />
<java fork="yes"
classname="dom.registry.Test"
failOnError="yes">
<jvmarg value="-Xbootclasspath/p:${tools.dir}/${jar.apis}${path.separator}${tools.dir}/${jar.resolver}${path.separator}${tools.dir}/${jar.serializer}${path.separator}${build.dir}/classes"/>
</java>
<echo message="Running dom.dom3.Test ..." />
<java fork="yes"
classname="dom.dom3.Test"
failOnError="yes">
<jvmarg value="-Xbootclasspath/p:${tools.dir}/${jar.apis}${path.separator}${tools.dir}/${jar.resolver}${path.separator}${tools.dir}/${jar.serializer}${path.separator}${build.dir}/classes"/>
</java>
</target>
<!-- =================================================================== -->
<!-- Builds both deprecated xerces and sample jar files -->
<!-- =================================================================== -->
<target name="deprecatedjars" depends="deprecatedjar, sampjar">
<!-- include the xml-commons resolver -->
<copy file="${tools.dir}/${jar.resolver}" tofile="${build.dir}/${jar.resolver}"/>
<!-- include the Xalan Serializer -->
<copy file="${tools.dir}/${jar.serializer}" tofile="${build.dir}/${jar.serializer}"/>
</target>
<!-- =================================================================== -->
<!-- Builds xercesImpl, xml-apis and sample jar files -->
<!-- =================================================================== -->
<target name="jars" depends="jar, sampjar">
<!-- include the xml-commons APIs -->
<copy file="${tools.dir}/${jar.apis}" tofile="${build.dir}/${jar.apis}"/>
<!-- include the xml-commons resolver -->
<copy file="${tools.dir}/${jar.resolver}" tofile="${build.dir}/${jar.resolver}"/>
<!-- include the Xalan Serializer -->
<copy file="${tools.dir}/${jar.serializer}" tofile="${build.dir}/${jar.serializer}"/>
</target>
<!-- =================================================================== -->
<!-- Builds and packages tools, sources and binary distributions -->
<!-- =================================================================== -->
<target name="all" depends="pack-bin, pack-src, pack-tools">
</target>
<!-- =================================================================== -->
<!-- Builds and packages tools, sources and binary distributions -->
<!-- =================================================================== -->
<target name="deprecatedall" depends="pack-src, deprecated-bin, pack-tools">
</target>
<!-- =================================================================== -->
<!-- Cleans everything -->
<!-- =================================================================== -->
<target name="clean" depends="init">
<delete dir="${build.dir}"/>
</target>
<!-- =================================================================== -->
<!-- Creates the dtd implementation class package -->
<!-- (that is, with no schema support or WML/HTML DOM.) -->
<!-- =================================================================== -->
<target name="dtdjar" depends="dtdcompile">
<!-- take care of manifest file -->
<filter token="java.version" value="${java.version}"/>
<filter token="java.vendor" value="${java.vendor}"/>
<filter token="impl.name" value="${parser.Name} ${parser.Version}"/>
<filter token="impl.version" value="${parser.Version}"/>
<copy todir="${build.dir}" file="${src.dir}/manifest.xerces" filtering="true"/>
<jar jarfile="${build.dir}/dtd-${jar.parser}"
basedir="${build.dest}"
compress="true"
includes="org/apache/**, META-INF/**
org/w3c/dom/html/HTMLDOMImplementation.class"
manifest="${build.dir}/manifest.xerces">
<manifest>
<attribute name="Ant-Version" value="${ant.version}"/>
</manifest>
<metainf dir="." includes="LICENSE,NOTICE"/>
</jar>
</target>
<!-- =================================================================== -->
<!-- Compiles the dtd source directory -->
<!-- =================================================================== -->
<target name="dtdcompile" depends="dtdprepare-src">
<copy todir="${build.dest}">
<fileset dir="${build.src}"
includes="**/*.res, **/*.properties">
</fileset>
</copy>