-
Notifications
You must be signed in to change notification settings - Fork 157
/
antbuild.xml
983 lines (961 loc) · 59.9 KB
/
antbuild.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
<?xml version="1.0"?>
<!--/*******************************************************************************
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 and Eclipse Distribution License v. 1.0
* which accompanies this distribution.
* The Eclipse Public License is available at http://www.eclipse.org/legal/epl-v10.html
* and the Eclipse Distribution License is available at
* http://www.eclipse.org/org/documents/edl-v10.php.
*
* Ant naming conventions:
* - regardless of the actual OS platform,'/' is the directory separator
* (Ant will convert as appropriate).
* - multi-word properties use periods '.'
* - properties ending in .jar define jarfile names only (no path)
* - properties ending in .lib are fully qualified jars (path and filename)
* - properties ending in .dir are directory paths
* - properties ending in .path are path refid names or explicit classpath fragments
* - multi-word targets use hyphens '-'
* - targets beginning with test- are reserved for high level test targets,
* and are used in test results parsing
* - targets typically use the form <action>-<object>-<type> (ie. package-bundle-zip)
* - multi-word macros use underscores '_'
* - multi-word macro attributes are concatenated
* e.g. 'runpathref'
* - multi-word tasks (taskdef) names are concatenated
* e.g. 'validateconnection'
* - OS environment variables are in ALLCAPS and have 'env' as a prefix
* e.g. ${env.XXX}.
* - Ant properties are lower case.
*
* Contributors:
* bdoughan - initial API and implementation
* dtwelves - Sep 2008 - add in MOXy SRG testing
* egwin - Nov 2008 - remove compile of MOXY (add dep check instead)
* rbarkhouse - 06 Apr 2011 - Separate JavadocAnnotationExamples from JAXBTestSuite
* dmahar - Jan 2012 - remove update-package-names targets
* bdoughan - Sep 2012 - Added RESTful tests and necessary dependencies
* mvalovy - Mar-Jul 2014 - Added Bean Validation support, JAXBBeanValidationTestSuite
#******************************************************************************/-->
<project name="eclipselink.moxy.test" default="test" basedir=".">
<available file="../${ant.project.name}" type="dir" property="moxytest.is.local"/>
<fail message="Not running from '${ant.project.name}' directory" unless="moxytest.is.local"/>
<dirname property="moxytest.build.location_temp" file="${ant.file.eclipselink.moxy.test}"/>
<pathconvert targetos="unix" property="moxytest.build.location">
<path>
<pathelement location="${moxytest.build.location_temp}"/>
</path>
</pathconvert>
<echo message="moxytest.build.location = '${moxytest.build.location}'"/>
<condition property="moxytest.2.trunk.dir" value="../.." else="..">
<contains string="${moxytest.build.location}" substring="moxy/${ant.project.name}"/>
</condition>
<echo message="moxytest.2.trunk.dir = '${moxytest.2.trunk.dir}'"/>
<property name="moxytest.2.common.plugins.dir" value="${moxytest.2.trunk.dir}/plugins"/>
<property name="moxytest.2.moxy.dir" value="${moxytest.2.trunk.dir}/moxy/org.eclipse.persistence.moxy"/>
<property name="moxytest.2.core.dir" value="${moxytest.2.trunk.dir}/foundation/org.eclipse.persistence.core"/>
<property name="moxytest.2.dynamic.dir" value="${moxytest.2.trunk.dir}/moxy/org.eclipse.persistence.moxy.dynamicxjc"/>
<property name="moxytest.2.buildsys.dir" value="${moxytest.2.trunk.dir}/buildsystem"/>
<property name="moxytest.plugins.dir" value="../plugins"/>
<!-- Temporary until eclipselink.jar property is globally renamed -->
<property name="eclipselink.jar" value="eclipselink.jar"/>
<!-- Allows a user to override certain user specific properties. -->
<property file="${user.home}/build.properties"/>
<property file="${moxytest.build.location}/antbuild.properties"/>
<propertyset id="parser.properties">
<propertyref prefix="javax.xml"/>
</propertyset>
<property name="custom.tasks.lib" value="${moxytest.2.buildsys.dir}/ant_customizations.jar"/>
<property name="custom.selectbundle.task.class" value="org.eclipse.persistence.buildtools.ant.taskdefs.SelectBundle"/>
<taskdef name="selectbundle" classname="${custom.selectbundle.task.class}" classpath="${custom.tasks.lib}"/>
<selectbundle basename="org.eclipse.persistence.nosql" directory="${moxytest.build.location}/${moxytest.2.common.plugins.dir}" separator="_"
criterion="[2.0.0,9.0.0)" property="oep.nosql.lib" includepath="true"
/>
<echo message="oep.nosql.lib ='${oep.nosql.lib}'"/>
<property name="eclipselink.lib" value="${moxytest.2.trunk.dir}/${eclipselink.jar}"/>
<property name="xjc-beanval.lib" value="${moxytest.2.trunk.dir}/beanval/target/${xjc-beanval.jar}"/>
<property name="jaxb-xjc.lib" value="${moxytest.2.common.plugins.dir}/${jaxb-xjc.jar}"/>
<property name="jaxb-api.lib" value="${moxytest.2.common.plugins.dir}/${jaxb-api.jar}"/>
<property name="jaxb-impl.lib" value="${moxytest.2.common.plugins.dir}/${jaxb-impl.jar}"/>
<property name="jaxb-core.lib" value="${moxytest.2.common.plugins.dir}/${jaxb-core.jar}"/>
<property name="javax.validation.lib" value="${moxytest.2.common.plugins.dir}/${javax.validation.jar}"/>
<property name="validation-impl.lib" value="${extensions.depend.dir}/${validation-impl.jar}"/>
<property name="jboss-logging.lib" value="${extensions.depend.dir}/${jboss-logging.jar}"/>
<property name="javax.el-api.lib" value="${extensions.depend.dir}/${javax.el-api.jar}"/>
<property name="javax.el.lib" value="${extensions.depend.dir}/${javax.el.jar}"/>
<property name="classmate.lib" value="${extensions.depend.dir}/${classmate.jar}"/>
<property name="jmockit.lib" value="${extensions.depend.dir}/${jmockit.jar}"/>
<property name="jacocoagent.lib" value="${extensions.depend.dir}/${jacocoagent.jar}"/>
<condition property="validate.jar.exists">
<and>
<available file="${extensions.depend.dir}/${validation-impl.jar}" />
<available file="${extensions.depend.dir}/${jboss-logging.jar}" />
<available file="${extensions.depend.dir}/${javax.el-api.jar}" />
<available file="${extensions.depend.dir}/${javax.el.jar}" />
<available file="${extensions.depend.dir}/${classmate.jar}" />
</and>
</condition>
<path id="xml.parser.path">
<fileset
dir="${xml.parser.jar.dir}"
includes="${xml.parser.jar}"/>
</path>
<!-- Compile/run paths -->
<path id="jaxb.compile.path">
<path refid="xml.parser.path"/>
<pathelement path="${jaxb-api.lib}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${json.jar}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${activation.jar}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${resource.jar}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${ejb.jar}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${jms.jar}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${stax_api.jar}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${transaction.jar}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${mail.jar}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${jaxrs.jar}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${asm.jar}"/>
<pathelement path="${oep.nosql.lib}"/>
<pathelement path="${jmockit.lib}"/>
<pathelement path="${junit.lib}"/>
<pathelement path="${moxytest.2.moxy.dir}/target/${classes.dir}"/>
<pathelement path="${moxytest.2.core.dir}/target/${classes.dir}"/>
<pathelement path="${jaxb-xjc.lib}"/>
<pathelement path="${jaxb-impl.lib}"/>
<pathelement path="${jaxb-core.lib}"/>
<pathelement path="${javax.validation.lib}"/>
</path>
<path id="jaxb.run.path">
<path refid="xml.parser.path"/>
<pathelement path="${jaxb-api.lib}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${json.jar}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${activation.jar}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${mail.jar}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${jaxrs.jar}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${asm.jar}"/>
<pathelement path="${moxytest.2.moxy.dir}/target/${classes.dir}"/>
<pathelement path="${moxytest.2.moxy.dir}/${resource.dir}"/>
<pathelement path="${moxytest.2.dynamic.dir}/${classes.dir}"/>
<pathelement path="${classes.dir}"/>
<pathelement path="${resource.dir}"/>
<pathelement path="${moxytest.2.core.dir}/target/${classes.dir}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/org.eclipse.persistence.asm"/>
<pathelement path="${xjc-beanval.lib}"/>
<pathelement path="${jaxb-xjc.lib}"/>
<pathelement path="${jaxb-impl.lib}"/>
<pathelement path="${jaxb-core.lib}"/>
<pathelement path="${jmockit.lib}"/>
<pathelement path="${jacocoagent.lib}"/>
<pathelement path="${junit.lib}"/>
<pathelement path="${validation-impl.lib}"/>
<pathelement path="${jboss-logging.lib}"/>
<pathelement path="${javax.el-api.lib}"/>
<pathelement path="${javax.el.lib}"/>
<pathelement path="${classmate.lib}"/>
<pathelement path="${javax.validation.lib}"/>
</path>
<path id="oxm.compile.path">
<path refid="xml.parser.path"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${activation.jar}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${resource.jar}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${ejb.jar}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${jms.jar}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${stax_api.jar}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${transaction.jar}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${mail.jar}"/>
<pathelement path="${oep.nosql.lib}"/>
<pathelement path="${jmockit.lib}"/>
<pathelement path="${junit.lib}"/>
<pathelement path="${moxytest.2.moxy.dir}/target/${classes.dir}"/>
<pathelement path="${moxytest.2.core.dir}/target/${classes.dir}"/>
</path>
<path id="oxm.run.path">
<path refid="xml.parser.path"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${activation.jar}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${resource.jar}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${ejb.jar}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${jms.jar}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${stax_api.jar}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${transaction.jar}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${mail.jar}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${asm.jar}"/>
<pathelement path="${moxytest.2.moxy.dir}/target/${classes.dir}"/>
<pathelement path="${classes.dir}"/>
<pathelement path="${resource.dir}"/>
<pathelement path="${moxytest.2.core.dir}/target/${classes.dir}"/>
<pathelement path="${jmockit.lib}"/>
<pathelement path="${jacocoagent.lib}"/>
<pathelement path="${junit.lib}"/>
</path>
<!-- The following compile/run paths reference eclipselink.jar for non-test classes and resources -->
<path id="jaxb.compile.against.jar.path">
<path refid="xml.parser.path"/>
<pathelement path="${jmockit.lib}"/>
<pathelement path="${junit.lib}"/>
<pathelement path="${jaxb-api.lib}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${json.jar}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${activation.jar}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${resource.jar}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${ejb.jar}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${jms.jar}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${stax_api.jar}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${transaction.jar}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${mail.jar}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${jaxrs.jar}"/>
<pathelement path="${oep.nosql.lib}"/>
<pathelement path="${eclipselink.lib}"/>
<pathelement path="${jaxb-xjc.lib}"/>
<pathelement path="${jaxb-impl.lib}"/>
<pathelement path="${jaxb-core.lib}"/>
<pathelement path="${javax.validation.lib}"/>
</path>
<path id="jaxb.run.against.jar.path">
<path refid="xml.parser.path"/>
<pathelement path="${jmockit.lib}"/>
<pathelement path="${jacocoagent.lib}"/>
<pathelement path="${junit.lib}"/>
<pathelement path="${jaxb-api.lib}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${json.jar}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${activation.jar}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${stax_api.jar}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${mail.jar}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${jaxrs.jar}"/>
<pathelement path="${oep.nosql.lib}"/>
<pathelement path="${classes.dir}"/>
<pathelement path="${resource.dir}"/>
<pathelement path="${eclipselink.lib}"/>
<pathelement path="${xjc-beanval.lib}"/>
<pathelement path="${jaxb-xjc.lib}"/>
<pathelement path="${jaxb-impl.lib}"/>
<pathelement path="${jaxb-core.lib}"/>
<pathelement path="${javax.validation.lib}"/>
<pathelement path="${validation-impl.lib}"/>
<pathelement path="${jboss-logging.lib}"/>
<pathelement path="${javax.el-api.lib}"/>
<pathelement path="${javax.el.lib}"/>
<pathelement path="${classmate.lib}"/>
</path>
<path id="oxm.compile.against.jar.path">
<path refid="xml.parser.path"/>
<pathelement path="${jaxb-api.lib}"/>
<pathelement path="${jmockit.lib}"/>
<pathelement path="${junit.lib}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${activation.jar}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${resource.jar}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${ejb.jar}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${jms.jar}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${stax_api.jar}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${transaction.jar}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${mail.jar}"/>
<pathelement path="${oep.nosql.lib}"/>
<pathelement path="${eclipselink.lib}"/>
</path>
<path id="oxm.run.against.jar.path">
<path refid="xml.parser.path"/>
<pathelement path="${jmockit.lib}"/>
<pathelement path="${junit.lib}"/>
<pathelement path="${jaxb-api.lib}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${json.jar}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${activation.jar}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${resource.jar}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${ejb.jar}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${jms.jar}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${stax_api.jar}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${transaction.jar}"/>
<pathelement path="${moxytest.2.common.plugins.dir}/${mail.jar}"/>
<pathelement path="${oep.nosql.lib}"/>
<pathelement path="${classes.dir}"/>
<pathelement path="${resource.dir}"/>
<pathelement path="${eclipselink.lib}"/>
</path>
<!-- Test targets -->
<target name="test" depends="clean-reports, compile-and-run-tests, moxy-junit-report" description="run moxy tests and generate junit report"/>
<target name="test-jaxb" depends="clean-jaxb-reports, compile-and-run-jaxb-tests, jaxb-junit-report" description="build and run moxy (jaxb) tests and generate junit report"/>
<target name="test-oxm" depends="clean-oxm-reports, compile-and-run-oxm-tests, oxm-junit-report" description="build and run moxy (oxm) tests and generate junit report"/>
<target name="test-tl-deploymentxml" depends="clean-oxm-reports, compile-and-run-oxm-deploymentxml-tl-tests, oxm-junit-report" description="build and run moxy (oxm) tl deployment xml tests and generate junit report"/>
<target name="test-package-installer-zip" depends="clean-installer-reports, compile-tests, run-installer-tests, installer-junit-report" description="build and run moxy (installer) tests and generate junit report"/>
<!-- The following tests build and run against eclipselink.jar -->
<target name="test-against-jar" depends="clean-reports, compile-and-run-tests-against-jar, moxy-junit-report" description="run moxy tests against eclipselink.jar and generate junit report"/>
<target name="test-srg-against-jar" depends="compile-and-run-srg-tests-against-jar, moxy-srg-junit-report" description="run moxy srg tests against eclipselink.jar and generate junit report"/>
<target name="test-jaxb-against-jar" depends="clean-jaxb-reports, compile-and-run-jaxb-tests-against-jar, jaxb-junit-report" description="build and run moxy (jaxb) tests against eclipselink.jar and generate junit report"/>
<target name="test-oxm-against-jar" depends="clean-oxm-reports, compile-and-run-oxm-tests-against-jar, oxm-junit-report" description="build and run moxy (oxm) tests against eclipselink.jar and generate junit report"/>
<!-- Build targets -->
<target name="compile-tests" depends="clean" description="build moxy test classes">
<available file="${moxytest.2.common.plugins.dir}/org.eclipse.persistence.moxy_${version.string}.jar" property="moxy.bundle.exist"/>
<!-- fail message="Cannot find MOXY: '${moxytest.2.common.plugins.dir}/org.eclipse.persistence.moxy_${version.string}.jar'." unless="moxy.bundle.exist"/ -->
<compile_moxy_tests subcomponent="oxm" compilepathref="oxm.compile.path"/>
<compile_moxy_tests subcomponent="jaxb" compilepathref="jaxb.compile.path"/>
<compile_moxy_tests subcomponent="moxy" compilepathref="jaxb.compile.path"/>
</target>
<target name="compile-tests-against-jar" depends="clean" description="build moxy test classes against eclipselink.jar">
<echo message="Compiling OXM tests..."/>
<compile_moxy_tests subcomponent="oxm" compilepathref="oxm.compile.against.jar.path"/>
<echo message=""/>
<echo message="Compiling JAXB tests..."/>
<compile_moxy_tests subcomponent="jaxb" compilepathref="jaxb.compile.against.jar.path"/>
<echo message="Compiling MOXy unit tests..."/>
<compile_moxy_tests subcomponent="moxy" compilepathref="jaxb.compile.against.jar.path"/>
</target>
<!-- Build & Run targets -->
<target name="compile-and-run-tests" depends="compile-tests" description="build and run moxy tests">
<run_jaxb_tests runpathref="jaxb.run.path"/>
<run_oxm_tests runpathref="oxm.run.path"/>
<run_oxm_dom_tests runpathref="oxm.run.path"/>
<run_oxm_deploymentxml_tests runpathref="oxm.run.path"/>
<run_oxm_docpres_tests runpathref="oxm.run.path"/>
<run_oxm_non_default_system_properties runpathref="oxm.run.path"/>
</target>
<target name="compile-and-run-jaxb-tests" depends="compile-tests" description="build and run moxy (oxm) tests">
<run_jaxb_tests runpathref="jaxb.run.path"/>
</target>
<target name="compile-and-run-oxm-tests" depends="compile-tests" description="build and run moxy (oxm) tests">
<run_oxm_tests runpathref="oxm.run.path"/>
<run_oxm_dom_tests runpathref="oxm.run.path"/>
<run_oxm_deploymentxml_tests runpathref="oxm.run.path"/>
<run_oxm_docpres_tests runpathref="oxm.run.path"/>
<run_oxm_non_default_system_properties runpathref="oxm.run.path"/>
</target>
<target name="compile-and-run-oxm-deploymentxml-tl-tests" depends="compile-tests" description="build and run moxy (oxm) tl deployment xml tests">
<run_oxm_deploymentxml_tl_tests runpathref="oxm.run.path"/>
</target>
<target name="init-osgi">
<property environment="env"/>
<condition property="m2.home.exists" value="true">
<isset property="env.M2_HOME"/>
</condition>
<condition property="M2_HOME" value="${env.M2_HOME}">
<isset property="m2.home.exists"/>
</condition>
</target>
<target name="check-osgi" unless="m2.home.exists">
<echo message="Skipping OSGi Tests. M2_HOME is not set."/>
</target>
<target name="compile-and-run-osgi-tests">
<condition property="version.qualifier" value="${version.qualifier}" else="qualifier">
<isset property="version.qualifier"/>
</condition>
<echo message="Launching Maven build with the following parameters:"/>
<echo message=" -Dclassworlds.conf=${M2_HOME}/bin/m2.conf"/>
<echo message=" -Dmaven.home=${M2_HOME}"/>
<echo message=" -Dbuild.qualifier=${version.qualifier}"/>
<java dir="${basedir}" fork="true" failonerror="true" classname="org.codehaus.plexus.classworlds.launcher.Launcher">
<jvmarg value="-Dclassworlds.conf=${M2_HOME}/bin/m2.conf"/>
<jvmarg value="-Dmaven.home=${M2_HOME}"/>
<jvmarg value="-Dmaven.multiModuleProjectDirectory=${basedir}"/>
<!--<arg line="-Dmaven.surefire.debug clean install"/>-->
<arg line="clean install"/>
<arg line="-Dmoxytest.2.common.plugins.dir=${basedir}/../../plugins/"/>
<arg line="-Djavax.validation.lib=${basedir}/${javax.validation.lib}"/>
<arg line="-Dbuild.qualifier=${version.qualifier}"/>
<arg line="-Drelease.version=${release.version}"/>
<arg line="-Djaxb-api.jar=${jaxb-api.jar}"/>
<arg line="-Djaxrs.jar=${jaxrs.jar}"/>
<arg line="-Dasm.jar=${asm.jar}"/>
<classpath>
<fileset dir="${M2_HOME}/boot">
<include name="plexus-classworlds-*.jar"/>
</fileset>
</classpath>
</java>
</target>
<target name="run-installer-tests">
<tempfile property="unzip.temp.file" destDir="${java.io.tmpdir}" prefix="build"/>
<mkdir dir="${unzip.temp.file}"/>
<echo>${unzip.temp.file}</echo>
<unzip src="${moxytest.2.trunk.dir}/${eclipselink.zip.file}" dest="${unzip.temp.file}"/>
<chmod dir="${unzip.temp.file}/eclipselink/bin" perm="+x" includes="**/*"/>
<delete dir="${report.dir}/installer" includeEmptyDirs="true" failonerror="false"/>
<mkdir dir="${report.dir}/installer"/>
<junit printsummary="yes" fork="true" dir="${resource.dir}" showoutput="yes" maxmemory="512m">
<env key="ECLIPSELINK_UNZIP_DIR" value="${unzip.temp.file}"/>
<batchtest todir="${report.dir}/installer">
<fileset dir="${src.dir}">
<include name="org/eclipse/persistence/testing/jaxb/installer/InstallerTestSuite.java"/>
</fileset>
<formatter type="xml"/>
</batchtest>
<classpath>
<path refid="jaxb.run.path"/>
</classpath>
</junit>
<delete dir="${unzip.temp.file}" includeEmptyDirs="true" failonerror="false"/>
</target>
<!-- The following targets build and run against eclipselink.jar -->
<target name="compile-and-run-tests-against-jar" depends="compile-tests-against-jar" description="build and run moxy tests against eclipselink.jar">
<run_jaxb_tests runpathref="jaxb.run.against.jar.path"/>
<run_oxm_tests runpathref="oxm.run.against.jar.path"/>
<run_oxm_dom_tests runpathref="oxm.run.against.jar.path"/>
<run_oxm_deploymentxml_tests runpathref="oxm.run.against.jar.path"/>
<run_oxm_docpres_tests runpathref="oxm.run.against.jar.path"/>
<run_oxm_non_default_system_properties runpathref="oxm.run.against.jar.path"/>
</target>
<target name="compile-and-run-srg-tests-against-jar" depends="compile-tests-against-jar" description="build and run moxy srg tests against eclipselink.jar">
<run_jaxb_srg_tests runpathref="jaxb.run.against.jar.path"/>
<run_oxm_srg_tests runpathref="oxm.run.against.jar.path"/>
</target>
<target name="compile-and-run-jaxb-tests-against-jar" depends="compile-tests-against-jar" description="build and run moxy (oxm) tests against eclipselink.jar">
<run_jaxb_tests runpathref="jaxb.run.against.jar.path"/>
</target>
<target name="compile-and-run-oxm-tests-against-jar" depends="compile-tests-against-jar" description="build and run moxy (oxm) tests against eclipselink.jar">
<run_oxm_tests runpathref="oxm.run.against.jar.path"/>
<run_oxm_dom_tests runpathref="oxm.run.against.jar.path"/>
<run_oxm_deploymentxml_tests runpathref="oxm.run.against.jar.path"/>
<run_oxm_docpres_tests runpathref="oxm.run.against.jar.path"/>
<run_oxm_non_default_system_properties runpathref="oxm.run.against.jar.path"/>
</target>
<!-- JUnit report targets -->
<target name="moxy-junit-report" depends="jaxb-junit-report, oxm-junit-report" description="create moxy junit report"/>
<target name="jaxb-junit-report" description="create jaxb junit report">
<junitreport todir="${report.dir}/jaxb">
<fileset dir="${report.dir}/jaxb">
<include name="**/*.xml"/>
</fileset>
<report format="noframes" todir="${report.dir}/jaxb"/>
</junitreport>
<delete includeEmptyDirs="true" failonerror="false">
<fileset dir="${resource.dir}/${tmp.dir}"/>
<fileset dir="${resource.dir}">
<include name="File*.xml"/>
</fileset>
</delete>
</target>
<target name="oxm-junit-report" description="create oxm junit report">
<junitreport todir="${report.dir}/oxm">
<fileset dir="${report.dir}/oxm">
<include name="**/*.xml"/>
</fileset>
<report format="noframes" todir="${report.dir}/oxm"/>
</junitreport>
</target>
<target name="installer-junit-report" description="create installer junit report">
<junitreport todir="${report.dir}/installer">
<fileset dir="${report.dir}/installer">
<include name="**/*.xml"/>
</fileset>
<report format="noframes" todir="${report.dir}/installer"/>
</junitreport>
</target>
<target name="moxy-srg-junit-report" description="create moxy srg junit report">
<junitreport todir="${report.dir}/srg">
<fileset dir="${report.dir}/srg">
<include name="**/*.xml"/>
</fileset>
<report format="noframes" todir="${report.dir}/srg"/>
</junitreport>
<delete includeEmptyDirs="true" failonerror="false">
<fileset dir="${resource.dir}/${tmp.dir}"/>
<fileset dir="${resource.dir}">
<include name="File*.xml"/>
</fileset>
</delete>
</target>
<!-- Clean targets -->
<target name="clean-reports" depends="clean-oxm-reports, clean-jaxb-reports" description="clean moxy junit report directory">
<delete dir="${report.dir}/jaxb" includeEmptyDirs="true" failonerror="false"/>
<delete dir="${report.dir}/oxm" includeEmptyDirs="true" failonerror="false"/>
<mkdir dir="${report.dir}/jaxb"/>
<mkdir dir="${report.dir}/oxm"/>
<mkdir dir="${report.dir}/installer"/>
</target>
<target name="clean-oxm-reports" description="clean moxy (oxm) junit report directory">
<delete dir="${report.dir}/oxm" includeEmptyDirs="true" failonerror="false"/>
<mkdir dir="${report.dir}/oxm"/>
</target>
<target name="clean-jaxb-reports" description="clean moxy (jaxb) junit report directory">
<delete dir="${report.dir}/jaxb" includeEmptyDirs="true" failonerror="false"/>
<mkdir dir="${report.dir}/jaxb"/>
</target>
<target name="clean-installer-reports" description="clean moxy (installer) junit report directory">
<delete dir="${report.dir}/installer" includeEmptyDirs="true" failonerror="false"/>
<mkdir dir="${report.dir}/installer"/>
</target>
<target name="clean" description="clean the build">
<delete includeEmptyDirs="true" failonerror="false">
<fileset dir="${classes.dir}"/>
<fileset dir="${report.dir}"/>
</delete>
</target>
<!-- Test run macros -->
<macrodef name="run_jaxb_tests">
<attribute name="runpathref"/>
<sequential>
<echo message="Bean Validation jars found: ${validate.jar.exists}."/>
<delete dir="${report.dir}/jaxb" includeEmptyDirs="true" failonerror="false"/>
<mkdir dir="${report.dir}/jaxb"/>
<mkdir dir="${resource.dir}/${tmp.dir}"/>
<!-- Can be set e.g. in test.properties to add VM options for a particular platform/driver -->
<property name="additional.jvmargs" value="-Ddummy2=dummy"/>
<junit failureproperty="junit.failed.jaxb" printsummary="yes" fork="true" dir="${resource.dir}" showoutput="yes" maxmemory="512m">
<!--<jvmarg value="-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005"/>-->
<jvmarg value="-ea"/>
<jvmarg value="-javaagent:${jmockit.lib}"/>
<jvmarg line="${additional.jvmargs}"/>
<env key="T_WORK" value="${tmp.dir}"/>
<sysproperty key="platformType" value="SAX"/>
<sysproperty key="metadataType" value="JAVA"/>
<sysproperty key="useLogging" value="false"/>
<sysproperty key="eclipselink.xml.platform" value="${xml.platform}"/>
<sysproperty key="parser" value="${parser}"/>
<syspropertyset refid="parser.properties"/>
<batchtest todir="${report.dir}/jaxb">
<fileset dir="${src.dir}">
<include name="org/eclipse/persistence/testing/jaxb/JAXBTestSuite.java"/>
<include name="org/eclipse/persistence/testing/jaxb/JAXBTestSuite2.java"/>
<include name="org/eclipse/persistence/testing/jaxb/JAXBTestSuite3.java"/>
<include name="org/eclipse/persistence/testing/jaxb/JAXBTestSuite4.java"/>
<include name="org/eclipse/persistence/testing/jaxb/JAXBBeanValidationTestSuite.java" if="validate.jar.exists"/>
<include name="org/eclipse/persistence/testing/jaxb/beanvalidation/BeanValidationHelperTestCase.java" if="validate.jar.exists"/>
<include name="org/eclipse/persistence/testing/jaxb/listofobjects/JAXBListOfObjectsSuite.java"/>
<include name="org/eclipse/persistence/testing/jaxb/annotations/AnnotationsTestSuite.java"/>
<include name="org/eclipse/persistence/testing/jaxb/externalizedmetadata/ExternalizedMetadataTestSuite.java"/>
<include name="org/eclipse/persistence/testing/jaxb/javadoc/JavadocAnnotationExamplesTestSuite.java"/>
<include name="org/eclipse/persistence/testing/jaxb/typemappinginfo/TypeMappingInfoTestSuite.java"/>
<include name="org/eclipse/persistence/testing/jaxb/schemagen/SchemaGenTestSuite.java"/>
<include name="org/eclipse/persistence/testing/jaxb/xmladapter/XmlAdapterTestSuite.java"/>
<include name="org/eclipse/persistence/testing/jaxb/dynamic/DynamicJAXBTestSuite.java"/>
<include name="org/eclipse/persistence/testing/jaxb/json/JSONTestSuite.java"/>
<include name="org/eclipse/persistence/testing/jaxb/rs/RESTfulTestSuite.java"/>
<include name="org/eclipse/persistence/testing/moxy/unit/**/*TestCase.java"/>
</fileset>
<formatter type="xml"/>
</batchtest>
<test name="org.eclipse.persistence.testing.jaxb.annotations.xmlidref.XmlIdSystemPropertyTestCase" todir="${report.dir}/jaxb">
<formatter type="xml"/>
</test>
<test name="org.eclipse.persistence.testing.jaxb.annotations.xmlidref.XmlIdSystemPropertyNotSetTestCase" todir="${report.dir}/jaxb">
<formatter type="xml"/>
</test>
<test name="org.eclipse.persistence.testing.jaxb.annotations.xmlvalue.XmlValueSystemPropertyNotSetTestCase" todir="${report.dir}/jaxb">
<formatter type="xml"/>
</test>
<test name="org.eclipse.persistence.testing.jaxb.annotations.xmlvalue.XmlValueSystemPropertyTestCase" todir="${report.dir}/jaxb">
<formatter type="xml"/>
</test>
<classpath>
<path refid="@{runpathref}"/>
</classpath>
</junit>
<fail message="TESTS FAILED !">
<condition>
<and>
<isset property="junit.failed.jaxb"/>
<istrue value="${test.fail.fast}"/>
</and>
</condition>
</fail>
</sequential>
</macrodef>
<macrodef name="run_jaxb_srg_tests">
<attribute name="runpathref"/>
<sequential>
<delete dir="${report.dir}/srg/jaxb" includeEmptyDirs="true" failonerror="false"/>
<mkdir dir="${report.dir}/srg/jaxb"/>
<mkdir dir="${resource.dir}/${tmp.dir}"/>
<!-- Can be set e.g. in test.properties to add VM options for a particular platform/driver -->
<property name="additional.jvmargs" value="-Ddummy2=dummy"/>
<junit failureproperty="junit.failed.jaxb_srg" printsummary="yes" fork="true" dir="${resource.dir}" showoutput="yes" maxmemory="512m">
<jvmarg value="-ea"/>
<jvmarg line="${additional.jvmargs}"/>
<env key="T_WORK" value="${tmp.dir}"/>
<sysproperty key="platformType" value="SAX"/>
<sysproperty key="metadataType" value="JAVA"/>
<sysproperty key="useLogging" value="false"/>
<sysproperty key="eclipselink.xml.platform" value="${xml.platform}"/>
<sysproperty key="parser" value="${parser}"/>
<syspropertyset refid="parser.properties"/>
<batchtest todir="${report.dir}/srg/jaxb">
<fileset dir="${src.dir}">
<include name="org/eclipse/persistence/testing/jaxb/JAXBSRGTestSuite.java"/>
</fileset>
<formatter type="xml"/>
</batchtest>
<classpath>
<path refid="@{runpathref}"/>
</classpath>
</junit>
<fail message="TESTS FAILED !">
<condition>
<and>
<isset property="junit.failed.jaxb_srg"/>
<istrue value="${test.fail.fast}"/>
</and>
</condition>
</fail>
</sequential>
</macrodef>
<macrodef name="run_oxm_srg_tests">
<attribute name="runpathref"/>
<sequential>
<delete dir="${report.dir}/srg/oxm" includeEmptyDirs="true" failonerror="false"/>
<mkdir dir="${report.dir}/srg/oxm/default"/>
<junit failureproperty="junit.failed.oxm_srg" printsummary="yes" fork="true" dir="${resource.dir}" showoutput="yes" maxmemory="512m">
<sysproperty key="useLogging" value="false"/>
<sysproperty key="eclipselink.xml.platform" value="${xml.platform}"/>
<sysproperty key="parser" value="${parser}"/>
<syspropertyset refid="parser.properties"/>
<batchtest todir="${report.dir}/srg/oxm/default">
<fileset dir="${src.dir}">
<include name="org/eclipse/persistence/testing/oxm/OXMSRGTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/oxm/systemproperties/OXMSystemPropertiesNonDefaultTestCases.java"/>
<exclude name="org/eclipse/persistence/testing/oxm/systemproperties/DateAndTimeNonDefaultTestCases.java"/>
</fileset>
<formatter type="xml"/>
</batchtest>
<classpath>
<path refid="@{runpathref}"/>
</classpath>
</junit>
<fail message="TESTS FAILED !">
<condition>
<and>
<isset property="junit.failed.oxm_srg"/>
<istrue value="${test.fail.fast}"/>
</and>
</condition>
</fail>
</sequential>
</macrodef>
<macrodef name="run_oxm_tests">
<attribute name="runpathref"/>
<sequential>
<delete dir="${report.dir}/oxm/default" includeEmptyDirs="true" failonerror="false"/>
<mkdir dir="${report.dir}/oxm/default"/>
<junit failureproperty="junit.failed.oxm" printsummary="yes" fork="true" dir="${resource.dir}" showoutput="yes" maxmemory="512m">
<jvmarg value="-ea"/>
<sysproperty key="useLogging" value="false"/>
<sysproperty key="eclipselink.xml.platform" value="${xml.platform}"/>
<sysproperty key="parser" value="${parser}"/>
<syspropertyset refid="parser.properties"/>
<batchtest todir="${report.dir}/oxm/default">
<fileset dir="${src.dir}">
<include name="**/ContainerAccessorTestSuite.java"/>
<include name="**/*MappingTestSuite.java"/>
<include name="**/RootElementTestSuite.java"/>
<include name="**/InheritanceTestSuite.java"/>
<include name="**/XMLMarshalTestCases.java"/>
<include name="**/XMLMarshalFragmentTestCases.java"/>
<include name="**/XMLUnmarshalTestCases.java"/>
<include name="**/XMLMarshallerValidationModeTestCases.java"/>
<include name="**/*amespaceTestSuite.java"/>
<include name="**/ClassLoaderTestCases.java"/>
<include name="**/MappingClassLoaderTestCases.java"/>
<exclude name="**/MappingTestSuite.java"/>
<exclude name="**/OneTo*TestSuite.java"/>
<exclude name="**/DeploymentXMLMappingTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/jaxb/**/*.java"/>
<exclude name="org/eclipse/persistence/testing/oxm/mappings/DocPresMappingTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/oxm/mappings/anyobjectandanycollection/XMLAnyObjectAndAnyCollectionMappingTestSuite.java"/>
<exclude name="**/SAXMappingTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/oxm/systemproperties/OXMSystemPropertiesNonDefaultTestCases.java"/>
<exclude name="org/eclipse/persistence/testing/oxm/systemproperties/DateAndTimeNonDefaultTestCases.java"/>
<include name="org/eclipse/persistence/testing/oxm/systemproperties/OXMSystemPropertiesTestCases.java"/>
<include name="org/eclipse/persistence/testing/oxm/mappings/directcollection/nillable/DirectCollectionMappingNillableTestSuite.java"/>
<include name="org/eclipse/persistence/testing/oxm/mappings/keybased/multipletargets/compositekey/CompositeKeyTestCases.java"/>
</fileset>
<formatter type="xml"/>
</batchtest>
<classpath>
<path refid="@{runpathref}"/>
</classpath>
</junit>
<fail message="TESTS FAILED !">
<condition>
<and>
<isset property="junit.failed.oxm"/>
<istrue value="${test.fail.fast}"/>
</and>
</condition>
</fail>
</sequential>
</macrodef>
<macrodef name="run_oxm_dom_tests">
<attribute name="runpathref"/>
<sequential>
<delete dir="${report.dir}/oxm/dom" includeEmptyDirs="true" failonerror="false"/>
<mkdir dir="${report.dir}/oxm/dom"/>
<junit failureproperty="junit.failed.oxm_dom" printsummary="yes" fork="true" dir="${resource.dir}" showoutput="yes" maxmemory="512m">
<jvmarg value="-ea"/>
<sysproperty key="platformType" value="DOM"/>
<sysproperty key="metadataType" value="JAVA"/>
<sysproperty key="useLogging" value="false"/>
<sysproperty key="eclipselink.xml.platform" value="${xml.platform}"/>
<sysproperty key="parser" value="${parser}"/>
<syspropertyset refid="parser.properties"/>
<batchtest todir="${report.dir}/oxm/dom">
<fileset dir="${src.dir}">
<include name="**/*TestSuite.java"/>
<include name="**/ClassLoaderTestCases.java"/>
<include name="**/MappingClassLoaderTestCases.java"/>
<include name="**/advancedxpath/**/*TestCases.java"/>
<exclude name="**/OXTestSuite.java"/>
<exclude name="**/OXMSRGTestSuite.java"/>
<exclude name="**/DeploymentXMLOXTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/jaxb/**/*.java"/>
<exclude name="org/eclipse/persistence/testing/oxm/mappings/MappingTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/oxm/mappings/DeploymentXMLMappingTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/oxm/mappings/DocPresMappingTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/oxm/mappings/SAXMappingTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/oxm/mappings/anyobjectandanycollection/XMLAnyObjectAndAnyCollectionMappingTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/oxm/mappings/keybased/compositekeyclass/CompositeKeyClassMappingTestSuite.java"/>
<!--
<exclude name="org/eclipse/persistence/testing/oxm/mappings/choice/XMLChoiceMappingTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/oxm/mappings/choicecollection/XMLChoiceCollectionMappingTestSuite.java"/>
-->
<exclude name="org/eclipse/persistence/testing/oxm/mappings/sequenced/SequencedMappingTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/oxm/systemproperties/OXMSystemPropertiesNonDefaultTestCases.java"/>
<exclude name="org/eclipse/persistence/testing/oxm/systemproperties/DateAndTimeNonDefaultTestCases.java"/>
</fileset>
<formatter type="xml"/>
</batchtest>
<classpath>
<path refid="@{runpathref}"/>
</classpath>
</junit>
<fail message="TESTS FAILED !">
<condition>
<and>
<isset property="junit.failed.oxm_dom"/>
<istrue value="${test.fail.fast}"/>
</and>
</condition>
</fail>
</sequential>
</macrodef>
<macrodef name="run_oxm_deploymentxml_tests">
<attribute name="runpathref"/>
<sequential>
<delete dir="${report.dir}/oxm/deploymentxml" includeEmptyDirs="true" failonerror="false"/>
<mkdir dir="${report.dir}/oxm/deploymentxml"/>
<junit failureproperty="junit.failed.oxm_deploymentxml" printsummary="yes" fork="true" dir="${resource.dir}" showoutput="yes" maxmemory="512m">
<jvmarg value="-ea"/>
<sysproperty key="platformType" value="DOM"/>
<sysproperty key="metadataType" value="XML_ECLIPSELINK"/>
<sysproperty key="useLogging" value="false"/>
<sysproperty key="eclipselink.xml.platform" value="${xml.platform}"/>
<sysproperty key="parser" value="${parser}"/>
<syspropertyset refid="parser.properties"/>
<batchtest todir="${report.dir}/oxm/deploymentxml">
<fileset dir="${src.dir}">
<include name="**/DocumentPreservationTestSuite.java"/>
<include name="**/RootElementTestSuite.java"/>
<include name="**/XMLRootTestSuite.java"/>
<include name="**/XMLMarshalTestCases.java"/>
<include name="**/XMLMarshalFragmentTestCases.java"/>
<include name="**/XMLUnmarshalTestCases.java"/>
<include name="**/ReadOnlyTestSuite.java"/>
<include name="**/InheritanceTestSuite.java"/>
<include name="**/ConverterTestSuite.java"/>
<include name="**/*MappingTestSuite.java"/>
<include name="**/ClassLoaderTestCases.java"/>
<include name="**/MappingClassLoaderTestCases.java"/>
<include name="**/*amespaceTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/jaxb/**/*.java"/>
<exclude name="org/eclipse/persistence/testing/oxm/mappings/MappingTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/oxm/mappings/DeploymentXMLMappingTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/oxm/mappings/DocPresMappingTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/oxm/mappings/SAXMappingTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/oxm/mappings/anyobjectandanycollection/XMLAnyObjectAndAnyCollectionMappingTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/oxm/mappings/choice/XMLChoiceMappingTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/oxm/mappings/choicecollection/XMLChoiceCollectionMappingTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/oxm/mappings/choicecollection/converter/ConverterTestCases.java"/>
<!--
<exclude name="org/eclipse/persistence/testing/oxm/mappings/binarydata/XMLBinaryDataMappingTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/oxm/mappings/binarydatacollection/XMLBinaryDataCollectionMappingTestSuite.java"/>
-->
<exclude name="org/eclipse/persistence/testing/oxm/mappings/sequenced/SequencedMappingTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/oxm/mappings/directtofield/converter/DirectToFieldConverterTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/oxm/mappings/compositeobject/self/converter/CompositeObjectSelfConverterTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/oxm/mappings/keybased/compositekeyclass/CompositeKeyClassMappingTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/oxm/mappings/containeracessor/ContainerAccessorTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/oxm/systemproperties/OXMSystemPropertiesNonDefaultTestCases.java"/>
<exclude name="org/eclipse/persistence/testing/oxm/systemproperties/DateAndTimeNonDefaultTestCases.java"/>
</fileset>
<formatter type="xml"/>
</batchtest>
<classpath>
<path refid="@{runpathref}"/>
</classpath>
</junit>
<fail message="TESTS FAILED !">
<condition>
<and>
<isset property="junit.failed.oxm_deploymentxml"/>
<istrue value="${test.fail.fast}"/>
</and>
</condition>
</fail>
</sequential>
</macrodef>
<macrodef name="run_oxm_deploymentxml_tl_tests">
<attribute name="runpathref"/>
<sequential>
<delete dir="${report.dir}/oxm/deploymentxml-tl" includeEmptyDirs="true" failonerror="false"/>
<mkdir dir="${report.dir}/oxm/deploymentxml-tl"/>
<junit failureproperty="junit.failed.oxm_deploymentxml_tl" printsummary="yes" fork="true" dir="${resource.dir}" showoutput="yes" maxmemory="512m">
<jvmarg value="-ea"/>
<sysproperty key="platformType" value="DOM"/>
<sysproperty key="metadataType" value="XML_TOPLINK"/>
<sysproperty key="useLogging" value="false"/>
<sysproperty key="eclipselink.xml.platform" value="${xml.platform}"/>
<sysproperty key="parser" value="${parser}"/>
<syspropertyset refid="parser.properties"/>
<batchtest todir="${report.dir}/oxm/deploymentxml-tl">
<fileset dir="${src.dir}">
<include name="**/DocumentPreservationTestSuite.java"/>
<include name="**/RootElementTestSuite.java"/>
<include name="**/XMLRootTestSuite.java"/>
<include name="**/XMLMarshalTestCases.java"/>
<include name="**/XMLMarshalFragmentTestCases.java"/>
<include name="**/XMLUnmarshalTestCases.java"/>
<include name="**/ReadOnlyTestSuite.java"/>
<include name="**/InheritanceTestSuite.java"/>
<include name="**/ConverterTestSuite.java"/>
<include name="**/*MappingTestSuite.java"/>
<include name="**/ClassLoaderTestCases.java"/>
<include name="**/MappingClassLoaderTestCases.java"/>
<include name="**/*amespaceTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/jaxb/**/*.java"/>
<exclude name="org/eclipse/persistence/testing/oxm/mappings/MappingTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/oxm/mappings/DeploymentXMLMappingTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/oxm/mappings/DocPresMappingTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/oxm/mappings/SAXMappingTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/oxm/mappings/anyobjectandanycollection/XMLAnyObjectAndAnyCollectionMappingTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/oxm/mappings/binarydata/XMLBinaryDataMappingTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/oxm/mappings/binarydatacollection/XMLBinaryDataCollectionMappingTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/oxm/mappings/choice/XMLChoiceMappingTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/oxm/mappings/choicecollection/XMLChoiceCollectionMappingTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/oxm/mappings/sequenced/SequencedMappingTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/oxm/mappings/compositeobject/self/converter/CompositeObjectSelfConverterTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/oxm/mappings/keybased/compositekeyclass/CompositeKeyClassMappingTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/oxm/mappings/containeracessor/ContainerAccessorTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/oxm/systemproperties/OXMSystemPropertiesNonDefaultTestCases.java"/>
<exclude name="org/eclipse/persistence/testing/oxm/systemproperties/DateAndTimeNonDefaultTestCases.java"/>
</fileset>
<formatter type="xml"/>
</batchtest>
<classpath>
<path refid="@{runpathref}"/>
</classpath>
</junit>
<fail message="TESTS FAILED !">
<condition>
<and>
<isset property="junit.failed.oxm_deploymentxml_tl"/>
<istrue value="${test.fail.fast}"/>
</and>
</condition>
</fail>
</sequential>
</macrodef>
<macrodef name="run_oxm_docpres_tests">
<attribute name="runpathref"/>
<sequential>
<delete dir="${report.dir}/oxm/docpres" includeEmptyDirs="true" failonerror="false"/>
<mkdir dir="${report.dir}/oxm/docpres"/>
<junit failureproperty="junit.failed.oxm_docpres" printsummary="yes" fork="true" dir="${resource.dir}" showoutput="yes" maxmemory="512m">
<jvmarg value="-ea"/>
<sysproperty key="platformType" value="DOC_PRES"/>
<sysproperty key="metadataType" value="JAVA"/>
<sysproperty key="useLogging" value="false"/>
<sysproperty key="eclipselink.xml.platform" value="${xml.platform}"/>
<sysproperty key="parser" value="${parser}"/>
<syspropertyset refid="parser.properties"/>
<batchtest todir="${report.dir}/oxm/docpres">
<fileset dir="${src.dir}">
<include name="**/*TestSuite.java"/>
<include name="**/ClassLoaderTestCases.java"/>
<include name="**/MappingClassLoaderTestCases.java"/>
<exclude name="**/ReadOnlyTestSuite.java"/>
<exclude name="**/OXTestSuite.java"/>
<exclude name="**/OXMSRGTestSuite.java"/>
<exclude name="**/OneTo*TestSuite.java"/>
<exclude name="**/DeploymentXMLOXTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/jaxb/**/*.java"/>
<exclude name="org/eclipse/persistence/testing/oxm/mappings/MappingTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/oxm/mappings/DeploymentXMLMappingTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/oxm/mappings/DocPresMappingTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/oxm/mappings/SAXMappingTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/oxm/mappings/anyobjectandanycollection/XMLAnyObjectAndAnyCollectionMappingTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/oxm/mappings/keybased/KeyBasedMappingTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/oxm/mappings/keybased/compositekeyclass/CompositeKeyClassMappingTestSuite.java"/>
<!--
<exclude name="org/eclipse/persistence/testing/oxm/mappings/choice/XMLChoiceMappingTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/oxm/mappings/choicecollection/XMLChoiceCollectionMappingTestSuite.java"/>
-->
<exclude name="org/eclipse/persistence/testing/oxm/mappings/sequenced/SequencedMappingTestSuite.java"/>
<exclude name="org/eclipse/persistence/testing/oxm/systemproperties/OXMSystemPropertiesNonDefaultTestCases.java"/>
<exclude name="org/eclipse/persistence/testing/oxm/systemproperties/DateAndTimeNonDefaultTestCases.java"/>
</fileset>
<formatter type="xml"/>
</batchtest>
<classpath>
<path refid="@{runpathref}"/>
</classpath>
</junit>
<fail message="TESTS FAILED !">
<condition>
<and>
<isset property="junit.failed.oxm_docpres"/>
<istrue value="${test.fail.fast}"/>
</and>
</condition>
</fail>
</sequential>
</macrodef>
<macrodef name="run_oxm_non_default_system_properties">
<attribute name="runpathref"/>
<sequential>
<delete dir="${report.dir}/oxm/nondefault" includeEmptyDirs="true" failonerror="false"/>
<mkdir dir="${report.dir}/oxm/nondefault"/>
<junit failureproperty="junit.failed.oxm_nondefault" printsummary="yes" fork="true" dir="${resource.dir}" showoutput="yes" maxmemory="512m">
<jvmarg value="-ea"/>
<sysproperty key="useLogging" value="false"/>
<sysproperty key="eclipselink.xml.platform" value="${xml.platform}"/>
<sysproperty key="org.eclipse.persistence.json.type-compatibility" value="true"/>
<sysproperty key="org.eclipse.persistence.json.use-xsd-types-prefix" value="true"/>
<sysproperty key="org.eclipse.persistence.xml.time.suffix" value=".0"/>
<sysproperty key="parser" value="${parser}"/>
<syspropertyset refid="parser.properties"/>
<batchtest todir="${report.dir}/oxm/nondefault">
<fileset dir="${src.dir}">
<include name="org/eclipse/persistence/testing/oxm/systemproperties/OXMSystemPropertiesNonDefaultTestCases.java"/>
<include name="org/eclipse/persistence/testing/oxm/systemproperties/DateAndTimeNonDefaultTestCases.java"/>
</fileset>
<formatter type="xml"/>
</batchtest>
<classpath>
<path refid="@{runpathref}"/>
</classpath>
</junit>
<fail message="TESTS FAILED !">
<condition>
<and>
<isset property="junit.failed.nondefault"/>
<istrue value="${test.fail.fast}"/>
</and>
</condition>
</fail>
</sequential>
</macrodef>
<!-- Compile macros -->
<macrodef name="compile_moxy_tests">
<attribute name="subcomponent"/>
<attribute name="compilepathref"/>
<sequential>
<mkdir dir="${classes.dir}"/>
<javac srcdir="${src.dir}"
destdir="${classes.dir}"
debug="${javac.debug}"
debuglevel="${javac.debuglevel}"
encoding="UTF-8"
optimize="${javac.optimize}"
source="${javac.version}"
deprecation="${javac.deprecation}"
failonerror="false"
includes="org/eclipse/persistence/testing/@{subcomponent}/**/*.java">
<classpath>
<path refid="@{compilepathref}"/>
</classpath>
</javac>
</sequential>
</macrodef>
</project>