-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathbuild.xml
1417 lines (1354 loc) · 111 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<project default="restart" xmlns:if="ant:if" xmlns:unless="ant:unless">
<target name="init">
<basename property="basedir.basename" file="${basedir}"/>
<property file="build.properties"/>
<property name="download.dir" value="download"/>
<property name="project.dir" value="${main.project}" if:set="sub.project"/>
<property name="configurations.names" value="${sub.project}" if:set="sub.project"/>
<property name="modules.dir" value="configurations" if:set="module.dir"/>
<property name="configurations.names" value="${module.dir}" if:set="module.dir"/>
<property name="projects.dir" value="${basedir}/.."/>
<property name="project.dir" value="${basedir.basename}/examples/Frank2Example1"/>
<available property="project.dir.available" file="${projects.dir}/${project.dir}"/>
<property file="${projects.dir}/${project.dir}/frank-runner.properties"/>
<available property="application.war.pom.xml.available" file="${projects.dir}/${project.dir}/application/war/pom.xml"/>
<property name="war.dir" value="application/war" if:set="application.war.pom.xml.available"/>
<property name="war.dir" value="war"/>
<available property="war.pom.xml.available" file="${projects.dir}/${project.dir}/${war.dir}/pom.xml"/>
<available property="pom.xml.available" file="${projects.dir}/${project.dir}/pom.xml"/>
<property name="classes.dir" value="${war.dir}/src/main/resources" if:set="war.pom.xml.available"/>
<property name="configurations.dir" value="${override.configurations.dir}" if:set="override.configurations.dir"/><!-- Enables CI/CD to choose configurations in frank-runner/build.properties. See https://github.com/wearefrank/ladybug-ff-cypress-test/blob/main/.github/workflows/testing.js.yml -->
<property name="configurations.dir" value="${war.dir}/src/main/configurations" if:set="war.pom.xml.available"/>
<property name="java.dir" value="${war.dir}/src/main/java" if:set="war.pom.xml.available"/>
<property name="tests.dir" value="${war.dir}/src/test/testtool" if:set="war.pom.xml.available"/>
<property name="context.xml" value="${war.dir}/src/main/webapp/META-INF/context.xml" if:set="war.pom.xml.available"/>
<property name="maven.exec.dir" value="${projects.dir}/${project.dir}/${war.dir}" if:set="war.pom.xml.available"/>
<property name="classes.dir" value="src/main/resources" if:set="pom.xml.available"/>
<property name="configurations.dir" value="src/main/configurations" if:set="pom.xml.available"/>
<property name="java.dir" value="src/main/java" if:set="pom.xml.available"/>
<property name="tests.dir" value="src/test/testtool" if:set="pom.xml.available"/>
<property name="context.xml" value="src/main/webapp/META-INF/context.xml" if:set="pom.xml.available"/>
<property name="maven.exec.dir" value="${projects.dir}/${project.dir}" if:set="pom.xml.available"/>
<property name="classes.dir" value="classes"/>
<property name="configurations.dir" value="configurations"/>
<property name="java.dir" value="java"/>
<property name="tests.dir" value="tests"/>
<property name="context.xml" value="context.xml"/>
<property name="maven" value="false"/>
<property name="maven" value="true" if:set="war.pom.xml.available"/>
<property name="maven" value="true" if:set="pom.xml.available"/>
<property name="maven.phase" value="compile" if:true="${maven}"/>
<property name="maven.skip.clean" value="false" if:true="${maven}"/>
<property name="maven.skip.tests" value="false" if:true="${maven}"/>
<property name="maven.skip.javadoc" value="false" if:true="${maven}"/>
<property name="maven.verbose" value="false" if:true="${maven}"/>
<property name="classloader.type" value="DirectoryClassLoader"/>
<property name="lib.server.dir" value="lib/server"/>
<property name="lib.webapp.dir" value="lib/webapp"/>
<property name="database.type" value="h2"/>
<property name="dtap.stage" value="LOC"/>
<property name="otap.stage" value="LOC"/>
<property file="${projects.dir}/${project.dir}/${classes.dir}/DeploymentSpecifics.properties" prefix="ds.properties."/>
<property name="instance.name" value="${ds.properties.instance.name}" if:set="ds.properties.instance.name"/>
<basename property="instance.name" file="${project.dir}"/>
<available property="configuration.name.default" value="${instance.name}" file="${projects.dir}/${project.dir}/${classes.dir}/Configuration.xml"/>
<property name="ibistesttool.directory" value="${projects.dir}/${project.dir}/${tests.dir}"/>
<property name="context.path" value="ROOT"/>
<property name="maxmemory" value="1024M"/>
<property name="frank-flow.context-path" value="/"/><!-- Frank!Flow 3.0 with F!F 8.2 doesn't need this anymore (2.27.1-20231017.123547 will be used when ff.version is 8.1 or lower) -->
<condition property="os.windows"><os family="windows"/></condition>
<condition property="os.linux"><and><os family="unix"/><not><os family="mac"/></not></and></condition>
<condition property="os.mac"><and><os family="unix"/><os family="mac"/></and></condition>
<property name="jdk.8.version.minor" value="392"/><!-- https://adoptium.net/temurin/archive/?version=8 -->
<property name="jdk.8.version.patch" value="b08"/>
<property name="jdk.8.dir.sub" value="jdk8u${jdk.8.version.minor}-${jdk.8.version.patch}"/>
<property name="jdk.8.dir" value="build/${jdk.8.dir.sub}"/>
<property name="jdk.8.zip.win" value="OpenJDK8U-jdk_x64_windows_hotspot_8u${jdk.8.version.minor}${jdk.8.version.patch}.zip"/>
<property name="jdk.8.tar.lin" value="OpenJDK8U-jdk_x64_linux_hotspot_8u${jdk.8.version.minor}${jdk.8.version.patch}.tar"/>
<property name="jdk.8.tar.mac" value="OpenJDK8U-jdk_x64_mac_hotspot_8u${jdk.8.version.minor}${jdk.8.version.patch}.tar"/>
<property name="jdk.8.zip.lin" value="${jdk.8.tar.lin}.gz"/>
<property name="jdk.8.zip.mac" value="${jdk.8.tar.mac}.gz"/>
<property name="jdk.8.zip" value="${jdk.8.zip.win}" if:true="${os.windows}"/>
<property name="jdk.8.tar" value="${jdk.8.tar.lin}" if:true="${os.linux}"/>
<property name="jdk.8.zip" value="${jdk.8.zip.lin}" if:true="${os.linux}"/>
<property name="jdk.8.tar" value="${jdk.8.tar.mac}" if:true="${os.mac}"/>
<property name="jdk.8.zip" value="${jdk.8.zip.mac}" if:true="${os.mac}"/>
<property name="jdk.8.url.win" value="https://github.com/adoptium/temurin8-binaries/releases/download/${jdk.8.dir.sub}/${jdk.8.zip.win}"/>
<property name="jdk.8.url.lin" value="https://github.com/adoptium/temurin8-binaries/releases/download/${jdk.8.dir.sub}/${jdk.8.zip.lin}"/>
<property name="jdk.8.url.mac" value="https://github.com/adoptium/temurin8-binaries/releases/download/${jdk.8.dir.sub}/${jdk.8.zip.mac}"/>
<property name="jdk.11.version.minor" value="0"/><!-- https://adoptium.net/temurin/releases/?os=any&version=11 -->
<property name="jdk.11.version.patch" value="21"/>
<property name="jdk.11.version.plus" value="9"/>
<property name="jdk.11.dir.sub" value="jdk-11.${jdk.11.version.minor}.${jdk.11.version.patch}+${jdk.11.version.plus}"/>
<property name="jdk.11.dir" value="build/${jdk.11.dir.sub}"/>
<property name="jdk.11.zip.win" value="OpenJDK11U-jdk_x64_windows_hotspot_11.${jdk.11.version.minor}.${jdk.11.version.patch}_${jdk.11.version.plus}.zip"/>
<property name="jdk.11.tar.lin" value="OpenJDK11U-jdk_x64_linux_hotspot_11.${jdk.11.version.minor}.${jdk.11.version.patch}_${jdk.11.version.plus}.tar"/>
<property name="jdk.11.tar.mac" value="OpenJDK11U-jdk_x64_mac_hotspot_11.${jdk.11.version.minor}.${jdk.11.version.patch}_${jdk.11.version.plus}.tar"/>
<property name="jdk.11.zip.lin" value="${jdk.11.tar.lin}.gz"/>
<property name="jdk.11.zip.mac" value="${jdk.11.tar.mac}.gz"/>
<property name="jdk.11.zip" value="${jdk.11.zip.win}" if:true="${os.windows}"/>
<property name="jdk.11.tar" value="${jdk.11.tar.lin}" if:true="${os.linux}"/>
<property name="jdk.11.zip" value="${jdk.11.zip.lin}" if:true="${os.linux}"/>
<property name="jdk.11.tar" value="${jdk.11.tar.mac}" if:true="${os.mac}"/>
<property name="jdk.11.zip" value="${jdk.11.zip.mac}" if:true="${os.mac}"/>
<property name="jdk.11.url.win" value="https://github.com/adoptium/temurin11-binaries/releases/download/${jdk.11.dir.sub}/${jdk.11.zip.win}"/>
<property name="jdk.11.url.lin" value="https://github.com/adoptium/temurin11-binaries/releases/download/${jdk.11.dir.sub}/${jdk.11.zip.lin}"/>
<property name="jdk.11.url.mac" value="https://github.com/adoptium/temurin11-binaries/releases/download/${jdk.11.dir.sub}/${jdk.11.zip.mac}"/>
<property name="jdk.17.version.minor" value="0"/><!-- https://adoptium.net/temurin/releases/?os=any&version=17 -->
<property name="jdk.17.version.patch" value="8"/>
<property name="jdk.17.version.plus" value="7"/>
<property name="jdk.17.dir.sub" value="jdk-17.${jdk.17.version.minor}.${jdk.17.version.patch}+${jdk.17.version.plus}"/>
<property name="jdk.17.dir" value="build/${jdk.17.dir.sub}"/>
<property name="jdk.17.zip.win" value="OpenJDK17U-jdk_x64_windows_hotspot_17.${jdk.17.version.minor}.${jdk.17.version.patch}_${jdk.17.version.plus}.zip"/>
<property name="jdk.17.tar.lin" value="OpenJDK17U-jdk_x64_linux_hotspot_17.${jdk.17.version.minor}.${jdk.17.version.patch}_${jdk.17.version.plus}.tar"/>
<property name="jdk.17.tar.mac" value="OpenJDK17U-jdk_x64_mac_hotspot_17.${jdk.17.version.minor}.${jdk.17.version.patch}_${jdk.17.version.plus}.tar"/>
<property name="jdk.17.zip.lin" value="${jdk.17.tar.lin}.gz"/>
<property name="jdk.17.zip.mac" value="${jdk.17.tar.mac}.gz"/>
<property name="jdk.17.zip" value="${jdk.17.zip.win}" if:true="${os.windows}"/>
<property name="jdk.17.tar" value="${jdk.17.tar.lin}" if:true="${os.linux}"/>
<property name="jdk.17.zip" value="${jdk.17.zip.lin}" if:true="${os.linux}"/>
<property name="jdk.17.tar" value="${jdk.17.tar.mac}" if:true="${os.mac}"/>
<property name="jdk.17.zip" value="${jdk.17.zip.mac}" if:true="${os.mac}"/>
<property name="jdk.17.url.win" value="https://github.com/adoptium/temurin17-binaries/releases/download/${jdk.17.dir.sub}/${jdk.17.zip.win}"/>
<property name="jdk.17.url.lin" value="https://github.com/adoptium/temurin17-binaries/releases/download/${jdk.17.dir.sub}/${jdk.17.zip.lin}"/>
<property name="jdk.17.url.mac" value="https://github.com/adoptium/temurin17-binaries/releases/download/${jdk.17.dir.sub}/${jdk.17.zip.mac}"/>
<property name="jdk.21.version.minor" value="0"/><!-- https://adoptium.net/temurin/releases/?os=any&version=21 -->
<property name="jdk.21.version.patch" value="2"/>
<property name="jdk.21.version.plus" value="13"/>
<property name="jdk.21.dir.sub" value="jdk-21.${jdk.21.version.minor}.${jdk.21.version.patch}+${jdk.21.version.plus}"/>
<property name="jdk.21.dir" value="build/${jdk.21.dir.sub}"/>
<property name="jdk.21.zip.win" value="OpenJDK21U-jdk_x64_windows_hotspot_21.${jdk.21.version.minor}.${jdk.21.version.patch}_${jdk.21.version.plus}.zip"/>
<property name="jdk.21.tar.lin" value="OpenJDK21U-jdk_x64_linux_hotspot_21.${jdk.21.version.minor}.${jdk.21.version.patch}_${jdk.21.version.plus}.tar"/>
<property name="jdk.21.tar.mac" value="OpenJDK21U-jdk_x64_mac_hotspot_21.${jdk.21.version.minor}.${jdk.21.version.patch}_${jdk.21.version.plus}.tar"/>
<property name="jdk.21.zip.lin" value="${jdk.21.tar.lin}.gz"/>
<property name="jdk.21.zip.mac" value="${jdk.21.tar.mac}.gz"/>
<property name="jdk.21.zip" value="${jdk.21.zip.win}" if:true="${os.windows}"/>
<property name="jdk.21.tar" value="${jdk.21.tar.lin}" if:true="${os.linux}"/>
<property name="jdk.21.zip" value="${jdk.21.zip.lin}" if:true="${os.linux}"/>
<property name="jdk.21.tar" value="${jdk.21.tar.mac}" if:true="${os.mac}"/>
<property name="jdk.21.zip" value="${jdk.21.zip.mac}" if:true="${os.mac}"/>
<property name="jdk.21.url.win" value="https://github.com/adoptium/temurin21-binaries/releases/download/${jdk.21.dir.sub}/${jdk.21.zip.win}"/>
<property name="jdk.21.url.lin" value="https://github.com/adoptium/temurin21-binaries/releases/download/${jdk.21.dir.sub}/${jdk.21.zip.lin}"/>
<property name="jdk.21.url.mac" value="https://github.com/adoptium/temurin21-binaries/releases/download/${jdk.21.dir.sub}/${jdk.21.zip.mac}"/>
<property name="mvn.jdk.version" value="21"/>
<property name="tomcat.jdk.default.dir" value="${jdk.21.dir}"/>
<property name="fr.jdk.dir" value="${jdk.21.dir}"/>
<property name="fr.jdk.zip.win" value="${jdk.21.zip.win}"/>
<property name="fr.jdk.zip.lin" value="${jdk.21.zip.lin}"/>
<property name="fr.jdk.zip.mac" value="${jdk.21.zip.mac}"/>
<property name="fr.jdk.url.win" value="${jdk.21.url.win}"/>
<property name="fr.jdk.url.lin" value="${jdk.21.url.lin}"/>
<property name="fr.jdk.url.mac" value="${jdk.21.url.mac}"/>
<property name="jdk.lib.jspawnhelper" value="lib/jspawnhelper"/><!-- chmod +x to prevent "error=13, Permission denied" since Java 17 for tasks like java and chmod, see also https://askubuntu.com/questions/1480995/permission-denied-trying-to-start-a-new-process-from-a-java-application-as-root -->
<property name="jdk.sub.mac" value="Contents/Home"/>
<property name="ant.version." value="1.10.10"/><!-- extra . because ant.version is a build-in property -->
<property name="ant.base" value="apache-ant-${ant.version.}-bin"/>
<property name="ant.zip" value="${ant.base}.zip"/>
<property name="ant.tar" value="${ant.base}.tar"/>
<property name="ant.gz" value="${ant.tar}.gz"/>
<property name="ant.base.url" value="https://archive.apache.org/dist/ant/binaries/"/>
<property name="ant.zip.url" value="${ant.base.url}${ant.zip}"/>
<property name="ant.gz.url" value="${ant.base.url}${ant.gz}"/>
<property name="ant.dir" value="build/apache-ant-${ant.version.}"/>
<property name="rhino.version.major" value="1"/>
<property name="rhino.version.minor" value="7"/>
<property name="rhino.version.patch" value="14"/>
<property name="rhino.version" value="${rhino.version.major}.${rhino.version.minor}.${rhino.version.patch}"/>
<property name="rhino.zip" value="rhino-${rhino.version}.zip"/>
<property name="rhino.zip.url" value="https://github.com/mozilla/rhino/releases/download/Rhino${rhino.version.major}_${rhino.version.minor}_${rhino.version.patch}_Release/${rhino.zip}"/>
<property name="rhino.dir" value="build/rhino${rhino.version}"/>
<property name="maven.remark.line1" value="Maven will by default use 1.8 for source and target (independent of Java version being used to run Maven)"/>
<property name="maven.remark.line2" value="For example java 11 can be specified in the pom.xml of your project by adding property <maven.compiler.release>11</maven.compiler.release>"/>
<property name="maven.version" value="3.9.6"/><!-- check whether remark above about 1.8 is still correct, see https://maven.apache.org/plugins/maven-compiler-plugin/ -->
<property name="maven.base" value="apache-maven-${maven.version}-bin"/>
<property name="maven.zip" value="${maven.base}.zip"/>
<property name="maven.tar" value="${maven.base}.tar"/>
<property name="maven.gz" value="${maven.tar}.gz"/>
<property name="maven.base.url" value="https://archive.apache.org/dist/maven/maven-3/${maven.version}/binaries/"/>
<property name="maven.zip.url" value="${maven.base.url}${maven.zip}"/>
<property name="maven.gz.url" value="${maven.base.url}${maven.gz}"/>
<property name="maven.dir" value="build/apache-maven-${maven.version}"/>
<property name="tomcat.9.version.minor" value="0"/>
<property name="tomcat.9.version.patch" value="89"/><!-- on update: also update jms, ojdbc, mssql and pgsql -->
<property name="tomcat.9.version" value="9.${tomcat.9.version.minor}.${tomcat.9.version.patch}"/>
<property name="tomcat.9.zip" value="apache-tomcat-${tomcat.9.version}.zip"/>
<property name="tomcat.9.url" value="https://archive.apache.org/dist/tomcat/tomcat-9/v${tomcat.9.version}/bin/${tomcat.9.zip}"/>
<property name="tomcat.9.dir" value="build/apache-tomcat-${tomcat.9.version}"/>
<property name="tomcat.10.version.minor" value="1"/>
<property name="tomcat.10.version.patch" value="24"/><!-- on update: also update jms, ojdbc, mssql and pgsql -->
<property name="tomcat.10.version" value="10.${tomcat.10.version.minor}.${tomcat.10.version.patch}"/>
<property name="tomcat.10.zip" value="apache-tomcat-${tomcat.10.version}.zip"/>
<property name="tomcat.10.url" value="https://archive.apache.org/dist/tomcat/tomcat-10/v${tomcat.10.version}/bin/${tomcat.10.zip}"/>
<property name="tomcat.10.dir" value="build/apache-tomcat-${tomcat.10.version}"/>
<property name="tomcat.connector.port" value="80" /><!-- for backwards compatibility (tomcat.port introduced 20220318) -->
<property name="tomcat.port" value="${tomcat.connector.port}"/>
<property name="tomcat.secure.port" value="443"/>
<property name="tomcat.server.port" value="8005"/>
<property name="eclipse.version" value="2024-09"/><!-- on update: also update eclipse.jre.dir and lombok -->
<property name="eclipse.jre.dir" value="plugins/org.eclipse.justj.openjdk.hotspot.jre.full.win32.x86_64_21.0.4.v20240802-1551/jre"/>
<property name="eclipse.file" value="eclipse-jee-${eclipse.version}-R-win32-x86_64" if:true="${os.windows}"/>
<property name="eclipse.file" value="eclipse-jee-${eclipse.version}-R-linux-gtk-x86_64" if:true="${os.linux}"/>
<property name="eclipse.file" value="eclipse-jee-${eclipse.version}-R-macosx-cocoa-x86_64" if:true="${os.mac}"/>
<property name="eclipse.zip" value="${eclipse.file}.zip" if:true="${os.windows}"/>
<property name="eclipse.zip" value="${eclipse.file}.tar.gz" unless:true="${os.windows}"/>
<property name="eclipse.tar" value="${eclipse.file}.tar"/>
<property name="eclipse.url" value="https://ftp.snt.utwente.nl/pub/software/eclipse/technology/epp/downloads/release/${eclipse.version}/R/${eclipse.zip}"/>
<property name="eclipse.dir" value="build/${eclipse.file}"/>
<property name="lombok.version" value="1.18.34"/>
<property name="lombok.jar" value="lombok-${lombok.version}.jar"/>
<property name="lombok.url" value="https://projectlombok.org/downloads/${lombok.jar}"/>
<property name="winmerge.version" value="2.16.6"/>
<property name="winmerge.zip" value="winmerge-${winmerge.version}-exe.zip"/>
<property name="winmerge.url" value="https://github.com/WinMerge/winmerge/releases/download/${winmerge.version}/${winmerge.zip}"/>
<property name="winmerge.dir" value="build/winmerge-${winmerge.version}-x64-exe"/>
<property name="jta.version" value="1.1.1"/><!-- https://central.sonatype.com/artifact/org.apache.geronimo.specs/geronimo-jta_1.1_spec/versions -->
<property name="jta.jar" value="geronimo-jta_1.1_spec-${jta.version}.jar"/>
<property name="jta.url" value="https://repo1.maven.org/maven2/org/apache/geronimo/specs/geronimo-jta_1.1_spec/${jta.version}/${jta.jar}"/>
<property name="jms1.version" value="1.1.1"/><!-- https://central.sonatype.com/artifact/org.apache.geronimo.specs/geronimo-jms_1.1_spec/versions -->
<property name="jms1.jar" value="geronimo-jms_1.1_spec-${jms1.version}.jar"/>
<property name="jms1.url" value="https://repo1.maven.org/maven2/org/apache/geronimo/specs/geronimo-jms_1.1_spec/${jms1.version}/${jms1.jar}"/>
<property name="jms3.version" value="3.1.0"/><!-- https://central.sonatype.com/artifact/jakarta.jms/jakarta.jms-api/versions -->
<property name="jms3.jar" value="jakarta.jms-api-${jms3.version}.jar"/>
<property name="jms3.url" value="https://repo1.maven.org/maven2/jakarta/jms/jakarta.jms-api/${jms3.version}/${jms3.jar}"/>
<property name="h2v1.version" value="1.4.200"/>
<property name="h2v1.jar" value="h2-${h2v1.version}.jar"/>
<property name="h2v1.url" value="https://repo1.maven.org/maven2/com/h2database/h2/${h2v1.version}/${h2v1.jar}"/>
<property name="h2v1.dir" value="${basedir}/build/h2"/>
<property name="h2v2.version" value="2.2.220"/>
<property name="h2v2.jar" value="h2-${h2v2.version}.jar"/>
<property name="h2v2.url" value="https://repo1.maven.org/maven2/com/h2database/h2/${h2v2.version}/${h2v2.jar}"/>
<property name="h2v2.dir" value="${basedir}/build/h2/v2.2"/><!-- changed v2 to v2.2 on upgrade from 2.1.210 to 2.2.220 to prevent: The write format 2 is smaller than the supported format 3 -->
<property name="ojdbc8.version" value="23.4.0.24.05"/><!-- https://central.sonatype.com/artifact/com.oracle.database.jdbc/ojdbc8/versions -->
<property name="ojdbc8.jar" value="ojdbc8-${ojdbc8.version}.jar"/>
<property name="ojdbc8.url" value="https://repo1.maven.org/maven2/com/oracle/database/jdbc/ojdbc8/${ojdbc8.version}/${ojdbc8.jar}"/>
<property name="ojdbc11.version" value="23.4.0.24.05"/><!-- https://central.sonatype.com/artifact/com.oracle.database.jdbc/ojdbc11/versions -->
<property name="ojdbc11.jar" value="ojdbc11-${ojdbc11.version}.jar"/>
<property name="ojdbc11.url" value="https://repo1.maven.org/maven2/com/oracle/database/jdbc/ojdbc11/${ojdbc11.version}/${ojdbc11.jar}"/>
<property name="mssql8.version" value="12.6.1.jre8"/><!-- https://central.sonatype.com/artifact/com.microsoft.sqlserver/mssql-jdbc/versions -->
<property name="mssql8.jar" value="mssql-jdbc-${mssql8.version}.jar"/>
<property name="mssql8.url" value="https://repo1.maven.org/maven2/com/microsoft/sqlserver/mssql-jdbc/${mssql8.version}/${mssql8.jar}"/>
<property name="mssql11.version" value="12.6.1.jre11"/><!-- https://central.sonatype.com/artifact/com.microsoft.sqlserver/mssql-jdbc/versions -->
<property name="mssql11.jar" value="mssql-jdbc-${mssql11.version}.jar"/>
<property name="mssql11.url" value="https://repo1.maven.org/maven2/com/microsoft/sqlserver/mssql-jdbc/${mssql11.version}/${mssql11.jar}"/>
<property name="pgsql.version" value="42.7.3"/><!-- https://jdbc.postgresql.org/download/ -->
<property name="pgsql.jar" value="postgresql-${pgsql.version}.jar"/>
<property name="pgsql.url" value="https://jdbc.postgresql.org/download/${pgsql.jar}"/>
<antcall target="cacerts"><param name="jdk.dir" value="${fr.jdk.dir}"/></antcall><!-- install cacerts here in case jdk is unzipped by bat or sh (get tasks below need cacerts)-->
<property name="update.strategy" value="latest"/>
<condition property="update.strategy.is.latest"><equals arg1="${update.strategy}" arg2="latest"/></condition>
<tstamp><format property="get.metadata.tstamp" pattern="yyyyMMdd-HH"/></tstamp>
<property name="get.metadata.maxtime" value="10"/>
<property name="get.metadata.ignoreerrors" value="true"/>
<mkdir dir="${download.dir}/metadata/"/>
<condition property="get.metadata"><and><isset property="update.strategy.is.latest"/><not><resourceexists><file file="${download.dir}/metadata/maven-metadata-${get.metadata.tstamp}.txt"/></resourceexists></not><not><isset property="ff.version"/></not><not><equals arg1="${maven}" arg2="true"/></not></and></condition>
<get src="https://nexus.frankframework.org/repository/public/org/frankframework/frankframework-webapp/maven-metadata.xml" dest="${download.dir}/metadata/maven-metadata-tmp.xml" maxtime="${get.metadata.maxtime}" ignoreerrors="${get.metadata.ignoreerrors}" verbose="on" if:set="get.metadata"/>
<move file="${download.dir}/metadata/maven-metadata-tmp.xml" tofile="${download.dir}/metadata/maven-metadata.xml" failonerror="false" quiet="true"/>
<xmlproperty file="${download.dir}/metadata/maven-metadata.xml" if:set="update.strategy.is.latest"/>
<echo file="${download.dir}/metadata/maven-metadata-${get.metadata.tstamp}.txt" if:set="get.metadata">metadata.versioning.latest=${metadata.versioning.latest}</echo>
<property name="ff.version" value="${metadata.versioning.latest}" if:set="metadata.versioning.latest" unless:true="${maven}"/><!-- unless:true="${maven} to prevent unnecessary download -->
<condition property="ff.version" value="8.0.1" unless:true="${maven}"><equals arg1="${update.strategy}" arg2="stable"/></condition><!-- unless:true="${maven} to prevent unnecessary download -->
<fail message="Property update.strategy has invalid value: ${update.strategy}"><condition><not><or><equals arg1="${update.strategy}" arg2="latest"/><equals arg1="${update.strategy}" arg2="stable"/></or></not></condition></fail>
<condition property="ff.war" value="ibis-adapterframework-webapp-${ff.version}.war"><matches string="${ff.version}" pattern="^[1-7]\..*$"/></condition>
<condition property="ff.url" value="https://nexus.frankframework.org/repository/public/org/ibissource/ibis-adapterframework-webapp/${ff.version}/${ff.war}"><matches string="${ff.version}" pattern="^[1-7]\..*$"/></condition>
<property name="ff.war" value="frankframework-webapp-${ff.version}.war"/>
<property name="ff.url" value="https://nexus.frankframework.org/repository/public/org/frankframework/frankframework-webapp/${ff.version}/${ff.war}"/>
<condition property="frankflow.get.metadata"><and><not><resourceexists><file file="${download.dir}/metadata/frank-flow/maven-metadata-${get.metadata.tstamp}.txt"/></resourceexists></not><not><isset property="frankflow.version"/></not></and></condition>
<mkdir dir="${download.dir}/metadata/frank-flow"/>
<get src="https://nexus.frankframework.org/repository/frank-flow/org/frankframework/frank-flow/maven-metadata.xml" dest="${download.dir}/metadata/frank-flow/maven-metadata-tmp.xml" maxtime="${get.metadata.maxtime}" ignoreerrors="${get.metadata.ignoreerrors}" verbose="on" if:set="frankflow.get.metadata"/>
<move file="${download.dir}/metadata/frank-flow/maven-metadata-tmp.xml" tofile="${download.dir}/metadata/frank-flow/maven-metadata.xml" failonerror="false" quiet="true"/>
<xmlproperty file="${download.dir}/metadata/frank-flow/maven-metadata.xml" prefix="frankflow"/>
<echo file="${download.dir}/metadata/frank-flow/maven-metadata-${get.metadata.tstamp}.txt" if:set="frankflow.get.metadata">metadata.versioning.release=${frankflow.metadata.versioning.release}</echo>
<condition property="frankflow.version" value="2.27.1-20240202.120321"><matches string="${ff.version}" pattern="^([7]\.|[8]\.[01]).*$"/></condition>
<property name="frankflow.version" value="${frankflow.metadata.versioning.release}" if:set="frankflow.metadata.versioning.release"/>
<condition property="frankflow.war" value="frank-flow-webapp-${frankflow.version}.war"><matches string="${ff.version}" pattern="^([7]\.|[8]\.[01]).*$"/></condition>
<condition property="frankflow.url" value="https://nexus.frankframework.org/repository/public/org/ibissource/frank-flow-webapp/${frankflow.version}/${frankflow.war}"><matches string="${ff.version}" pattern="^([7]\.|[8]\.[01]).*$"/></condition>
<property name="frankflow.war" value="frank-flow-${frankflow.version}.war"/>
<property name="frankflow.url" value="https://nexus.frankframework.org/repository/frank-flow/org/frankframework/frank-flow/${frankflow.version}/${frankflow.war}"/>
<available property="jdk.8.zip.available" file="${download.dir}/${jdk.8.zip}"/>
<available property="jdk.11.zip.available" file="${download.dir}/${jdk.11.zip}"/>
<available property="jdk.17.zip.available" file="${download.dir}/${jdk.17.zip}"/>
<available property="jdk.21.zip.available" file="${download.dir}/${jdk.21.zip}"/>
<available property="ant.zip.available" file="${download.dir}/${ant.zip}" if:true="${os.windows}"/>
<available property="ant.zip.available" file="${download.dir}/${ant.gz}" unless:true="${os.windows}"/>
<available property="ant.dir.available" file="${ant.dir}"/>
<available property="maven.zip.available" file="${download.dir}/${maven.zip}" if:true="${os.windows}"/>
<available property="maven.zip.available" file="${download.dir}/${maven.gz}" unless:true="${os.windows}"/>
<available property="maven.dir.available" file="${maven.dir}"/>
<available property="tomcat.9.zip.available" file="${download.dir}/${tomcat.9.zip}"/>
<available property="tomcat.9.dir.available" file="${tomcat.9.dir}"/>
<available property="tomcat.10.zip.available" file="${download.dir}/${tomcat.10.zip}"/>
<available property="tomcat.10.dir.available" file="${tomcat.10.dir}"/>
<available property="eclipse.zip.available" file="${download.dir}/${eclipse.zip}"/>
<available property="eclipse.dir.available" file="${eclipse.dir}"/>
<available property="winmerge.zip.available" file="${download.dir}/${winmerge.zip}"/>
<available property="winmerge.dir.available" file="${winmerge.dir}"/>
<available property="ff.war.available" file="${download.dir}/${ff.war}"/>
<available property="frankflow.war.available" file="${download.dir}/${frankflow.war}"/>
<available property="jta.jar.available" file="${download.dir}/${jta.jar}"/>
<available property="jms1.jar.available" file="${download.dir}/${jms1.jar}"/>
<available property="jms3.jar.available" file="${download.dir}/${jms3.jar}"/>
<available property="h2v1.jar.available" file="${download.dir}/${h2v1.jar}"/>
<available property="h2v2.jar.available" file="${download.dir}/${h2v2.jar}"/>
<available property="ojdbc8.jar.available" file="${download.dir}/${ojdbc8.jar}"/>
<available property="ojdbc11.jar.available" file="${download.dir}/${ojdbc11.jar}"/>
<available property="mssql8.jar.available" file="${download.dir}/${mssql8.jar}"/>
<available property="mssql11.jar.available" file="${download.dir}/${mssql11.jar}"/>
<available property="pgsql.jar.available" file="${download.dir}/${pgsql.jar}"/>
<available property="lombok.jar.available" file="${download.dir}/${lombok.jar}"/>
<property name="larva.windiff.command" value="${basedir}/${winmerge.dir}/WinMerge/WinMergeU.exe"/><!-- defined here and not at the beginning of this file where most properties are defined as it depends on ${winmerge.dir} -->
<propertyset id="system.properties.set">
<propertyref builtin="commandline"/>
<propertyref name="dtap.stage"/>
<propertyref name="otap.stage"/>
<propertyref name="instance.name"/>
<propertyref name="ibistesttool.directory"/>
<propertyref name="larva.windiff.command"/>
<propertyref name="frank-flow.context-path"/><!-- Frank!Flow 3.0 with F!F 8.2 doesn't need this anymore (2.27.1-20231017.123547 will be used when ff.version is 8.1 or lower) -->
<propertyref name="application.security.http.transportGuarantee" />
<propertyref name="application.security.console.authentication.type" />
<propertyref name="application.security.console.authentication.username" />
<propertyref name="application.security.console.authentication.password" />
<propertyref name="application.security.testtool.authentication.type" />
<propertyref name="application.security.testtool.authentication.username" />
<propertyref name="application.security.testtool.authentication.password" />
</propertyset>
<property name="system.properties.comma.separated" value="${toString:system.properties.set}"/>
<scriptdef language="javascript" name="systemproperties">
<attribute name="name"/>
<attribute name="commaseparated"/>
var commaSeparated = new String(attributes.get("commaseparated")).split(', ');
var value = '';
for (var i = 0; i < commaSeparated.length; i++) {
if (!commaSeparated[i].startsWith('ant.')) {
value += '\n' + new java.lang.String(commaSeparated[i]).replace("\\", "\\\\");
}
}
project.setProperty(attributes.get("name"), value);
</scriptdef>
<systemproperties name="system.properties" commaseparated="${system.properties.comma.separated}"/>
<property name="configurations.dirset.dir" value="${projects.dir}"/>
<property name="configurations.dir.abs" location="${configurations.dirset.dir}/${project.dir}/${configurations.dir}"/>
<property name="configurations.dir.rel" basedir="${configurations.dirset.dir}" value="${configurations.dir.abs}" relative="true"/><!-- the use of configurations.dir.rel makes it possible to use ../.. in configurations.dir and still have the includes work (.abs removes the ../.. and .rel will make it relative again) -->
<property name="configurations.dirset.includes" value="${configurations.dir.rel}/*,${project.dir}_*/src/main/configuration/*,${project.dir}/configurations/*/src/main/resources/*,${project.dir}/configurations/*"/>
<dirset id="configurations.dirs.id" dir="${configurations.dirset.dir}" includes="${configurations.dirset.includes}"/>
<pathconvert property="configurations.dirs" refid="configurations.dirs.id" pathsep="|"/>
<pathconvert property="configurations.dirs.flat" refid="configurations.dirs.id" pathsep="|"><flattenmapper/></pathconvert>
<dirset id="configurations.base.path.dirs.id" dir="${projects.dir}/${project.dir}" includes="configurations/*/adapters"/>
<pathconvert property="configurations.base.path.flat" refid="configurations.base.path.dirs.id" setonempty="false" if:set="project.dir.available"><flattenmapper/></pathconvert>
<condition property="configurations.base.path" value="adapters"><isset property="configurations.base.path.flat"/></condition>
<scriptdef language="javascript" name="configurationsproperties">
<attribute name="name"/>
<attribute name="configurationsdirabs"/>
<attribute name="configurationnamedefault"/>
<attribute name="configurationsnames"/>
<attribute name="configurationsnamesds"/>
<attribute name="configurationsdirs"/>
<attribute name="configurationsdirsflat"/>
<attribute name="classloadertype"/>
<attribute name="basepath"/>
var configurationsDirAbs = new String(attributes.get("configurationsdirabs"));
var configurationNameDefault = new String(attributes.get("configurationnamedefault"));
var configurationsNames = new String(attributes.get("configurationsnames"));
var configurationsNamesDs = new String(attributes.get("configurationsnamesds"));
var configurationsDirs = new String(attributes.get("configurationsdirs")).split('|');
var configurationsDirsFlat = new String(attributes.get("configurationsdirsflat")).split('|');
var classLoaderType = new String(attributes.get("classloadertype"));
var basePath = new String(attributes.get("basepath"));
var value = '';
value += '\n# Set configurations.directory based on Frank!Runner properties';
value += '\nconfigurations.directory=' + new java.lang.String(configurationsDirAbs).replace("\\", "\\\\");
if (configurationsNames != '${configurations.names}') {
value += '\n# Set configurations.names to Frank!Runner property with the same name';
if (configurationNameDefault != '${configuration.name.default}') {
value += ' (plus ' + configurationNameDefault + ' because a Configuration.xml is detected in classes.dir)';
value += '\nconfigurations.names=' + new java.lang.String(configurationNameDefault).replace("\\", "\\\\") + ',';
} else {
value += '\nconfigurations.names=';
}
value += new java.lang.String(configurationsNames).replace("\\", "\\\\");
} else {
if (configurationsNamesDs == '${ds.properties.configurations.names}') {
value += '\n# Set configurations.names to the list of folders in configurations.directory';
if (configurationNameDefault != '${configuration.name.default}') {
value += ' (plus ' + configurationNameDefault + ' because a Configuration.xml is detected in classes.dir)';
value += '\nconfigurations.names=' + new java.lang.String(configurationNameDefault).replace("\\", "\\\\") + ',';
} else {
value += '\nconfigurations.names=';
}
if (configurationsDirsFlat.toString().length > 0) {
value += new java.lang.String(configurationsDirsFlat.toString()).replace("\\", "\\\\");
}
} else {
value += '\n# Don\'t set configurations.names as it is spedified in DeploymentSpecifics.properties';
}
}
if (configurationsDirsFlat.toString().length > 0) {
if (basePath == '${configurations.base.path}') basePath = '/'; // when set to empty string F!F will use default basePath (which is the configuration name)
value += '\n# Set .classLoaderType and .directory property for every folder in configurations.directory';
for (var i = 0; i < configurationsDirs.length; i++) {
value += '\nconfigurations.' + new java.lang.String(configurationsDirsFlat[i]).replace(" ", "\\ ") + '.classLoaderType='+ classLoaderType;
value += '\nconfigurations.' + new java.lang.String(configurationsDirsFlat[i]).replace(" ", "\\ ") + '.directory=' + new java.lang.String(configurationsDirs[i]).replace("\\", "\\\\");
value += '\nconfigurations.' + new java.lang.String(configurationsDirsFlat[i]).replace(" ", "\\ ") + '.basePath=' + basePath;
}
}
project.setProperty(attributes.get("name"), value);
</scriptdef>
<configurationsproperties name="configurations.properties" configurationsdirabs="${configurations.dir.abs}" configurationnamedefault="${configuration.name.default}" configurationsnames="${configurations.names}" configurationsnamesds="${ds.properties.configurations.names}" configurationsdirs="${configurations.dirs}" configurationsdirsflat="${configurations.dirs.flat}" classloadertype="${classloader.type}" basepath="${configurations.base.path}"/>
<property name="projects.dir.abs" location="${projects.dir}"/>
<condition property="test.testtool.prefix" value="/" else="src/"><equals arg1="${configurations.base.path}" arg2="adapters"/></condition>
<property name="scenariosroot.default" basedir="${projects.dir}" location="${projects.dir}/${project.dir}_${sub.project}/${tests.dir}" relative="true" if:set="sub.project"/>
<property name="scenariosroot.default" basedir="${projects.dir}" location="${projects.dir}/${project.dir}/${modules.dir}/${module.dir}/${test.testtool.prefix}test/testtool" relative="true" if:set="module.dir"/>
<property name="scenariosroot.default" basedir="${projects.dir}" location="${projects.dir}/${project.dir}/${tests.dir}" relative="true"/>
<property name="tests.dirset.dir" value="${projects.dir}"/>
<property name="tests.dir.abs" location="${tests.dirset.dir}/${project.dir}/${tests.dir}"/>
<property name="tests.dir.rel" basedir="${tests.dirset.dir}" value="${tests.dir.abs}" relative="true"/><!-- the use of tests.dir.rel makes it possible to use ../.. in tests.dir and still have the includes work (.abs removes the ../.. and .rel will make it relative again) -->
<property name="tests.dirset.includes" value="${tests.dir.rel},${project.dir}_*/src/test/testtool,${project.dir}/configurations/*/src/test/testtool,${project.dir}/configurations/*/test/testtool"/>
<dirset id="tests.dirs.id" dir="${tests.dirset.dir}" includes="${tests.dirset.includes}"/>
<pathconvert property="tests.dirs" refid="tests.dirs.id" pathsep="|"/>
<scriptdef language="javascript" name="testsproperties">
<attribute name="name"/>
<attribute name="projectsdirabs"/>
<attribute name="scenariosrootdefault"/>
<attribute name="testsdirs"/>
var projectsDirAbs = new String(attributes.get("projectsdirabs"));
var scenariosrootDefault = new String(attributes.get("scenariosrootdefault"));
var testsDirs = new String(attributes.get("testsdirs")).split('|');
var value = '';
if (scenariosrootDefault != '${scenariosroot.default}') {
value += '\nscenariosroot.default=' + new java.lang.String(scenariosrootDefault).replace("\\", "\\\\");
}
for (var i = 0; i < testsDirs.length; i++) {
value += '\nscenariosroot' + (i + 1) + '.description='+ new java.lang.String(testsDirs[i].substring(projectsDirAbs.length + 1)).replace("\\", "\\\\");
value += '\nscenariosroot' + (i + 1) + '.directory=' + new java.lang.String(testsDirs[i]).replace("\\", "\\\\");
}
project.setProperty(attributes.get("name"), value);
</scriptdef>
<testsproperties name="tests.properties" projectsdirabs="${projects.dir.abs}" scenariosrootdefault="${scenariosroot.default}" testsdirs="${tests.dirs}"/>
<loadresource property="jdk.8.dir.windows"><propertyresource name="jdk.8.dir"/><filterchain><tokenfilter><filetokenizer/><replacestring from="/" to="\"/></tokenfilter></filterchain></loadresource>
<loadresource property="jdk.11.dir.windows"><propertyresource name="jdk.11.dir"/><filterchain><tokenfilter><filetokenizer/><replacestring from="/" to="\"/></tokenfilter></filterchain></loadresource>
<loadresource property="jdk.17.dir.windows"><propertyresource name="jdk.17.dir"/><filterchain><tokenfilter><filetokenizer/><replacestring from="/" to="\"/></tokenfilter></filterchain></loadresource>
<loadresource property="jdk.21.dir.windows"><propertyresource name="jdk.21.dir"/><filterchain><tokenfilter><filetokenizer/><replacestring from="/" to="\"/></tokenfilter></filterchain></loadresource>
<loadresource property="fr.jdk.dir.windows"><propertyresource name="fr.jdk.dir"/><filterchain><tokenfilter><filetokenizer/><replacestring from="/" to="\"/></tokenfilter></filterchain></loadresource>
<loadresource property="ant.dir.windows"><propertyresource name="ant.dir"/><filterchain><tokenfilter><filetokenizer/><replacestring from="/" to="\"/></tokenfilter></filterchain></loadresource>
<loadresource property="rhino.dir.windows"><propertyresource name="rhino.dir"/><filterchain><tokenfilter><filetokenizer/><replacestring from="/" to="\"/></tokenfilter></filterchain></loadresource>
<loadresource property="maven.dir.windows"><propertyresource name="maven.dir"/><filterchain><tokenfilter><filetokenizer/><replacestring from="/" to="\"/></tokenfilter></filterchain></loadresource>
<loadresource property="tomcat.9.dir.windows"><propertyresource name="tomcat.9.dir"/><filterchain><tokenfilter><filetokenizer/><replacestring from="/" to="\"/></tokenfilter></filterchain></loadresource>
<loadresource property="tomcat.10.dir.windows"><propertyresource name="tomcat.10.dir"/><filterchain><tokenfilter><filetokenizer/><replacestring from="/" to="\"/></tokenfilter></filterchain></loadresource>
<loadresource property="tomcat.jdk.default.dir.windows"><propertyresource name="tomcat.jdk.default.dir"/><filterchain><tokenfilter><filetokenizer/><replacestring from="/" to="\"/></tokenfilter></filterchain></loadresource>
<tstamp><format property="get.build.tstamp" pattern="yyyyMMdd"/></tstamp>
<condition property="get.build"><not><resourceexists><file file="${download.dir}/frank-runner/build-${get.build.tstamp}.txt"/></resourceexists></not></condition>
<property name="get.build.maxtime" value="10"/>
<property name="get.build.ignoreerrors" value="true"/>
<mkdir dir="${download.dir}/frank-runner"/>
<get src="https://raw.githubusercontent.com/ibissource/frank-runner/master/build.xml" dest="${download.dir}/frank-runner/build.xml" maxtime="${get.build.maxtime}" ignoreerrors="${get.build.ignoreerrors}" verbose="on" if:set="get.build"/>
<echo file="${download.dir}/frank-runner/build-${get.build.tstamp}.txt" if:set="get.build"/>
<copy file="build.xml" tofile="${download.dir}/frank-runner/build.xml"/><!-- overwrite when newer, e.g. when git pull is done when build.xml is already downloaded that day -->
<condition property="frank.runner.up.to.date"><or><filesmatch file1="build.xml" file2="${download.dir}/frank-runner/build.xml" textfile="true"/><not><resourceexists><file file="${download.dir}/frank-runner/build.xml"/></resourceexists></not></or></condition>
</target>
<target name="install" depends="init,get.java,get.ant,get.maven,get.tomcat,get.eclipse,get.lombok,get.winmerge,get.ff,get.frankflow,get.jta,get.jms,get.h2v1,get.h2v2,get.ojdbc,get.mssql,get.pgsql">
<!-- jdk -->
<antcall target="jdk"><param name="jdk.dir" value="${jdk.8.dir}"/><param name="jdk.zip" value="${jdk.8.zip}"/><param name="jdk.tar" value="${jdk.8.tar}"/><param name="cacerts.dir" value="jre/lib/security"/></antcall><!-- default cacerts.dir for cacerts task is lib/security -->
<antcall target="jdk"><param name="jdk.dir" value="${jdk.11.dir}"/><param name="jdk.zip" value="${jdk.11.zip}"/><param name="jdk.tar" value="${jdk.11.tar}"/></antcall>
<antcall target="jdk"><param name="jdk.dir" value="${jdk.17.dir}"/><param name="jdk.zip" value="${jdk.17.zip}"/><param name="jdk.tar" value="${jdk.17.tar}"/></antcall>
<antcall target="jdk"><param name="jdk.dir" value="${jdk.21.dir}"/><param name="jdk.zip" value="${jdk.21.zip}"/><param name="jdk.tar" value="${jdk.21.tar}"/></antcall>
<!-- ant -->
<unzip src="${download.dir}/${ant.zip}" dest="build" unless:set="ant.dir.available" if:true="${os.windows}">
<patternset>
<exclude name="**/manual"/>
</patternset>
</unzip>
<gunzip src="${download.dir}/${ant.gz}" dest="build" unless:set="ant.dir.available" unless:true="${os.windows}"/>
<untar src="build/${ant.tar}" dest="build" unless:set="ant.dir.available" unless:true="${os.windows}">
<patternset>
<exclude name="**/manual"/>
</patternset>
</untar>
<delete file="build/${ant.tar}" unless:set="ant.dir.available" unless:true="${os.windows}"/>
<chmod file="${ant.dir}/bin/ant" perm="+x" unless:set="ant.dir.available" unless:true="${os.windows}"/>
<chmod file="${ant.dir}/bin/antRun" perm="+x" unless:set="ant.dir.available" unless:true="${os.windows}"/>
<!-- maven -->
<unzip src="${download.dir}/${maven.zip}" dest="build" unless:set="maven.dir.available" if:true="${os.windows}"/>
<gunzip src="${download.dir}/${maven.gz}" dest="build" unless:set="maven.dir.available" unless:true="${os.windows}"/>
<untar src="build/${maven.tar}" dest="build" unless:set="maven.dir.available" unless:true="${os.windows}"/>
<chmod file="${maven.dir}/bin/mvn" perm="+x" unless:set="maven.dir.available" unless:true="${os.windows}"/>
<delete file="build/${maven.tar}" unless:set="maven.dir.available" unless:true="${os.windows}"/>
<mkdir dir="build/webapps"/>
<property name="webapp.dir" value="build/webapps/${context.path}" unless:true="${maven}"/>
<property name="webapp.dir" value="${projects.dir}/${project.dir}/${war.dir}/src/main/webapp" if:set="war.pom.xml.available" if:true="${maven}"/>
<property name="webapp.dir" value="${projects.dir}/${project.dir}/src/main/webapp" if:set="pom.xml.available" if:true="${maven}"/>
<property name="webapp.gitignore" value="/iaf/ /images/ /js/ /jsp/ /larva/ /META-INF/maven/ /META-INF/jboss-all.xml /META-INF/MANIFEST.MF /testtool/ /WEB-INF/ /body.css /favicon.ico /ie4.css /ie55.css" if:true="${maven}"/>
<property name="webapp.clean" value=" iaf/** images/** js/** jsp/** larva/** META-INF/maven/** META-INF/jboss-all.xml META-INF/MANIFEST.MF testtool/** WEB-INF/** body.css favicon.ico ie4.css ie55.css" unless:true="${maven.skip.clean}"/>
<condition property="webapp.gitignore.add" unless:true="${webapp.gitignore.skip}" if:true="${maven}"><not><resourcecontains resource="${webapp.dir}/.gitignore" substring="${webapp.gitignore}"/></not></condition>
<condition property="webapp.gitignore.add.newline" if:true="${webapp.gitignore.add}"><length file="${webapp.dir}/.gitignore" when="greater" length="0"/></condition>
<echo file="${webapp.dir}/.gitignore" message=" " append="true" if:true="${webapp.gitignore.add.newline}"/>
<echo file="${webapp.dir}/.gitignore" message="${webapp.gitignore}" append="true" if:true="${webapp.gitignore.add}"/>
<property name="project.gitignore" value="/target/" if:true="${maven}"/>
<condition property="project.gitignore.add" unless:true="${project.gitignore.skip}" if:true="${maven}"><not><resourcecontains resource="${maven.exec.dir}/.gitignore" substring="${project.gitignore}"/></not></condition>
<condition property="project.gitignore.add.newline" if:true="${project.gitignore.add}"><length file="${maven.exec.dir}/.gitignore" when="greater" length="0"/></condition>
<echo file="${maven.exec.dir}/.gitignore" message=" " append="true" if:true="${project.gitignore.add.newline}"/>
<echo file="${maven.exec.dir}/.gitignore" message="${project.gitignore}" append="true" if:true="${project.gitignore.add}"/>
<delete includeEmptyDirs="true" verbose="${maven.verbose}" unless:true="${webapp.clean.skip}" if:true="${maven}"><fileset dir="${webapp.dir}" includes="${webapp.clean}" defaultexcludes="false"/></delete><!-- maven clean war:inplace doesn't clean the webapp (see also: https://stackoverflow.com/questions/12497081/maven-war-inplace-clean-classes-and-lib-folder) -->
<condition property="mvn.exe" value="${basedir}\mvn.bat" else="/bin/bash"><os family="windows"/></condition>
<condition property="mvn.arg" value="${basedir}/mvn.sh" else=""><os family="unix"/></condition>
<exec executable="${mvn.exe}" dir="${maven.exec.dir}" vmlauncher="false" failonerror="true" if:true="${maven}">
<arg value="${mvn.arg}" unless:blank="${mvn.arg}"/>
<arg value="--settings" if:set="maven.settings.xml"/>
<arg value="${maven.settings.xml}" if:set="maven.settings.xml"/>
<arg value="${maven.args}" if:set="maven.args"/>
<arg value="clean" unless:true="${maven.skip.clean}"/>
<arg value="${maven.phase}"/>
<arg value="war:inplace"/>
<arg value="--update-snapshots"/>
<arg value="--debug" if:true="${maven.verbose}"/>
<arg value="-DskipTests" if:true="${maven.skip.tests}"/>
<arg value="-Dmaven.javadoc.skip=true" if:true="${maven.skip.javadoc}"/>
</exec>
<!-- tomcat -->
<antcall target="install.tomcat"><param name="tomcat.dir" value="${tomcat.9.dir}"/><param name="tomcat.dir.windows" value="${tomcat.9.dir.windows}"/><param name="tomcat.dir.available" value="${tomcat.9.dir.available}"/><param name="tomcat.zip" value="${tomcat.9.zip}"/><param name="jms.jar" value="${jms1.jar}"/><param name="ojdbc.jar" value="${ojdbc8.jar}"/><param name="mssql.jar" value="${mssql8.jar}"/></antcall><!-- older ff versions run with jdk 8, hence ojdbc8 and mssql8 -->
<antcall target="install.tomcat"><param name="tomcat.dir" value="${tomcat.10.dir}"/><param name="tomcat.dir.windows" value="${tomcat.10.dir.windows}"/><param name="tomcat.dir.available" value="${tomcat.10.dir.available}"/><param name="tomcat.zip" value="${tomcat.10.zip}"/><param name="jms.jar" value="${jms3.jar}"/><param name="ojdbc.jar" value="${ojdbc11.jar}"/><param name="mssql.jar" value="${mssql11.jar}"/></antcall><!-- ff 8.2 requires jakarta instead of javax, hence jms3 -->
<!-- eclipse -->
<condition property="eclipse.and.os.windows"><and><istrue value="${eclipse}"/><istrue value="${os.windows}"/></and></condition>
<unzip src="${download.dir}/${eclipse.zip}" dest="${eclipse.dir}" unless:set="eclipse.dir.available" if:true="${eclipse.and.os.windows}"><cutdirsmapper dirs="1"/></unzip>
<gunzip src="${download.dir}/${eclipse.zip}" dest="build" unless:set="eclipse.dir.available" if:true="${eclipse}" unless:true="${os.windows}"/>
<untar src="build/${eclipse.tar}" dest="${eclipse.dir}" unless:set="eclipse.dir.available" if:true="${eclipse}" unless:true="${os.windows}"><cutdirsmapper dirs="1"/></untar>
<delete file="build/${eclipse.tar}" unless:set="eclipse.dir.available" if:true="${eclipse}" unless:true="${os.windows}"/>
<chmod file="${eclipse.dir}/eclipse" perm="+x" unless:set="eclipse.dir.available" if:true="${eclipse}" unless:true="${os.windows}"/>
<chmod dir="${eclipse.dir}/plugins/" includes="**/jre/bin/*" perm="+x" unless:set="eclipse.dir.available" if:true="${eclipse}" unless:true="${os.windows}"/>
<copy todir="${eclipse.dir}" file="${download.dir}/${lombok.jar}" unless:set="eclipse.dir.available" if:true="${eclipse}"/>
<concat destfile="${eclipse.dir}/eclipse.ini" append="true" unless:set="eclipse.dir.available" if:true="${eclipse}">-javaagent:${lombok.jar} </concat>
<antcall target="cacerts" if:true="${eclipse}"><param name="jdk.dir" value="${eclipse.dir}/${eclipse.jre.dir}"/><param name="cacerts.dir" value="lib/security"/></antcall>
<!-- winmerge -->
<unzip src="${download.dir}/${winmerge.zip}" dest="${winmerge.dir}" unless:set="winmerge.dir.available"/>
<!-- webapp -->
<property file="${webapp.dir}/META-INF/maven/org.frankframework/frankframework-webapp/pom.properties" prefix="ff.pom.properties.old."/>
<property file="${webapp.dir}/META-INF/maven/org.ibissource/ibis-adapterframework-webapp/pom.properties" prefix="ff.pom.properties.old."/>
<property name="frankflow.dir" value="build/webapps/frank-flow"/>
<property file="${frankflow.dir}/META-INF/maven/org.ibissource/frank-flow-webapp/pom.properties" prefix="frankflow.pom.properties.old."/>
<pathconvert property="contexts.dirs" dirsep="," pathsep=","><dirset dir="build/webapps" includes="*" excludes="frank-flow"/><flattenmapper/></pathconvert>
<condition property="maven.or.ff.version.changed.or.context.path.changed"><or><istrue value="${maven}"/><not><equals arg1="${ff.version}" arg2="${ff.pom.properties.old.version}"/></not><not><equals arg1="${contexts.dirs}" arg2="${context.path}"/></not></or></condition>
<condition property="frankflow.version.changed"><not><equals arg1="${frankflow.version}" arg2="${frankflow.pom.properties.old.version}"/></not></condition>
<delete includeemptydirs="true" if:set="maven.or.ff.version.changed.or.context.path.changed"><fileset dir="build/webapps" includes="**/*" excludes="frank-flow/**/*"/></delete>
<delete includeemptydirs="true" if:set="frankflow.version.changed"><fileset dir="build/webapps" includes="frank-flow/**/*"/></delete>
<unzip src="${download.dir}/${ff.war}" dest="${webapp.dir}" if:set="maven.or.ff.version.changed.or.context.path.changed" unless:true="${maven}"/>
<unzip src="${download.dir}/${frankflow.war}" dest="${frankflow.dir}" if:set="frankflow.version.changed"/>
<delete><fileset dir="${webapp.dir}/WEB-INF/lib" includes="**-CUSTOM.jar"/></delete>
<available property="lib.webapp.dir.available" file="${projects.dir}/${project.dir}/${lib.webapp.dir}"/>
<copy todir="${webapp.dir}/WEB-INF/lib" if:set="lib.webapp.dir.available"><fileset dir="${projects.dir}/${project.dir}/${lib.webapp.dir}"/><globmapper from="*.jar" to="*-CUSTOM.jar"/></copy>
<pathconvert property="webapp.lib.jars" pathsep="|"><fileset dir="${webapp.dir}/WEB-INF/lib" includes="*.jar"/><flattenmapper/></pathconvert>
<doublejars jars="${webapp.lib.jars}"/>
<!-- ff version dependent properties -->
<property file="${webapp.dir}/META-INF/maven/org.frankframework/frankframework-webapp/pom.properties" prefix="ff.pom.properties."/>
<property file="${webapp.dir}/META-INF/maven/org.ibissource/ibis-adapterframework-webapp/pom.properties" prefix="ff.pom.properties."/>
<condition property="tomcat.dir" value="${tomcat.9.dir}"><matches string="${ff.pom.properties.version}" pattern="^([567]\.|[8]\.[01]).*$"/></condition><!-- 8.1 is the last version running on Tomcat 9 -->
<condition property="tomcat.dir.windows" value="${tomcat.9.dir.windows}"><matches string="${ff.pom.properties.version}" pattern="^([567]\.|[8]\.[01]).*$"/></condition>
<property name="tomcat.dir" value="${tomcat.10.dir}"/>
<property name="tomcat.dir.windows" value="${tomcat.10.dir.windows}"/>
<fileset id="jdk8.fallback.fileset" dir="${webapp.dir}/WEB-INF/lib" includes="ibis-adapterframework-core-*.jar"><!-- check jar files as maven doesn't use ff.version (now ff.pom.properties.version can probably be used) -->
<filename regex="core-7\."/>
</fileset>
<pathconvert property="jdk8.fallback" refid="jdk8.fallback.fileset" />
<property name="tomcat.jdk.dir" value="${jdk.8.dir}" unless:blank="${jdk8.fallback}"/>
<property name="tomcat.jdk.dir.windows" value="${jdk.8.dir.windows}" unless:blank="${jdk8.fallback}"/>
<fileset id="jdk11.fallback.fileset" dir="${webapp.dir}/WEB-INF/lib" includes="frankframework-core-*.jar">
<filename regex="core-8\.0"/>
</fileset>
<pathconvert property="jdk11.fallback" refid="jdk11.fallback.fileset" />
<property name="tomcat.jdk.dir" value="${jdk.11.dir}" unless:blank="${jdk11.fallback}"/>
<property name="tomcat.jdk.dir.windows" value="${jdk.11.dir.windows}" unless:blank="${jdk11.fallback}"/>
<property name="tomcat.jdk.dir" value="${tomcat.jdk.default.dir}"/>
<property name="tomcat.jdk.dir.windows" value="${tomcat.jdk.default.dir.windows}"/>
<fileset id="h2.fallback.fileset" dir="${webapp.dir}/WEB-INF/lib" includes="ibis-adapterframework-core-*.jar">
<or><filename regex="core-7\.[0-6]"/><filename regex="core-7\.7-2021"/><filename regex="core-7\.7-2022010"/><filename regex="core-7\.7-2022011[0-7]"/></or><!-- <= 7.7-20220117.131048: h2 + liquibase requires h2 version 1, >= 7.7-20220119.104942: h2 + liquibase requires h2 version 2 -->
</fileset>
<pathconvert property="h2.fallback" refid="h2.fallback.fileset" />
<property name="h2.jar" value="${h2v1.jar}" unless:blank="${h2.fallback}"/>
<property name="h2.jar" value="${h2v2.jar}"/>
<property name="h2.dir" value="${h2v1.dir}" unless:blank="${h2.fallback}"/>
<property name="h2.dir" value="${h2v2.dir}"/>
<!-- h2 -->
<delete><fileset dir="${tomcat.dir}/lib" includes="h2-*.jar" excludes="${h2.jar}"/></delete>
<copy file="${download.dir}/${h2.jar}" todir="${tomcat.dir}/lib"/>
<!-- context.xml -->
<available property="context.xml.source" value="${projects.dir}/${project.dir}/${context.xml}" file="${projects.dir}/${project.dir}/${context.xml}"/>
<property name="context.xml.source" value="database/${database.type}/context.xml"/>
<property name="context.xml.target" value="${tomcat.dir}/conf/Catalina/localhost/${context.path}.xml"/>
<delete dir="${tomcat.dir}/conf/Catalina/localhost"/><!-- xml file could have a different name in previous run or in previous run maven could be true and in current run false -->
<delete file="${context.xml.target}"/><!-- in case ${context.xml.source} doesn't point to a file next copy will not clean ${context.xml.target} -->
<copy file="${context.xml.source}" tofile="${context.xml.target}"/>
<lower from="${instance.name}" to="instance.name.lc"/>
<replace file="${context.xml.target}" token="@instance.name.lc@" value="${instance.name.lc}" summary="true"/>
<replace file="${context.xml.target}" token="@h2.dir@" value="${h2.dir}" summary="true"/>
<property name="webapp.dir.abs" location="${webapp.dir}"/>
<replace file="${tomcat.dir}/conf/Catalina/localhost/${context.path}.xml" token="<Context>" value="<Context docBase="${webapp.dir.abs}">" summary="true"/>
<property name="frankflow.dir.abs" location="${frankflow.dir}"/>
<echo file="${tomcat.dir}/conf/Catalina/localhost/frank-flow.xml" message="<Context docBase="${frankflow.dir.abs}"/>"/>
<property name="frankflow.active" value="true"/>
<delete file="${tomcat.dir}/conf/Catalina/localhost/frank-flow.xml" unless:true="${frankflow.active}"/>
<!-- classes -->
<delete dir="${webapp.dir}/WEB-INF/classes" unless:true="${maven}"/>
<mkdir dir="${webapp.dir}/WEB-INF/classes" unless:true="${maven}"/>
<available property="java.dir.available" file="${projects.dir}/${project.dir}/${java.dir}"/>
<property name="javac.release" value="8" unless:blank="${jdk8.fallback}"/>
<property name="javac.release" value="11"/>
<javac srcdir="${projects.dir}/${project.dir}/${java.dir}" destdir="${webapp.dir}/WEB-INF/classes" release="${javac.release}" includeantruntime="false" if:set="java.dir.available" unless:true="${maven}">
<classpath>
<fileset dir="${download.dir}"><include name="${lombok.jar}"/></fileset>
<fileset dir="${webapp.dir}/WEB-INF/lib"><include name="*.jar"/></fileset>
<fileset dir="${tomcat.dir}/lib"><include name="*.jar"/></fileset>
</classpath>
<compilerarg line="-processor lombok.launch.AnnotationProcessorHider$AnnotationProcessor"/><!-- prevent warning in java 21: ... future release of javac may disable annotation processing ... -->
</javac>
<available property="classes.dir.available" file="${projects.dir}/${project.dir}/${classes.dir}"/>
<copy todir="${webapp.dir}/WEB-INF/classes" if:set="classes.dir.available" unless:true="${maven}">
<fileset dir="${projects.dir}/${project.dir}/${classes.dir}"/>
</copy>
<!-- frank config xsd -->
<condition property="update.config.xsd">
<or>
<istrue value="${maven}"/><!-- f!f version could be changed -->
<not><equals arg1="${ff.version}" arg2="${ff.pom.properties.old.version}"/></not><!-- f!f version changed -->
<not><resourceexists><file file="${configurations.dir}/FrankConfig.xsd"/></resourceexists></not><!-- maybe a new project and f!f version not changed -->
</or>
</condition>
<delete file="build/frankdoc/FrankConfig.xsd" if:true="${update.config.xsd}"/><!-- prevent available task after unjar to detect xsd from previous ff version when current ff version doesn't have one -->
<delete file="build/frankdoc/FrankConfig-strict.xsd" if:true="${update.config.xsd}" />
<unjar dest="build/frankdoc" if:true="${update.config.xsd}">
<fileset dir="${webapp.dir}/WEB-INF/lib" includes="frankframework-core-*.jar,ibis-adapterframework-core-*.jar"></fileset>
<patternset>
<include name="xml/xsd/FrankConfig-strict.xsd"/>
<include name="xml/xsd/FrankConfig.xsd"/>
</patternset>
<flattenmapper/>
</unjar>
<condition property="update.config.xsd.and.available">
<and>
<istrue value="${update.config.xsd}"/>
<or>
<available file="build/frankdoc/FrankConfig.xsd"/>
<available file="build/frankdoc/FrankConfig-strict.xsd"/>
</or>
</and>
</condition>
<condition property="move.config.strict.xsd"><!-- somewhere in 2022 FrankConfig.xsd was added (before that we needed to use FrankConfig-strict.xsd) -->
<and>
<istrue value="${update.config.xsd.and.available}"/>
<not><available file="build/frankdoc/FrankConfig.xsd"/></not>
</and>
</condition>
<move file="build/frankdoc/FrankConfig-strict.xsd" tofile="build/frankdoc/FrankConfig.xsd" if:true="${move.config.strict.xsd}"/>
<scriptdef language="javascript" name="multicopyconfigxsd"><!-- configs can be divided over serveral modules/projects, hence a copy to configurations.dir only is not enough) -->
<attribute name="configurationsdirs"/>
<attribute name="basepath"/>
var configurationsDirs = new String(attributes.get("configurationsdirs")).split('|'); // paths that include a specific config name at the end
var configurationsDir = "/.."; // go one up to reach the configurations.dir holding one or more specific configs
if (attributes.get("basepath") == 'adapters') configurationsDir = '/'; // keep reference to xsd in config xml working with ../FrankConfig.xsd like with other setups and rutime deployments (otherwise with the extra adapters ../../FrankConfig.xsd would be needed to reach the configurations.dir)
for (var i = 0; i < configurationsDirs.length; i++) {
if (configurationsDirs[i].length > 0) {
var task = project.createTask("antcall");
task.setTarget("copy.config.xsd");
var param = task.createParam();
param.setName("dir");
param.setValue(configurationsDirs[i] + configurationsDir);
task.perform();
}
}
</scriptdef>
<multicopyconfigxsd configurationsdirs="${configurations.dirs}" basepath="${configurations.base.path}" if:true="${update.config.xsd}"/>
<antcall target="copy.config.xsd" if:true="${update.config.xsd}"><param name="dir" value="${projects.dir}/${project.dir}/${classes.dir}/.."/><param name="dir2check" value="${projects.dir}/${project.dir}/${classes.dir}"/></antcall>
<dirset id="project.dirs.id" dir="${configurations.dirset.dir}" includes="${project.dir},${project.dir}_*" if:true="${update.config.xsd.and.available}"/>
<pathconvert property="project.dirs" refid="project.dirs.id" pathsep="|" if:true="${update.config.xsd.and.available}"/>
<scriptdef language="javascript" name="multiaddgitignore"><!-- configs can be divided over serveral projects, hence a copy to project.dir only is not enough) -->
<attribute name="dirs"/>
var dirs = new String(attributes.get("dirs")).split('|');
for (var i = 0; i < dirs.length; i++) {
if (dirs[i].length > 0) {
var task = project.createTask("antcall");
task.setTarget("add.gitignore");
var param1 = task.createParam();
param1.setName("dir");
param1.setValue(dirs[i]);
var param2 = task.createParam();
param2.setName("ignore");
param2.setValue("FrankConfig.xsd");
task.perform();
}
}
</scriptdef>
<multiaddgitignore dirs="${project.dirs}" if:true="${update.config.xsd.and.available}"/>
<!-- scripts -->
<antcall target="generate.bat"><param name="filename" value="ant"/></antcall>
<antcall target="generate.bat"><param name="filename" value="mvn"/></antcall>
<antcall target="generate.bat"><param name="filename" value="env"/></antcall>
<antcall target="generate.bat"><param name="filename" value="cmd"/></antcall>
<antcall target="generate.bat"><param name="filename" value="start"/></antcall>
<antcall target="generate.bat"><param name="filename" value="stop"/></antcall>
<antcall target="generate.bat"><param name="filename" value="run"/></antcall>
<antcall target="generate.bat"><param name="filename" value="restart"/></antcall>
<antcall target="generate.bat"><param name="filename" value="rerun"/></antcall>
<antcall target="generate.sh"><param name="filename" value="ant"/></antcall>
<antcall target="generate.sh"><param name="filename" value="mvn"/></antcall>
<antcall target="generate.sh"><param name="filename" value="env"/></antcall>
<antcall target="generate.sh"><param name="filename" value="start"/></antcall>
<antcall target="generate.sh"><param name="filename" value="stop"/></antcall>
<antcall target="generate.sh"><param name="filename" value="run"/></antcall>
<antcall target="generate.sh"><param name="filename" value="restart"/></antcall>
<antcall target="generate.sh"><param name="filename" value="rerun"/></antcall>
</target>
<target name="tomcat">
<condition property="catalina.exe" value="${tomcat.dir.windows}\bin\catalina.bat" else="${tomcat.dir}/bin/catalina.sh"><os family="windows"/></condition>
<property name="catalina.out" value="${tomcat.dir}/logs/tomcat-${action}.txt"/>
<property name="redirect.out" value="true"/>
<exec executable="${catalina.exe}" vmlauncher="false" failonerror="true" if:true="${use.exec}">
<arg value="${action}"/>
<env key="JAVA_HOME" value="${tomcat.jdk.dir}" unless:true="${os.windows}"/>
<env key="JAVA_HOME" value="${tomcat.jdk.dir.windows}" if:true="${os.windows}"/>
<env key="CATALINA_HOME" value="${tomcat.dir}" unless:true="${os.windows}"/>
<env key="CATALINA_HOME" value="${tomcat.dir.windows}" if:true="${os.windows}"/>
<env key="JAVA_OPTS" value="-Xmx${maxmemory}"/>
<redirector output="${catalina.out}" if:true="${redirect.out}"/>
</exec>
<property name="tomcat.java.jvm" value="${basedir}/${tomcat.jdk.dir}/bin/java" unless:true="${os.windows}"/>
<property name="tomcat.java.jvm" value="${basedir}\${tomcat.jdk.dir.windows}\bin\java.exe" if:true="${os.windows}"/>
<property name="spawn" value="true"/>
<java jvm="${tomcat.java.jvm}" classname="org.apache.catalina.startup.Bootstrap" fork="true" failonerror="true" spawn="${spawn}" maxmemory="${maxmemory}" if:true="${use.java}">
<jvmarg value="-Dcatalina.home=${tomcat.dir}"/>
<jvmarg value="--add-opens=java.base/java.lang=ALL-UNNAMED" if:blank="${jdk8.fallback}"/><!-- Fixes classloading issue, see https://github.com/wearefrank/frank-runner/pull/86 (this option is not available on JDK 8) -->
<arg value="${action}"/>
<classpath>
<fileset dir="${tomcat.dir}/bin"><include name="*.jar"/></fileset>
<fileset dir="${tomcat.dir}/lib"><include name="*.jar"/></fileset>
</classpath>
</java>
</target>
<target name="start" depends="install">
<!-- with exec in windows a new window will be opened -->
<condition property="use.exec"><not><equals arg1="${use}" arg2="java"/></not></condition>
<!-- with java in windows no new window will be opened -->
<condition property="use.java"><equals arg1="${use}" arg2="java"/></condition>
<antcall target="tomcat"><param name="action" value="start"/></antcall>
<antcall target="splash"/>
</target>
<target name="run" depends="install">
<antcall target="splash"/>
<echo message=" "/><!-- space instead of empty for eclipse -->
<echo message=" "/>
<!-- use java by default as with exec in windows a ctrl-c will not kill tomcat -->
<condition property="use.exec" else="false"><equals arg1="${use}" arg2="exec"/></condition>
<condition property="use.java" else="false"><not><equals arg1="${use}" arg2="exec"/></not></condition>
<property name="spawn" value="false"/>
<property name="redirect.out" value="false"/>
<!-- with exec in windows a ctrl-c will not kill tomcat -->
<antcall target="tomcat" if:true="${use.exec}"><param name="action" value="run"/></antcall>
<!-- with java in windows a ctrl-c will kill tomcat -->
<antcall target="tomcat" if:true="${use.java}"><param name="action" value="start"/></antcall>
</target>
<!-- don't add depends="install" because when tomcat is running resources may be locked which will result in "Unable to delete file" build failures -->
<target name="stop" depends="init">
<condition property="catalina.bat.present"><resourceexists><file file="${tomcat.10.dir}/bin/catalina.bat"/></resourceexists></condition><!-- not present when build.xml is running for the first time or tomcat.version has changed. see comment behind tomcat.dir below about using version 10 -->
<antcall target="install" unless:set="catalina.bat.present"/>
<condition property="tomcat.running"><or><socket server="localhost" port="${tomcat.port}"/><socket server="localhost" port="${tomcat.server.port}"/></or></condition>
<condition property="use.exec" if:set="tomcat.running"><not><equals arg1="${use}" arg2="java"/></not></condition>
<condition property="use.java" if:set="tomcat.running"><equals arg1="${use}" arg2="java"/></condition>
<antcall target="tomcat">
<param name="action" value="stop"/>
<param name="tomcat.dir" value="${tomcat.10.dir}"/><!-- version 10 can also be used to stop version 9. target stop doesn't depend on install which would set tomcat.dir (based on ff version), hence pass tomcat.dir as a param -->
<param name="tomcat.dir.windows" value="${tomcat.10.dir.windows}"/>
<param name="tomcat.jdk.dir" value="${jdk.21.dir}"/><!-- any version supported by tomcat will be fine. target stop doesn't depend on install which would set tomcat.jdk.dir (based on ff version), hence pass tomcat.jdk.dir as a param -->
<param name="tomcat.jdk.dir.windows" value="${jdk.21.dir.windows}"/>
</antcall>
<tstamp><format property="stop.begin" pattern="HH:mm:ss"/></tstamp>
<property name="stop.maxwait" value="300"/>
<property name="stop.maxwaitunit" value="second"/>
<echo message="${stop.begin} Wait max ${stop.maxwait} ${stop.maxwaitunit}s for Tomcat to stop" if:set="tomcat.running" unless:true="${tomcat.skip.waitfor}"/>
<waitfor maxwait="${stop.maxwait}" maxwaitunit="${stop.maxwaitunit}" timeoutproperty="stop.failed" if:set="tomcat.running" unless:true="${tomcat.skip.waitfor}">
<not><or><socket server="localhost" port="${tomcat.port}"/><socket server="localhost" port="${tomcat.server.port}"/></or></not>
</waitfor>
<fail message="Tomcat (or another process) is still running on port ${tomcat.port} and/or ${tomcat.server.port}. Please stop Tomcat manually or try again" if:set="stop.failed"/>
<tstamp><format property="stop.end" pattern="HH:mm:ss"/></tstamp>
<echo message="${stop.end} Done" if:set="tomcat.running" unless:true="${tomcat.skip.waitfor}"/>
</target>
<target name="restart" depends="init">
<antcall target="stop"/>
<property name="restart.start" value="run" unless:true="${os.windows}"/><!-- show startup output and make it work when executed by vscode task explorer (which seems to kill the tomcat start command when the script calling it is ready) -->
<property name="restart.start" value="start" if:true="${os.windows}"/><!-- on windows tomcat will open a new window which will show startup output and will not be killed by vscode task explorer when the script starting it is ready-->
<antcall target="${restart.start}"/>
</target>
<target name="rerun">
<antcall target="stop"/>
<antcall target="run"/>
</target>
<target name="get.java">
<get src="${jdk.8.url.win}" dest="${download.dir}/${jdk.8.zip}" verbose="on" if:true="${os.windows}" unless:true="${jdk.8.zip.available}"/>
<get src="${jdk.8.url.lin}" dest="${download.dir}/${jdk.8.zip}" verbose="on" if:true="${os.linux}" unless:true="${jdk.8.zip.available}"/>
<get src="${jdk.8.url.mac}" dest="${download.dir}/${jdk.8.zip}" verbose="on" if:true="${os.mac}" unless:true="${jdk.8.zip.available}"/>
<get src="${jdk.11.url.win}" dest="${download.dir}/${jdk.11.zip}" verbose="on" if:true="${os.windows}" unless:true="${jdk.11.zip.available}"/>
<get src="${jdk.11.url.lin}" dest="${download.dir}/${jdk.11.zip}" verbose="on" if:true="${os.linux}" unless:true="${jdk.11.zip.available}"/>
<get src="${jdk.11.url.mac}" dest="${download.dir}/${jdk.11.zip}" verbose="on" if:true="${os.mac}" unless:true="${jdk.11.zip.available}"/>
<get src="${jdk.17.url.win}" dest="${download.dir}/${jdk.17.zip}" verbose="on" if:true="${os.windows}" unless:true="${jdk.17.zip.available}"/>
<get src="${jdk.17.url.lin}" dest="${download.dir}/${jdk.17.zip}" verbose="on" if:true="${os.linux}" unless:true="${jdk.17.zip.available}"/>
<get src="${jdk.17.url.mac}" dest="${download.dir}/${jdk.17.zip}" verbose="on" if:true="${os.mac}" unless:true="${jdk.17.zip.available}"/>
<get src="${jdk.21.url.win}" dest="${download.dir}/${jdk.21.zip}" verbose="on" if:true="${os.windows}" unless:true="${jdk.21.zip.available}"/>
<get src="${jdk.21.url.lin}" dest="${download.dir}/${jdk.21.zip}" verbose="on" if:true="${os.linux}" unless:true="${jdk.21.zip.available}"/>
<get src="${jdk.21.url.mac}" dest="${download.dir}/${jdk.21.zip}" verbose="on" if:true="${os.mac}" unless:true="${jdk.21.zip.available}"/>
</target>
<target name="get.ant" unless="${ant.zip.available}">
<get src="${ant.zip.url}" dest="${download.dir}/${ant.zip}" verbose="on" if:true="${os.windows}"/>
<get src="${ant.gz.url}" dest="${download.dir}/${ant.gz}" verbose="on" unless:true="${os.windows}"/>
</target>
<target name="get.maven" unless="${maven.zip.available}">
<get src="${maven.zip.url}" dest="${download.dir}/${maven.zip}" verbose="on" if:true="${os.windows}"/>
<get src="${maven.gz.url}" dest="${download.dir}/${maven.gz}" verbose="on" unless:true="${os.windows}"/>
</target>
<target name="get.tomcat">
<get src="${tomcat.9.url}" dest="${download.dir}/${tomcat.9.zip}" verbose="on" unless:true="${tomcat.9.zip.available}"/>
<get src="${tomcat.10.url}" dest="${download.dir}/${tomcat.10.zip}" verbose="on" unless:true="${tomcat.10.zip.available}"/>
</target>
<target name="get.eclipse" unless="${eclipse.zip.available}" if="${eclipse}">
<get src="${eclipse.url}" dest="${download.dir}/${eclipse.zip}" verbose="on"/>
</target>
<target name="get.lombok" unless="${lombok.jar.available}">
<get src="${lombok.url}" dest="${download.dir}/${lombok.jar}" verbose="on"/>
</target>
<target name="get.winmerge" unless="${winmerge.zip.available}">
<get src="${winmerge.url}" dest="${download.dir}/${winmerge.zip}" verbose="on"/>
</target>
<target name="get.ff" unless="${ff.war.available}">
<get src="${ff.url}" dest="${download.dir}/${ff.war}" verbose="on" if:set="ff.version"/><!-- ff.version is not set when running maven -->
</target>
<target name="get.frankflow" unless="${frankflow.war.available}">
<get src="${frankflow.url}" dest="${download.dir}/${frankflow.war}" verbose="on"/>
</target>
<target name="get.jta" unless="${jta.jar.available}">
<get src="${jta.url}" dest="${download.dir}/${jta.jar}" verbose="on"/>
</target>
<target name="get.jms">
<get src="${jms1.url}" dest="${download.dir}/${jms1.jar}" verbose="on" unless:true="${jms1.jar.available}"/>
<get src="${jms3.url}" dest="${download.dir}/${jms3.jar}" verbose="on" unless:true="${jms3.jar.available}"/>
</target>
<target name="get.h2v1" unless="${h2v1.jar.available}">
<get src="${h2v1.url}" dest="${download.dir}/${h2v1.jar}" verbose="on"/>
</target>
<target name="get.h2v2" unless="${h2v2.jar.available}">
<get src="${h2v2.url}" dest="${download.dir}/${h2v2.jar}" verbose="on"/>
</target>
<target name="get.ojdbc">
<get src="${ojdbc8.url}" dest="${download.dir}/${ojdbc8.jar}" verbose="on" unless:true="${ojdbc8.jar.available}"/>
<get src="${ojdbc11.url}" dest="${download.dir}/${ojdbc11.jar}" verbose="on" unless:true="${ojdbc11.jar.available}"/>
</target>
<target name="get.mssql">
<get src="${mssql8.url}" dest="${download.dir}/${mssql8.jar}" verbose="on" unless:true="${mssql8.jar.available}"/>
<get src="${mssql11.url}" dest="${download.dir}/${mssql11.jar}" verbose="on" unless:true="${mssql11.jar.available}"/>
</target>
<target name="get.pgsql" unless="${pgsql.jar.available}">
<get src="${pgsql.url}" dest="${download.dir}/${pgsql.jar}" verbose="on"/>
</target>
<target name="jdk">
<available property="jdk.dir.available" file="${jdk.dir}"/>
<unzip src="${download.dir}/${jdk.zip}" dest="build" unless:set="jdk.dir.available" if:true="${os.windows}">
<patternset>
<exclude name="**/demo"/>
<exclude name="**/sample"/>
<exclude name="**/src.zip"/>
</patternset>
</unzip>
<mkdir dir="build" unless:set="jdk.dir.available" unless:true="${os.windows}"/>
<gunzip src="${download.dir}/${jdk.zip}" dest="build" unless:set="jdk.dir.available" unless:true="${os.windows}"/>
<property name="jdk.untar.fileset.dir" value="${jdk.sub.mac}" if:true="${os.mac}"/>
<property name="jdk.untar.fileset.dir" value="."/>
<untar src="build/${jdk.tar}" dest="${jdk.dir}" unless:set="jdk.dir.available" unless:true="${os.windows}">
<patternset>
<include name="**/${jdk.sub.mac}/**" if:true="${os.mac}"/>
<exclude name="**/demo"/>
<exclude name="**/sample"/>
<exclude name="**/src.zip"/>
</patternset>
<cutdirsmapper dirs="1" unless:true="${os.mac}"/>
<cutdirsmapper dirs="3" if:true="${os.mac}"/>
</untar>
<delete file="build/${jdk.tar}" unless:set="jdk.dir.available" unless:true="${os.windows}"/>
<chmod dir="${jdk.dir}" includes="bin/*,${jdk.lib.jspawnhelper}" perm="+x" unless:set="jdk.dir.available" unless:true="${os.windows}"/>
<antcall target="cacerts"/>
</target>
<target name="cacerts">
<property name="cacerts.dir" value="lib/security"/>
<condition property="copy.cacerts">
<and>
<resourceexists><file file="${jdk.dir}/${cacerts.dir}/cacerts"/></resourceexists><!-- when upgrading jdk, the new jdk folder doesn't exist yet when this target is called from the init target -->
<not><resourceexists><file file="${jdk.dir}/${cacerts.dir}/cacerts-orig"/></resourceexists></not><!-- the copy from cacerts-orig to cacerts later on will make the timestamp of cacerts newer and copied again on next run, hence this condition to prevent that -->
</and>
</condition>
<copy file="${jdk.dir}/${cacerts.dir}/cacerts" tofile="${jdk.dir}/${cacerts.dir}/cacerts-orig" if:set="copy.cacerts"/>
<pathconvert property="cacerts"><fileset dir="." includes="cacerts/*"/><flattenmapper/></pathconvert>
<pathconvert property="cacerts.jdk"><fileset dir="." includes="${jdk.dir}/${cacerts.dir}/cacerts-custom/*"/><flattenmapper/></pathconvert><!-- whole path in includes prevents error when jdk dir not present -->
<condition property="cacerts.changed">
<and>
<not><equals arg1="${cacerts}" arg2="${cacerts.jdk}"/></not>
<resourceexists><file file="${jdk.dir}/${cacerts.dir}/cacerts-orig"/></resourceexists><!-- when upgrading jdk, the new jdk folder doesn't exist yet when this target is called from the init target -->
</and>
</condition>
<copy file="${jdk.dir}/${cacerts.dir}/cacerts-orig" tofile="${jdk.dir}/${cacerts.dir}/cacerts" overwrite="true" if:set="cacerts.changed"/>
<delete dir="${jdk.dir}/${cacerts.dir}/cacerts-custom" if:set="cacerts.changed"/>
<apply executable="${jdk.dir}/bin/keytool" relative="true" vmlauncher="false" failonerror="true" if:set="cacerts.changed">
<arg value="-noprompt"/>
<arg value="-storepass"/>
<arg value="changeit"/>
<arg value="-importcert"/>
<arg value="-alias"/>
<targetfile/>
<arg value="-keystore"/>
<arg value="${jdk.dir}/${cacerts.dir}/cacerts"/>
<arg value="-file"/>
<srcfile/>
<fileset dir="." includes="cacerts/*"/>
<chainedmapper>
<flattenmapper/>
<regexpmapper from="(.*)\.(.*)" to="\1"/>
</chainedmapper>
</apply>
<copy todir="${jdk.dir}/${cacerts.dir}/cacerts-custom" if:set="cacerts.changed"><fileset dir="cacerts" includes="*"/></copy>
</target>
<target name="install.tomcat">
<unzip src="${download.dir}/${tomcat.zip}" dest="build" unless:true="${tomcat.dir.available}"/>
<chmod dir="${tomcat.dir}/bin" includes="*.sh" perm="+x" unless:true="${tomcat.dir.available}"/>
<delete includeemptydirs="true" unless:true="${tomcat.dir.available}"><fileset dir="${tomcat.dir}/webapps" includes="**/*"/></delete>
<copy file="${download.dir}/${jta.jar}" todir="${tomcat.dir}/lib" unless:true="${tomcat.dir.available}"/>
<copy file="${download.dir}/${jms.jar}" todir="${tomcat.dir}/lib" unless:true="${tomcat.dir.available}"/>
<copy file="${download.dir}/${ojdbc.jar}" todir="${tomcat.dir}/lib" unless:true="${tomcat.dir.available}"/>
<copy file="${download.dir}/${mssql.jar}" todir="${tomcat.dir}/lib" unless:true="${tomcat.dir.available}"/>
<copy file="${download.dir}/${pgsql.jar}" todir="${tomcat.dir}/lib" unless:true="${tomcat.dir.available}"/>
<replaceregexp file="${tomcat.dir}/conf/server.xml" match="(Connector port=").*(" protocol="HTTP)" replace="\1${tomcat.port}\2"/><!-- dont'use unless:true="${tomcat.dir.available}" because tomcat.port can be changed -->
<replaceregexp file="${tomcat.dir}/conf/server.xml" match="(Connector port=").*(" protocol="org.apache.coyote.http11.Http11NioProtocol)" replace="\1${tomcat.secure.port}\2"/><!-- dont'use unless:true="${tomcat.dir.available}" because tomcat.secure.port can be changed -->
<replaceregexp file="${tomcat.dir}/conf/server.xml" match="(Server port=").*(" shutdown)" replace="\1${tomcat.server.port}\2"/><!-- dont'use unless:true="${tomcat.dir.available}" because tomcat.secure.port can be changed -->
<replaceregexp file="${tomcat.dir}/conf/server.xml" match="redirectPort="8443"" replace="redirectPort="${tomcat.secure.port}""/><!-- dont'use unless:true="${tomcat.dir.available}" because tomcat.secure.port can be changed -->
<replaceregexp file="${tomcat.dir}/conf/server.xml" match="<!--(\s+.*org.apache.coyote.http11.Http11NioProtocol)" replace="\1" unless:true="${tomcat.dir.available}"/>
<replaceregexp file="${tomcat.dir}/conf/server.xml" flags="s" match="(org.apache.coyote.http11.Http11NioProtocol.*?)-->" replace="\1" unless:true="${tomcat.dir.available}"/>
<replaceregexp file="${tomcat.dir}/conf/tomcat-users.xml" match="</tomcat-users>" replace=" <user username="IbisWebService" password="IbisWebService" roles="IbisWebService"/> <user username="IbisObserver" password="IbisObserver" roles="IbisObserver"/> <user username="IbisDataAdmin" password="IbisDataAdmin" roles="IbisDataAdmin"/> <user username="IbisAdmin" password="IbisAdmin" roles="IbisAdmin"/> <user username="IbisTester" password="IbisTester" roles="IbisTester"/> </tomcat-users>" unless:true="${tomcat.dir.available}"/>
<exec executable="${jdk.8.dir}/bin/keytool" vmlauncher="false" failonerror="true" unless:true="${tomcat.dir.available}">
<arg value="-noprompt"/><arg value="-storepass"/><arg value="changeit"/><arg value="-keypass"/><arg value="changeit"/><arg value="-genkey"/><arg value="-alias"/><arg value="tomcat"/><arg value="-keyalg"/><arg value="RSA"/><arg value="-keystore"/><arg value="${tomcat.dir}/conf/localhost-rsa.jks"/><arg value="-storetype"/><arg value="pkcs12"/><arg value="-dname"/><arg value="CN=Frank"/>
</exec>
<replace file="${tomcat.dir}/conf/catalina.properties" token="jarsToSkip=\" value="jarsToSkip=* tomcat.util.scan.StandardJarScanFilter.jarsToSkip.OLD=\" summary="true" unless:true="${tomcat.dir.available}"/><!-- speed up startup time -->
<replace file="${tomcat.dir}/conf/catalina.properties" token="jarsToScan=\" value="jarsToScan=spring-web-*.jar,frankframework-*.jar,ibis-adapterframework-*.jar,frank-flow-*.jar,wearefrank__ladybug-*.jar,ladybug-frontend-*.jar,\" summary="true" unless:true="${tomcat.dir.available}"/><!-- core jar needed for iaf/frankdoc (since https://github.com/ibissource/iaf/commit/2489369a052d046dba94adbcbcfea4428f0d12fd). See also https://www.webjars.org/documentation#servlet3 -->
<replaceregexp file="${tomcat.dir}/conf/catalina.properties" match="\# \<frank-runner\>.*\# \<\/frank-runner\>" replace="" flags="sg"/>
<concat destfile="${tomcat.dir}/conf/catalina.properties" append="true"># <frank-runner> ${system.properties} ${configurations.properties} ${tests.properties} # </frank-runner></concat>
<replaceregexp file="${tomcat.dir}/conf/logging.properties" match="^org\.apache\.catalina\.core.ContainerBase\.\[Catalina\]\.\[localhost\]\.handlers\ " replace="# org.apache.catalina.core.ContainerBase.[Catalina].[localhost].handlers " flags="m"/><!-- some errors end up in localhost.<date>.log (e.g. when springIbisTestTool.xml is not correct), make them show up in the console -->
<delete><fileset dir="${tomcat.dir}/lib" includes="**-CUSTOM.jar"/></delete>
<available property="lib.server.dir.available" file="${projects.dir}/${project.dir}/${lib.server.dir}"/>
<copy todir="${tomcat.dir}/lib" if:set="lib.server.dir.available"><fileset dir="${projects.dir}/${project.dir}/${lib.server.dir}"/><globmapper from="*.jar" to="*-CUSTOM.jar"/></copy>
</target>
<target name="copy.config.xsd">
<property name="dir2check" value="${dir}"/><!-- make dir the default value for dir2check -->
<available property="dir2check.available" file="${dir2check}"/>
<delete file="${dir}/FrankConfig.xsd" if:true="${dir2check.available}"/><!-- remove xsd when not available in current ff version -->
<copy file="build/frankdoc/FrankConfig.xsd" todir="${dir}" failonerror="false" if:true="${dir2check.available}"/><!-- don't fail when xsd not available in current ff version, hence failonerror="false" -->
</target>
<target name="add.gitignore">
<condition property="gitignore.add"><not><resourcecontains resource="${dir}/.gitignore" substring="${ignore}"/></not></condition>