File: build.xml

package info (click to toggle)
libjibx-java 1.0.1-2
  • links: PTS
  • area: contrib
  • in suites: lenny
  • size: 15,748 kB
  • ctags: 10,069
  • sloc: java: 29,151; xml: 7,963; makefile: 14
file content (980 lines) | stat: -rw-r--r-- 43,897 bytes parent folder | download
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
<?xml version="1.0"?>

<!-- ===================================================================

Ant build file for JiBX Java data binding to XML

This is a build file for use with the Ant build tool.  See
http://jakarta.apache.org/ant/index.html for more info.  This build.xml
file has been tested with ant version 1.6.1.

===================================================================+ -->

<project name="jibx" default="current" basedir="..">

  <!-- The directories -->
  <property name="root" value="${basedir}"/>
  <property name="lib" value="${basedir}/lib"/>
  <property name="build" value="${basedir}/build"/>
  <property name="src" value="${build}/src"/>
  <property name="extrassrc" value="${build}/extras"/>
  <property name="binddest" value="${build}/classes/main"/>
  <property name="rundest" value="${build}/classes/main"/>
  <property name="testdest" value="${build}/classes/test"/>
  <property name="extrasdest" value="${build}/classes/main"/>
  <property name="toolsdest" value="${build}/classes/tools"/>
  <property name="testdata" value="${build}/test/data"/>
  <property name="testsrc" value="${build}/test"/>
  <property name="simpledata" value="${build}/test/simple"/>
  <property name="extrasdata" value="${build}/test/extras"/>
  <property name="userdocs" value="${basedir}/docs/api"/>
  <property name="devdocs" value="${build}/docs/dev"/>
  <property name="binddocs" value="${basedir}/docs"/>
  <property name="tutorial" value="${basedir}/tutorial"/>
  <property name="target" value="1.3"/>

  <!-- Other definitions -->
  <property name="project" value="JiBX Java data binding to XML"/>
  <property name="projname" value="jibx"/>
  <property name="bindname" value="jibx-bind"/>
  <property name="runname" value="jibx-run"/>
  <property name="extrasname" value="jibx-extras"/>
  <property name="version" value="1.0"/>
  <property name="distribname" value="jibx_1_0_1"/>
  <property name="fullname" value="jibx-full"/>
  <property name="packages" value="org.jibx"/>
  <property name="source" value="1.3"/>
  <property environment="env"/>
  <condition property="skip21">
    <and>
      <not>
        <istrue value="${run21}"/>
      </not>
      <equals arg1="${ant.java.version}" arg2="1.3"/>
    </and>
  </condition>

  <!-- Common classpath -->
  <path id="project-classpath">
    <pathelement location="${binddest}"/>
    <pathelement location="${rundest}"/>
    <pathelement location="${lib}/xpp3.jar"/>
    <!-- The dom4j.jar and jdom.jar are only needed for distribution tests and builds -->
    <pathelement location="${lib}/dom4j.jar"/>
  	<pathelement location="${lib}/jdom.jar"/>
  </path>
  <path id="binding-classpath">
    <pathelement location="${binddest}"/>
    <pathelement location="${rundest}"/>
    <pathelement location="${lib}/xpp3.jar"/>
    <pathelement location="${lib}/bcel.jar"/>
    <!-- The dom4j.jar and jdom.jar are only needed for distribution tests and builds -->
    <pathelement location="${lib}/dom4j.jar"/>
  	<pathelement location="${lib}/jdom.jar"/>
  </path>
  <path id="tests-classpath">
    <pathelement location="${testdest}"/>
    <pathelement location="${lib}/${bindname}.jar"/>
    <pathelement location="${lib}/${runname}.jar"/>
    <pathelement location="${lib}/${extrasname}.jar"/>
    <pathelement location="${lib}/xpp3.jar"/>
    <!-- The dom4j.jar and jdom.jar are only needed for distribution tests and builds -->
    <pathelement location="${lib}/dom4j.jar"/>
  	<pathelement location="${lib}/jdom.jar"/>
    <!-- The Xerces jars are only needed for testing on JDK 1.3 -->
    <pathelement location="${lib}/xml-apis.jar"/>
    <pathelement location="${lib}/xercesImpl.jar"/>
  </path>
  <path id="javadoc-classpath">
    <pathelement location="${lib}/${bindname}.jar"/>
    <pathelement location="${lib}/${runname}.jar"/>
    <pathelement location="${lib}/${extrasname}.jar"/>
    <pathelement location="${lib}/xpp3.jar"/>
    <pathelement location="${lib}/bcel.jar"/>
    <!-- The dom4j.jar and jdom.jar are only needed for distribution tests and builds -->
    <pathelement location="${lib}/dom4j.jar"/>
  	<pathelement location="${lib}/jdom.jar"/>
    <!-- The Xerces jars are only needed for distribution builds on JDK 1.3 -->
    <pathelement location="${lib}/xml-apis.jar"/>
    <pathelement location="${lib}/xercesImpl.jar"/>
  </path>
  <!-- Need to add jars at point of use, so that build doesn't test with old
   version (because Ant apparently gets the files at time of definition) -->
  <path id="tools-classpath">
    <pathelement location="${lib}/${bindname}.jar"/>
    <pathelement location="${lib}/${runname}.jar"/>
    <pathelement location="${lib}/bcel.jar"/>
    <pathelement location="${lib}/xpp3.jar"/>
  </path>
  
  <!-- Optional components -->
  <available property="dom4j" file="${lib}/dom4j.jar"/>
  <available property="jdom" file="${lib}/jdom.jar"/>

  <!-- Delete binding class files -->
  <target name="clean-bind">
    <delete quiet="true" file="${bindname}.jar"/>
    <delete quiet="true" dir="${binddest}/org/jibx/binding"/>
  </target>

  <!-- Delete runtime class files -->
  <target name="clean-run">
    <delete quiet="true" file="${runname}.jar"/>
    <delete quiet="true" dir="${rundest}/org/jibx/runtime"/>
  </target>

  <!-- Delete extras class files -->
  <target name="clean-extras">
    <delete quiet="true" file="${extrasname}.jar"/>
    <delete quiet="true" dir="${extrasdest}/org/jibx/extras"/>
  </target>
  
  <!-- Set options for release build -->
  <target name="setrelease">
    <property name="optimize" value="on"/>
    <property name="runtime-debug" value="off"/>
  </target>
  
  <!-- Set options for debug build -->
  <target name="setdebug">
    <property name="optimize" value="off"/>
    <property name="runtime-debug" value="on"/>
  </target>
  
  <!-- Compile the binding processing code -->
  <target name="compile-bind" depends="compile-run">
    <mkdir dir="${binddest}"/>
    <tempfile property="temp.file"/>
    <copy file="${src}/org/jibx/binding/def/BindingDefinition.java"
      tofile="${temp.file}" preservelastmodified="true"/>
    <replace file="${src}/org/jibx/binding/def/BindingDefinition.java"
      token="@distrib@" value="${distribname}"/>
    <javac srcdir="${src}"
      destdir="${binddest}"
      target="${target}"
      includes="org/jibx/binding/**/*.java"
      excludes="**/BindingGenerator.java,**/SchemaGenerator.java,org/jibx/binding/schema/**/*.java"
      optimize="${optimize}"
      debug="on"
      source="${source}"
      deprecation="on">
      <classpath refid="binding-classpath"/>
    </javac>
    <java classname="org.jibx.binding.Compile" fork="yes"
        classpathref="binding-classpath" failonerror="true">
      <!-- This command line argument should only be used when binding JiBX.
        It skips the step of validating the binding using the binding definition
        model (because the model itself uses JiBX binding, which can create
        bootstrapping problems in development. -->
      <arg value="-s"/>
      <arg value="${src}/org/jibx/binding/model/binding.xml"/>
    </java> 
    <move file="${temp.file}" preservelastmodified="true"
      tofile="${src}/org/jibx/binding/def/BindingDefinition.java"/>
  </target>

  <!-- Compile the runtime code -->
  <target name="compile-run">
    <mkdir dir="${rundest}"/>
    <tempfile property="temp.file"/>
    <copy file="${src}/org/jibx/runtime/IBindingFactory.java"
      tofile="${temp.file}" preservelastmodified="true"/>
    <replace file="${src}/org/jibx/runtime/IBindingFactory.java"
      token="@distrib@" value="${distribname}"/>
    <javac srcdir="${src}"
      destdir="${rundest}"
      target="${target}"
      includes="org/jibx/*.java,org/jibx/runtime/**/*.java"
      optimize="${optimize}"
      debug="${runtime-debug}"
      source="${source}"
      deprecation="on">
      <classpath refid="project-classpath"/>
    </javac>
    <move file="${temp.file}" preservelastmodified="true"
      tofile="${src}/org/jibx/runtime/IBindingFactory.java"/>
  </target>

  <!-- Compile the extras code -->
  <target name="compile-extras">
    <mkdir dir="${extrasdest}"/>
    <javac srcdir="${extrassrc}"
      destdir="${extrasdest}"
      target="${target}"
      includes="org/jibx/extras/**/*.java"
      optimize="${optimize}"
      debug="${runtime-debug}"
      source="${source}"
      deprecation="on">
      <classpath refid="project-classpath"/>
      <exclude name="**/org/jibx/extras/Dom4J*.java" unless="dom4j"/>
      <exclude name="**/org/jibx/extras/JDOM*.java" unless="jdom"/>
    </javac>
  </target>

  <!-- Clean files generated by the tests. -->
  <target name="clean-tests">
    <delete quiet="true" dir="${testdest}"/>
    <mkdir dir="${testdest}"/>
  </target>

  <!-- Compile and prepare the test code. -->
  <target name="prepare-tests">
    
    <!-- Compile the test code and copy resources. -->
    <echo message="Compiling the test code"/>
    <javac srcdir="${testsrc}"
      destdir="${testdest}"
      target="${target}"
      includes="org/jibx/match/**/*.java,multiple/*.java,simple/*.java,extras/*.java"
      excludes="extras/Dom4J*.java,extras/JDOM*.java"
      optimize="off"
      debug="on"
      source="${source}"
      deprecation="on">
      <classpath refid="tests-classpath"/>
    </javac>
    <copy todir="${testdest}">
      <fileset dir="${testsrc}" includes="**/*.xml,**/*.txt"/>
    </copy>
  </target>

  <!-- Test multiple bindings to same classes (flight timetable tests). -->
  <target name="run-multiple-tests">
    
    <!-- Add all the bindings used in multiple binding tests (twice on some, to
      check double-bind handling). -->
    <echo message="Beginning multiple binding compiler run"/>
    <taskdef name="bind" classname="org.jibx.binding.ant.CompileTask"
      classpath="${lib}/jibx-bind.jar"/>
    <bind>
      <classpathset dir="${testdest}"/>
      <bindingfileset dir="${testdata}">
        <include name="binding0.xml"/>
        <include name="binding1.xml"/>
        <include name="binding2.xml"/>
      </bindingfileset>
    </bind>
    <bind load="true">
      <classpathset dir="${testdest}"/>
      <bindingfileset dir="${testdata}">
        <include name="binding0.xml"/>
        <include name="binding1.xml"/>
        <include name="binding2.xml"/>
        <include name="binding2a.xml"/>
        <include name="binding3.xml"/>
<!--        <include name="binding3a.xml"/> -->
        <include name="binding4.xml"/>
        <include name="binding5.xml"/>
        <include name="binding5a.xml"/>
        <include name="binding6.xml"/>
      </bindingfileset>
    </bind>
    
    <!-- Run the actual multiple binding tests. -->
    <echo message="Beginning multiple binding test run"/>
    <java classname="org.jibx.match.TestMultiple" fork="yes" dir="${testdata}"
        failonerror="true">
      <classpath>
        <pathelement path="${testdest}"/>
        <pathelement path="${lib}/${runname}.jar"/>
        <pathelement path="${lib}/${extrasname}.jar"/>
        <pathelement path="${lib}/xpp3.jar"/>
      </classpath>
      
      <!-- This is the full set of crossbar tests with most combinations included -->
      <arg value="multiple.TimeTableBean"/>
      <arg value="binding0"/>
      <arg value="timetable0.xml"/>
      <arg value="binding0"/>
      <arg value="timetable0.xml"/>
      
      <arg value="multiple.TimeTableBean"/>
      <arg value="binding0"/>
      <arg value="timetable0.xml"/>
      <arg value="binding1"/>
      <arg value="timetable1.xml"/>
      
      <arg value="multiple.TimeTableBean"/>
      <arg value="binding0"/>
      <arg value="timetable0.xml"/>
      <arg value="binding2"/>
      <arg value="timetable2.xml"/>
      
      <arg value="multiple.TimeTableBean"/>
      <arg value="binding1"/>
      <arg value="timetable1.xml"/>
      <arg value="binding0"/>
      <arg value="timetable0.xml"/>
      
      <arg value="multiple.TimeTableBean"/>
      <arg value="binding1"/>
      <arg value="timetable1.xml"/>
      <arg value="binding2"/>
      <arg value="timetable2.xml"/>
      
      <arg value="multiple.SplitTableBean"/>
      <arg value="binding3"/>
      <arg value="timetable2.xml"/>
      <arg value="binding3"/>
      <arg value="splittable3.xml"/>
      
      <arg value="multiple.SplitTableBean"/>
      <arg value="binding3"/>
      <arg value="splittable3.xml"/>
      <arg value="binding3"/>
      <arg value="splittable3.xml"/>
      
<!--      <arg value="multiple.SplitTableBean"/>
      <arg value="binding3"/>
      <arg value="splittable3.xml"/>
      <arg value="binding3a"/>
      <arg value="splittable3a.xml"/>
      
      <arg value="multiple.SplitTableBean"/>
      <arg value="binding3a"/>
      <arg value="splittable3a.xml"/>
      <arg value="binding3"/>
      <arg value="splittable3.xml"/>  -->
      
      <arg value="multiple.SplitTableBean"/>
      <arg value="binding3"/>
      <arg value="splittable3.xml"/>
      <arg value="binding4"/>
      <arg value="splittable4.xml"/>
      
      <arg value="multiple.SplitTableBean"/>
      <arg value="binding3"/>
      <arg value="splittable3.xml"/>
      <arg value="binding5"/>
      <arg value="splittable5a.xml"/>
      
      <arg value="multiple.SplitTableBean"/>
      <arg value="binding3"/>
      <arg value="splittable3.xml"/>
      <arg value="binding5a"/>
      <arg value="splittable5a.xml"/>
      
      <arg value="multiple.SplitTableBean"/>
      <arg value="binding4"/>
      <arg value="splittable4.xml"/>
      <arg value="binding3"/>
      <arg value="splittable3.xml"/>
      
      <arg value="multiple.SplitTableBean"/>
      <arg value="binding4"/>
      <arg value="splittable4.xml"/>
      <arg value="binding4"/>
      <arg value="splittable4.xml"/>
      
      <arg value="multiple.SplitTableBean"/>
      <arg value="binding4"/>
      <arg value="splittable4.xml"/>
      <arg value="binding5"/>
      <arg value="splittable5a.xml"/>
      
      <arg value="multiple.SplitTableBean"/>
      <arg value="binding5"/>
      <arg value="splittable5.xml"/>
      <arg value="binding5"/>
      <arg value="splittable5a.xml"/>
      
      <arg value="multiple.SplitTableBean"/>
      <arg value="binding5"/>
      <arg value="splittable5a.xml"/>
      <arg value="binding5"/>
      <arg value="splittable5a.xml"/>
      
      <arg value="multiple.SplitTableBean"/>
      <arg value="binding5"/>
      <arg value="splittable5a.xml"/>
      <arg value="binding5a"/>
      <arg value="splittable5a.xml"/>
      
      <arg value="multiple.SplitTableBean"/>
      <arg value="binding5a"/>
      <arg value="splittable5a.xml"/>
      <arg value="binding5"/>
      <arg value="splittable5a.xml"/>
      
      <arg value="multiple.SplitTableBean"/>
      <arg value="binding5"/>
      <arg value="splittable5a.xml"/>
      <arg value="binding4"/>
      <arg value="splittable4.xml"/>
      
      <arg value="multiple.SplitTableBean"/>
      <arg value="binding5"/>
      <arg value="splittable5a.xml"/>
      <arg value="binding3"/>
      <arg value="splittable3.xml"/>
      
      <arg value="multiple.SplitTableBean"/>
      <arg value="binding6"/>
      <arg value="splittable4.xml"/>
      <arg value="binding6"/>
      <arg value="splittable4.xml"/>
      
      <!-- Handle simple tests for variations of standard run -->
      <arg value="multiple.TimeTableBean"/>
      <arg value="binding2"/>
      <arg value="timetable2.xml"/>
      <arg value="binding2a"/>
      <arg value="timetable2a.xml"/>
      
      <arg value="multiple.TimeTableBean"/>
      <arg value="binding2a"/>
      <arg value="timetable2a.xml"/>
      <arg value="binding2"/>
      <arg value="timetable2.xml"/>
    </java>
  </target>

  <!-- Test full set of conditions in single-binding test library. -->
  <target name="run-single-tests">
    
    <!-- Run single binding tests directly. -->
    <echo message="Checking asymmetric bindings --"/>
    <echo message="Will generate warnings for no way to load prior value"/>
    <taskdef name="bind" classname="org.jibx.binding.ant.CompileTask"
      classpath="${lib}/jibx-bind.jar"/>
    <bind load="true">
      <classpath>
        <pathelement path="${testdest}"/>
        <pathelement location="${lib}/${runname}.jar"/>
      </classpath>
      <bindingfileset dir="${simpledata}">
        <include name="binding3d.xml"/>
        <include name="binding0.xml"/>
        <include name="binding0a.xml"/>
        <include name="binding6b.xml"/>
      </bindingfileset>
    </bind>
    <java classname="org.jibx.match.TestMultiple" fork="yes" dir="${simpledata}"
        failonerror="true">
      <classpath refid="tests-classpath"/>
      <arg value="simple.Customer0"/>
      <arg value="binding0a"/>
      <arg value="simple0a.xml"/>
      <arg value="binding0"/>
      <arg value="simple.xml"/>
    </java>
    <echo message="Beginning single bind on load test run --"/>
    <echo message="Will generate warnings for deprecated label/using"/>
    <java classname="org.jibx.match.TestLoader" fork="yes" dir="${simpledata}"
        failonerror="true">
      <classpath refid="tests-classpath"/>
      <arg line="simple/binding0.xml simple.Customer0 simple.xml"/>
      <arg line="simple/binding1.xml simple.Customer1 simple.xml"/>
      <arg line="simple/binding1a.xml simple.Customer1 simple.xml"/>
      <arg line="simple/binding1a.xml simple.Customer1 simple1a.xml"/>
      <arg line="simple/binding1a.xml simple.Customer1 simple1b.xml"/>
      <arg line="simple/binding2.xml simple.Customer2 simple2.xml"/>
      <arg line="simple/binding2.xml simple.Customer2 simple2a.xml"/>
      <arg line="simple/binding2.xml simple.Customer2 simple2b.xml"/>
      <arg line="simple/binding2a.xml simple.Customer2 simple2b.xml"/>
      <arg line="simple/binding2a.xml simple.Customer2 simple2c.xml"/>
      <arg line="simple/binding0.xml simple.Customer0 simple1.xml"/>
      <arg line="simple/binding0.xml simple.Customer0 simple2.xml"/>
      <arg line="simple/binding3.xml simple.Customer3 simple3.xml"/>
      <arg line="simple/binding3a.xml simple.Customer3 simple3.xml"/>
      <arg line="simple/binding3b.xml simple.Customer3 simple3b.xml"/>
      <arg line="simple/binding3d.xml simple.Customer3 simple3d.xml"/>
      <arg line="simple/binding3e.xml simple.Customer3 simple3c.xml"/>
      <arg line="simple/binding4.xml simple.Customer4 simple4.xml"/>
      <arg line="simple/binding4a.xml simple.Customer4 simple4.xml"/>
      <arg line="simple/binding4b.xml simple.Customer4 simple4b.xml"/>
      <arg line="simple/binding4c.xml simple.Customer4 simple4b.xml"/>
      <arg line="simple/binding4c.xml simple.Customer4 simple4c.xml"/>
      <arg line="simple/binding5.xml simple.Customer5 simple5.xml"/>
      <arg line="simple/binding5a.xml simple.Customer5 simple5.xml"/>
      <arg line="simple/binding5b.xml simple.Customer5 simple5.xml"/>
      <arg line="simple/binding5c.xml simple.Customer5 simple5b.xml"/>
      <arg line="simple/binding5d.xml simple.Customer5 simple5.xml"/>
      <arg line="simple/binding5d.xml simple.Customer5 simple5b.xml"/>
      <arg line="simple/binding5e.xml simple.Customer5 simple5.xml"/>
      <arg line="simple/binding5e.xml simple.Customer5 simple5b.xml"/>
      <arg line="simple/binding5f.xml simple.Customer5 simple5.xml"/>
      <arg line="simple/binding6.xml simple.Customers6 simple6.xml"/>
      <arg line="simple/binding6a.xml simple.Customers6 simple6a.xml"/>
      <arg line="simple/binding6b.xml simple.Customers6 simple6a.xml"/>
      <arg line="simple/binding6c.xml simple.Customers6 simple6b.xml"/>
      <arg line="simple/binding7.xml simple.Customers7 simple7.xml"/>
      <arg line="simple/binding7.xml simple.Customers7 simple7a.xml"/>
      <arg line="simple/binding7a.xml simple.Customers7 simple7.xml"/>
      <arg line="simple/binding7a.xml simple.Customers7 simple7a.xml"/>
      <arg line="simple/binding7b.xml simple.Customers7 simple7.xml"/>
      <arg line="simple/binding7b.xml simple.Customers7 simple7a.xml"/>
      <arg line="simple/binding8.xml simple.Customer8a simple8a.xml"/>
      <arg line="simple/binding8.xml simple.Customer8b simple8b.xml"/>
      <arg line="simple/binding8.xml simple.Customers8 simple8.xml"/>
      <arg line="simple/binding8a.xml simple.Customers8 simple8d.xml"/>
      <arg line="simple/binding8b.xml simple.Customers8 simple8d.xml"/>
      <arg line="simple/binding8c.xml simple.Customers8 simple8d.xml"/>
      <arg line="simple/binding8d.xml simple.Customers8 simple8d.xml"/>
      <arg line="simple/binding9.xml simple.Customer9 simple9.xml"/>
      <arg line="simple/binding9.xml simple.Subscriber9 simple9a.xml"/>
      <arg line="simple/binding9.xml simple.Customer9 simple9b.xml"/>
      <arg line="simple/binding9.xml simple.Customer9 simple9c.xml"/>
      <arg line="simple/binding10.xml simple.Customer10 simple10.xml"/>
      <arg line="simple/binding10.xml simple.Customer10 simple10a.xml"/>
      <arg line="simple/mybinding1.xml simple.MyClass1 mytest1.xml"/>
      <arg line="simple/mybinding2.xml simple.MyClass2 mytest2.xml"/>
      <arg line="simple/mybinding2.xml simple.MyClass2 mytest2a.xml"/>
      <arg line="simple/mybinding2a.xml simple.MyClass2 mytest2.xml"/>
      <arg line="simple/mybinding2a.xml simple.MyClass2 mytest2a.xml"/>
      <arg line="simple/mybinding2b.xml simple.MyClass2 mytest2.xml"/>
      <arg line="simple/mybinding2b.xml simple.MyClass2 mytest2a.xml"/>
      <arg line="simple/mybinding2c.xml simple.MyClass2 mytest2.xml"/>
      <arg line="simple/mybinding2c.xml simple.MyClass2 mytest2a.xml"/>
      <arg line="simple/mybinding3.xml simple.MyClass3 mytest3.xml"/>
      <arg line="simple/mybinding3.xml simple.MyClass3 mytest3a.xml"/>
      <arg line="simple/mybinding3a.xml simple.MyClass3 mytest3.xml"/>
      <arg line="simple/mybinding3a.xml simple.MyClass3 mytest3a.xml"/>
      <arg line="simple/mybinding3b.xml simple.MyClass3 mytest3.xml"/>
      <arg line="simple/mybinding3b.xml simple.MyClass3 mytest3a.xml"/>
      <arg line="simple/mybinding3b.xml simple.MyClass3 mytest3c.xml"/>
      <arg line="simple/mybinding3c.xml simple.MyClass3 mytest3c.xml"/>
      <arg line="simple/mybinding3c.xml simple.MyClass3 mytest3d.xml"/>
      <arg line="simple/mybinding3d.xml simple.MyClass3 mytest3d.xml"/>
      <arg line="simple/mybinding3d.xml simple.MyClass3 mytest3e.xml"/>
<!--      <arg line="simple/mybinding3e.xml simple.MyClass3 mytest3.xml"/>
      <arg line="simple/mybinding3e.xml simple.MyClass3 mytest3a.xml"/>
      <arg line="simple/mybinding3e.xml simple.MyClass3 mytest3c.xml"/> -->
      <arg line="simple/mybinding3f.xml simple.MyClass3 mytest3.xml"/>
      <arg line="simple/mybinding3f.xml simple.MyClass3 mytest3a.xml"/>
      <arg line="simple/mybinding3f.xml simple.MyClass3 mytest3c.xml"/>
      <arg line="simple/mybinding4.xml simple.MyClass4 mytest4.xml"/>
      <arg line="simple/mybinding4.xml simple.MyClass4 mytest4a.xml"/>
      <arg line="simple/mybinding4.xml simple.MyClass4 mytest4b.xml"/>
      <arg line="simple/mybinding4a.xml simple.MyClass4 mytest4.xml"/>
      <arg line="simple/mybinding4a.xml simple.MyClass4 mytest4a.xml"/>
      <arg line="simple/mybinding4a.xml simple.MyClass4 mytest4b.xml"/>
      <arg line="simple/mybinding4a.xml simple.MyClass4 mytest4c.xml"/>
      <arg line="simple/mybinding4b.xml simple.MyClass4 mytest4.xml"/>
      <arg line="simple/mybinding4b.xml simple.MyClass4 mytest4a.xml"/>
      <arg line="simple/mybinding4b.xml simple.MyClass4 mytest4b.xml"/>
      <arg line="simple/mybinding4b.xml simple.MyClass4 mytest4c.xml"/>
      <arg line="simple/mybinding5.xml simple.MyClass5 mytest5.xml"/>
      <arg line="simple/mybinding5.xml simple.MyClass5 mytest5a.xml"/>
      <arg line="simple/mybinding5a.xml simple.MyClass5 mytest5a.xml"/>
      <arg line="simple/mybinding5a.xml simple.MyClass5 mytest5b.xml"/>
      <arg line="simple/mybinding6.xml simple.MyClass6 mytest6.xml"/>
      <arg line="simple/mybinding6.xml simple.MyClass6 mytest6a.xml"/>
      <arg line="simple/mybinding6a.xml simple.MyClass6 mytest6a.xml"/>
      <arg line="simple/mybinding6a.xml simple.MyClass6 mytest6b.xml"/>
      <arg line="simple/mybinding6b.xml simple.MyClass6 mytest6a.xml"/>
      <arg line="simple/mybinding7.xml simple.MyClass7 mytest7.xml"/>
      <arg line="simple/mybinding7a.xml simple.MyClass7 mytest7.xml"/>
      <arg line="simple/mybinding7b.xml simple.MyClass7 mytest7.xml"/>
    </java>
    <java classname="org.jibx.match.TestLoaderDiff" fork="yes"
        dir="${simpledata}" failonerror="true">
      <classpath refid="tests-classpath"/>
      <arg line="simple/binding4a.xml simple.Customer4 simple4a.xml simple4.xml"/>
      <arg line="simple/binding5.xml simple.Customer5 simple5a.xml simple5.xml"/>
      <arg line="simple/binding5a.xml simple.Customer5 simple5a.xml simple5.xml"/>
      <arg line="simple/binding5b.xml simple.Customer5 simple5a.xml simple5.xml"/>
      <arg line="simple/mybinding3.xml simple.MyClass3 mytest3b.xml mytest3a.xml"/>
      <arg line="simple/mybinding3a.xml simple.MyClass3 mytest3b.xml mytest3a.xml"/>
      <arg line="simple/mybinding6a.xml simple.MyClass6 mytest6c.xml mytest6b.xml"/>
    </java>
  </target>

  <!-- Test code from extras (except dom4j and jdom). -->
  <target name="run-extras-tests" depends="run-dom4j-tests,run-jdom-tests">
    
    <!-- Run extras binding tests directly. -->
    <echo message="Beginning extras bind on load test run"/>
    <java classname="org.jibx.match.TestLoader" fork="yes" dir="${extrasdata}"
        failonerror="true">
      <classpath refid="tests-classpath"/>
      <arg line="extras/binding0.xml extras.NameArray names0.xml"/>
      <arg line="extras/binding0.xml extras.NameArray names1.xml"/>
      <arg line="extras/binding1.xml extras.NameArray names0.xml"/>
      <arg line="extras/binding1.xml extras.NameArray names1.xml"/>
      <arg line="extras/binding2.xml extras.NameArray names0.xml"/>
      <arg line="extras/binding2.xml extras.NameArray names2.xml"/>
      <arg line="extras/binding3.xml extras.NameArray names0.xml"/>
      <arg line="extras/binding3.xml extras.NameArray names2.xml"/>
      <arg line="extras/binding3a.xml extras.NameArray names3.xml"/>
      <arg line="extras/binding3b.xml extras.NameArray names3b.xml"/>
      <arg line="extras/binding4.xml extras.TypedArray names1.xml"/>
      <arg line="extras/binding5.xml extras.TypedArray names1.xml"/>
      <arg line="extras/binding8.xml extras.ValueMap values0.xml"/>
      <arg line="extras/binding9.xml extras.ValueMap values1.xml"/>
      <arg line="extras/binding10.xml extras.QNameReference qnames1.xml"/>
      <arg line="extras/binding10.xml extras.QNameReference qnames2.xml"/>
      <arg line="extras/bindingdom0.xml extras.DomContact0 contact0.xml"/>
      <arg line="extras/bindingdom0.xml extras.DomContact0 contact1.xml"/>
      <arg line="extras/bindingdom0.xml extras.DomContact0 contact2.xml"/>
      <arg line="extras/bindingdom1.xml extras.DomContact1 contact0.xml"/>
      <arg line="extras/bindingdom1.xml extras.DomContact1 contact1.xml"/>
      <arg line="extras/bindingdom1.xml extras.DomContact1 contact2.xml"/>
      <arg line="extras/bindingdom2.xml extras.DomContact2 contact0.xml"/>
      <arg line="extras/bindingdom2.xml extras.DomContact2 contact1.xml"/>
      <arg line="extras/bindingdom2.xml extras.DomContact2 contact2.xml"/>
      <arg line="extras/bindingdom2.xml extras.DomContact2 contact3.xml"/>
      <arg line="extras/bindingdom3.xml extras.DomContact3 contact0.xml"/>
      <arg line="extras/bindingdom3.xml extras.DomContact3 contact1.xml"/>
      <arg line="extras/bindingdom3.xml extras.DomContact3 contact2.xml"/>
      <arg line="extras/bindingdom3.xml extras.DomContact3 contact3.xml"/>
    </java>
    <java classname="org.jibx.match.TestLoaderDiff" fork="yes"
        dir="${extrasdata}" failonerror="true">
      <classpath refid="tests-classpath"/>
      <arg line="extras/binding6.xml extras.Contact0 contact0.xml contact0.xml"/>
      <arg line="extras/binding6.xml extras.Contact0 contact1.xml contact0.xml"/>
      <arg line="extras/binding6.xml extras.Contact0 contact2.xml contact0.xml"/>
      <arg line="extras/binding7.xml extras.Contact0 contact0.xml contact0.xml"/>
      <arg line="extras/binding7.xml extras.Contact0 contact1.xml contact0.xml"/>
      <arg line="extras/binding7.xml extras.Contact0 contact2.xml contact0.xml"/>
      <arg line="extras/binding7.xml extras.Contact0 contact3.xml contact0.xml"/>
    </java>
  </target>

  <!-- Run dom4j blackbox tests. -->
  <target name="run-dom4j-tests" if="dom4j">
    
    <!-- Now compile the test code and copy resources. -->
    <echo message="Compiling the test code"/>
    <javac srcdir="${testsrc}"
      destdir="${testdest}"
      target="${target}"
      includes="org/jibx/match/**/*.java,extras/Dom4J*.java"
      optimize="off"
      debug="on"
      source="${source}"
      deprecation="on">
      <classpath refid="tests-classpath"/>
    </javac>
    <copy todir="${testdest}">
      <fileset dir="${testsrc}" includes="**/*.xml,**/*.txt"/>
    </copy>
    
    <!-- Run the actual tests. -->
    <echo message="Beginning dom4j load test run"/>
    <java classname="org.jibx.match.TestLoader" fork="yes" dir="${extrasdata}"
        failonerror="true">
      <classpath refid="tests-classpath"/>
      <arg line="extras/bindingdom4j0.xml extras.Dom4JContact0 contact0.xml"/>
      <arg line="extras/bindingdom4j0.xml extras.Dom4JContact0 contact1.xml"/>
      <arg line="extras/bindingdom4j0.xml extras.Dom4JContact0 contact2.xml"/>
      <arg line="extras/bindingdom4j1.xml extras.Dom4JContact1 contact0.xml"/>
      <arg line="extras/bindingdom4j1.xml extras.Dom4JContact1 contact1.xml"/>
      <arg line="extras/bindingdom4j1.xml extras.Dom4JContact1 contact2.xml"/>
      <arg line="extras/bindingdom4j2.xml extras.Dom4JContact2 contact0.xml"/>
      <arg line="extras/bindingdom4j2.xml extras.Dom4JContact2 contact1.xml"/>
      <arg line="extras/bindingdom4j2.xml extras.Dom4JContact2 contact2.xml"/>
      <arg line="extras/bindingdom4j2.xml extras.Dom4JContact2 contact3.xml"/>
    </java>
  </target>

  <!-- Run jdom blackbox tests. -->
  <target name="run-jdom-tests" if="jdom">
    
    <!-- Now compile the test code and copy resources. -->
    <echo message="Compiling the test code"/>
    <javac srcdir="${testsrc}"
      destdir="${testdest}"
      includes="org/jibx/match/**/*.java,extras/JDOM*.java"
      optimize="off"
      debug="on"
      source="${source}"
      deprecation="on">
      <classpath refid="tests-classpath"/>
    </javac>
    <copy todir="${testdest}">
      <fileset dir="${testsrc}" includes="**/*.xml,**/*.txt"/>
    </copy>
    
    <taskdef name="bind" classname="org.jibx.binding.ant.CompileTask"
      classpath="${lib}/jibx-bind.jar"/>
    <bind>
      <classpathset dir="${testdest}"/>
      <bindingfileset dir="${extrasdata}">
        <include name="bindingjdom*.xml"/>
      </bindingfileset>
    </bind>
  	
    <!-- Run the actual tests. -->
    <echo message="Beginning jdom junit test run"/>
    <junit haltonfailure="true">
      <classpath refid="tests-classpath"/>
      <formatter type="brief" usefile="false"/>
      <batchtest fork="yes" todir="${testdest}">
        <fileset dir="${testsrc}">
          <include name="**/JDOM*Test.java"/>
        </fileset>
      </batchtest>
    </junit>
  </target>

  <!-- Compile tutorial code samples. -->
  <target name="compile-tutorial">
    <echo message="Compiling the tutorial examples"/>
    <javac srcdir="${tutorial}"
      destdir="${testdest}"
      target="${target}"
      includes="**/*.java"
      optimize="off"
      debug="on"
      source="${source}"
      deprecation="on">
      <classpath refid="tests-classpath"/>
    </javac>
  </target>

  <!-- Test tutorial code (except example21, which may not work on all JVMs). -->
  <target name="run-tutorial-tests" depends="run-tutorial-example21">
    
    <!-- Add the bindings for tutorial examples. -->
    <echo message="Beginning tutorial binding compiler run"/>
    <taskdef name="bind" classname="org.jibx.binding.ant.CompileTask"
      classpath="${lib}/jibx-bind.jar"/>
    <bind>
      <classpathset dir="${testdest}"/>
      <bindingfileset dir="${tutorial}">
        <include name="example1/binding.xml"/>
        <include name="example2/binding.xml"/>
        <include name="example3/binding.xml"/>
        <include name="example5/binding.xml"/>
        <include name="example6/binding.xml"/>
        <include name="example7/binding.xml"/>
        <include name="example8/binding.xml"/>
        <include name="example9/binding.xml"/>
        <include name="example10/binding.xml"/>
        <include name="example11/binding.xml"/>
        <include name="example12/binding.xml"/>
        <include name="example13/binding.xml"/>
        <include name="example14/binding.xml"/>
        <include name="example15/binding.xml"/>
        <include name="example16/binding.xml"/>
        <include name="example17/binding.xml"/>
        <include name="example18/binding.xml"/>
        <include name="example19/binding.xml"/>
        <include name="example20/binding.xml"/>
        <include name="example22/binding0.xml"/>
        <include name="example22/binding1.xml"/>
        <include name="example22/binding2.xml"/>
      </bindingfileset>
    </bind>
    
    <!-- Run the tutorial example tests. -->
    <echo message="Beginning tutorial examples test run"/>
    <java classname="org.jibx.extras.TestRoundtrip" fork="yes" dir="${tutorial}"
        failonerror="true">
      <classpath refid="tests-classpath"/>
      <arg line="example1.Customer example1/data.xml example1/data.xml"/>
      <arg line="example2.Customer example2/data.xml example2/data.xml"/>
      <arg line="example3.Customer example3/data.xml example3/out.xml"/>
      <arg line="example5.Customer example5/data.xml example5/data.xml"/>
      <arg line="example6.Customer example6/data.xml example6/data.xml"/>
      <arg line="example7.Customer example7/data.xml example7/out.xml"/>
      <arg line="example8.TimeTable example8/data.xml example8/data.xml"/>
      <arg line="example9.TimeTable example9/data.xml example9/data.xml"/>
      <arg line="example10.TimeTable example10/data.xml example10/data.xml"/>
      <arg line="example11.TimeTable example11/data.xml example11/data.xml"/>
      <arg line="example12.Customer example12/data.xml example12/data.xml"/>
      <arg line="example13.Customer example13/data.xml example13/data.xml"/>
      <arg line="example14.Customer example14/data1.xml example14/data1.xml"/>
      <arg line="example14.Subscriber example14/data2.xml example14/data2.xml"/>
      <arg line="example14.Customer example14/data3.xml example14/data3.xml"/>
      <arg line="example15.Customer example15/data1.xml example15/data1.xml"/>
      <arg line="example15.Subscriber example15/data2.xml example15/data2.xml"/>
      <arg line="example15.Customer example15/data3.xml example15/data3.xml"/>
      <arg line="example16.Customer example16/data1.xml example16/data1.xml"/>
      <arg line="example16.Customer example16/data2.xml example16/data2.xml"/>
      <arg line="example17.Customer example17/data1.xml example17/data1.xml"/>
      <arg line="example17.Customer example17/data2.xml example17/data2.xml"/>
      <arg line="example17.Customer example17/data3.xml example17/data3.xml"/>
      <arg line="example18.Customer example18/data.xml example18/data.xml"/>
      <arg line="example19.Order example19/data.xml example19/data.xml"/>
      <arg line="example20.Customer example20/data.xml example20/data.xml"/>
    </java>
    <java classname="example22.Test" fork="yes" dir="${tutorial}/example22"
        failonerror="true">
      <classpath refid="tests-classpath"/>
      <arg value="data0.xml"/>
    </java>
    <java classname="example22.Test" fork="yes" dir="${tutorial}/example22"
        failonerror="true">
      <classpath refid="tests-classpath"/>
      <arg value="data1.xml"/>
    </java>
    <java classname="example22.Test" fork="yes" dir="${tutorial}/example22"
        failonerror="true">
      <classpath refid="tests-classpath"/>
      <arg value="data2.xml"/>
    </java>
  </target>

  <!-- Test example21, which may not work on all JVMs. -->
  <target name="run-tutorial-example21" depends="compile-tutorial" unless="skip21">
    
    <!-- Add the bindings for example21. -->
    <taskdef name="bind" classname="org.jibx.binding.ant.CompileTask"
      classpath="${lib}/jibx-bind.jar"/>
    <bind>
      <classpathset dir="${testdest}"/>
      <bindingfileset dir="${tutorial}">
        <include name="example21/binding1.xml"/>
      </bindingfileset>
    </bind>
    
    <!-- Run the example21 tests. -->
    <java classname="org.jibx.extras.TestRoundtrip" fork="yes" dir="${tutorial}"
        failonerror="true">
      <classpath refid="tests-classpath"/>
      <arg line="example21.Directory example21/data1.xml example21/data1.xml"/>
    </java>
  </target>

  <!-- Build the user javadocs -->
  <target name="javadoc">
    <delete quiet="true">
      <fileset dir="${userdocs}" includes="*"/>
    </delete>
    <mkdir dir="${userdocs}"/>
    <javadoc packagenames="org.jibx.runtime,org.jibx.runtime.impl,org.jibx.extras"
       sourcepath="${src}:${extrassrc}"
       destdir="${userdocs}"
       author="true"
       version="true"
       noindex="true"
       nohelp="true"
       notree="true"
       access="public"
       windowtitle="${project} - Version ${version}"
       doctitle="${project} - Version ${version}"
       >
       <bottom>&lt;table width='80%%'&gt;&lt;tr&gt;&lt;td width='50%%'&gt;&lt;p align='center'&gt;&lt;a href='http://www.jibx.org/' target='_top'&gt;&lt;font size='3'&gt;&lt;b&gt;Project Web Site&lt;/b&gt;&lt;/font&gt;&lt;/a&gt;&lt;/td&gt;&lt;td width='50%%'&gt;&lt;p align='center'&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</bottom>
      <classpath refid="javadoc-classpath"/>
    </javadoc>
  </target>

  <!-- Build the internal javadocs -->
  <target name="devdoc">
    <delete quiet="true">
      <fileset dir="${devdocs}" includes="*"/>
    </delete>
    <mkdir dir="${devdocs}"/>
    <javadoc packagenames="org.jibx.runtime,org.jibx.runtime.impl,org.jibx.binding,org.jibx.binding.def,org.jibx.binding.classes,org.jibx.extras"
       sourcepath="${src}:${extrassrc}"
       destdir="${devdocs}"
       author="true"
       version="true"
       noindex="true"
       nohelp="true"
       notree="true"
       access="private"
       windowtitle="${project} - Version ${version}"
       doctitle="${project} - Version ${version}"
       >
       <bottom>&lt;table width='80%%'&gt;&lt;tr&gt;&lt;td width='50%%'&gt;&lt;p align='center'&gt;&lt;a href='http://www.jibx.org/' target='_top'&gt;&lt;font size='3'&gt;&lt;b&gt;Project Web Site&lt;/b&gt;&lt;/font&gt;&lt;/a&gt;&lt;/td&gt;&lt;td width='50%%'&gt;&lt;p align='center'&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</bottom>
      <classpath refid="javadoc-classpath"/>
    </javadoc>
  </target>

  <!-- Build only the binding class file jar -->
  <target name="jar-bind" depends="clean-bind,compile-bind">
    <delete file="${lib}/${bindname}.jar" quiet="true"/>
    <jar jarfile="${lib}/${bindname}.jar" basedir="${binddest}"
      includes="org/jibx/binding/**/*.class">
      <manifest>
        <attribute name="Main-Class" value="org/jibx/binding/Compile"/>
        <attribute name="Class-Path" value="bcel.jar jibx-run.jar xpp3.jar"/>
      </manifest>
    </jar>
  </target>

  <!-- Build only the runtime class file jar -->
  <target name="jar-run" depends="clean-run,compile-run">
    <delete file="${lib}/${runname}.jar" quiet="true"/>
    <jar jarfile="${lib}/${runname}.jar" basedir="${rundest}"
      includes="org/jibx/runtime/**/*.class"/>
  </target>

  <!-- Build only the extras class file jar -->
  <target name="jar-extras" depends="clean-extras,compile-extras">
    <delete file="${lib}/${extrasname}.jar" quiet="true"/>
    <jar jarfile="${lib}/${extrasname}.jar" basedir="${extrasdest}"
      includes="org/jibx/extras/**/*.class">
      <manifest>
        <attribute name="Main-Class" value="org/jibx/extras/TestRoundtrip"/>
        <attribute name="Class-Path" value="jibx-run.jar xpp3.jar"/>
      </manifest>
    </jar>
  </target>

  <!-- Build the zip file for distribution -->
  <target name="zip-distrib">
    <delete file="${root}/${distribname}.zip" quiet="true"/>
    <zip zipfile="${root}/${distribname}.zip">
      <zipfileset prefix="jibx" dir="${root}" includes="**/*"
          excludes="*.zip,**/CVS,lib/dom4j*.jar,lib/xercesImpl.jar,lib/xml-apis.jar,lib/jdom*.jar,lib/jibx-gen*.jar,build/classes/**/*,build/docs/**/*,build/temp.xml,**/.*,**/*.launch,build/**/*.txt,build/src/org/jibx/binding/schema/**/*"/>
    </zip>
  </target>
  
  <!-- Build the jar files for the generator tools -->
  <target name="jar-tools" depends="setdebug">
    <delete file="${lib}/jibx-genbinding.jar" quiet="true"/>
    <delete file="${lib}/jibx-genschema.jar" quiet="true"/>
    <delete quiet="true" dir="${toolsdest}"/>
    <mkdir dir="${toolsdest}"/>
    <javac srcdir="${src}"
      destdir="${toolsdest}"
      target="${target}"
      includes="org/jibx/binding/BindingGenerator.java"
      optimize="${optimize}"
      debug="on"
      source="${source}"
      deprecation="on">
      <classpath refid="tools-classpath"/>
    </javac>
    <jar jarfile="${lib}/jibx-genbinding.jar" basedir="${toolsdest}">
      <manifest>
        <attribute name="Main-Class" value="org/jibx/binding/BindingGenerator"/>
        <attribute name="Class-Path" value="jibx-bind.jar jibx-run.jar jibx-extras.jar xpp3.jar"/>
      </manifest>
    </jar>
    <delete quiet="true" dir="${toolsdest}"/>
    <mkdir dir="${toolsdest}"/>
    <javac srcdir="${src}"
      destdir="${toolsdest}"
      target="${target}"
      includes="org/jibx/binding/SchemaGenerator.java"
      optimize="${optimize}"
      debug="on"
      source="${source}"
      deprecation="on">
      <classpath refid="tools-classpath"/>
    </javac>
    <jar jarfile="${lib}/jibx-genschema.jar" basedir="${toolsdest}">
      <manifest>
        <attribute name="Main-Class" value="org/jibx/binding/SchemaGenerator"/>
        <attribute name="Class-Path" value="jibx-bind.jar jibx-run.jar jibx-extras.jar xpp3.jar"/>
      </manifest>
    </jar>
  </target>
  
  <!-- Targets for running blackbox tests on framework - these should be run
    only after building the code using the "current" target, but are not
    dependent on it to allow selective testing (modify test code or documents
    between test runs, etc.). -->
  <target name="test-tutorial" depends="clean-tests,compile-tutorial,run-tutorial-tests,clean-tests"/>
  <target name="test-multiples" depends="clean-tests,prepare-tests,run-multiple-tests,clean-tests"/>
  <target name="test-singles" depends="clean-tests,prepare-tests,run-single-tests,clean-tests"/>
  <target name="test-extras" depends="clean-tests,prepare-tests,run-extras-tests,clean-tests"/>
  <target name="basic-blackbox" depends="clean-tests,prepare-tests,run-multiple-tests,run-single-tests,run-extras-tests,clean-tests"/>
  <target name="blackbox" depends="clean-tests,prepare-tests,run-multiple-tests,run-single-tests,run-extras-tests,compile-tutorial,run-tutorial-tests,clean-tests"/>

  <!-- Targets for building the framework. -->
  <target name="build-jibx" depends="clean-run,clean-bind,compile-run,compile-bind,clean-extras,compile-extras"/>
  <target name="debug" depends="setdebug,build-jibx"/>
  <target name="develop" depends="debug,devdoc"/>
  <target name="current" depends="setdebug,build-jibx,jar-run,jar-bind,jar-extras"/>
  <target name="testing" depends="current,blackbox"/>
  <target name="distrib" depends="setrelease,build-jibx,jar-run,jar-bind,jar-extras,blackbox,javadoc,zip-distrib"/>
  
</project>