forked from apache/royale-asjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
releasesteps.xml
1648 lines (1571 loc) · 87 KB
/
releasesteps.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<?xml version="1.0"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<project name="CreateFrameworkReleaseCandidate" default="main" basedir=".">
<!-- use -Dtag=<tag or commit hash> to build from other than the head -->
<!-- Required for OSX 10.6 / Snow Leopard Performance. -->
<!-- Java 7 on Mac requires OSX 10.7.3 or higher and is 64-bit only -->
<!-- local.d32 is set/used in build.properties so this needs to be done first. -->
<condition property="local.d32" value="-d32">
<and>
<os family="windows"/>
<equals arg1="${sun.arch.data.model}" arg2="64"/>
<equals arg1="${os.arch}" arg2="x86_64"/>
<equals arg1="${ant.java.version}" arg2="1.6"/>
</and>
</condition>
<condition property="isMac" value="mac">
<os family="mac" />
</condition>
<condition property="isWindows" value="windows">
<os family="windows" />
</condition>
<condition property="isLinux" value="linux">
<and>
<os family="unix" />
<not>
<isset property="isMac" />
</not>
</and>
</condition>
<property name="rat.report" value="${basedir}/rat-report.txt"/>
<property name="apache.rat.jar" value="apache-rat-0.11.jar" />
<property name="apache.rat.tasks.jar" value="apache-rat-tasks-0.11.jar" />
<property name="apache.rat.url" value="https://search.maven.org/remotecontent?filepath=org/apache/rat/apache-rat/0.11" />
<property name="apache.rat.tasks.url" value="https://search.maven.org/remotecontent?filepath=org/apache/rat/apache-rat-tasks/0.11" />
<property file="${basedir}/local.properties" />
<property file="${basedir}/build.properties" />
<property environment="env"/>
<condition property="do.copy.downloads" >
<isset property="download.cache.dir" />
</condition>
<condition property="CRLF" value="%0D%0A">
<isset property="isWindows" />
</condition>
<property name="CRLF" value="%0A" />
<condition property="mvn" value="mvn.cmd">
<isset property="isWindows" />
</condition>
<property name="mvn" value="mvn" />
<condition property="svn" value="svn.exe">
<isset property="isWindows" />
</condition>
<property name="svn" value="svn" />
<available file="${env.ANT_HOME}/lib/${apache.rat.jar}"
type="file"
property="apache.rat.found"/>
<available file="${env.ANT_HOME}/lib/${apache.rat.tasks.jar}"
type="file"
property="apache.rat.tasks.found"/>
<fail message="The release version number is not set. Specify -Drelease.version=<release version (e.g. 0.9.0, 1.0.0, etc)>"
unless="release.version"/>
<target name="check-air-home" unless="env.AIR_HOME"
description="Check that AIR_HOME is a directory">
<echo message="AIR_HOME is ${env.AIR_HOME}"/>
<condition property="AIR_HOME.set">
<and>
<length string="${env.AIR_HOME}" when="greater" length="0" />
<available file="${env.AIR_HOME}" type="dir"/>
<!--available file="${env.AIR_HOME}/bin/adt" type="file"/-->
</and>
</condition>
<fail message="The environment variable AIR_HOME must be set to the AIR SDK Kit directory"
unless="AIR_HOME.set"/>
</target>
<target name="check-playerglobal-home" unless="env.PLAYERGLOBAL_HOME"
description="Check PLAYERGLOBAL_HOME for both a directory and a swc file">
<echo message="PLAYERGLOBAL_HOME is ${env.PLAYERGLOBAL_HOME}"/>
<echo message="playerglobal.version is ${playerglobal.version}"/>
<available file="${env.PLAYERGLOBAL_HOME}"
type="dir"
property="PLAYERGLOBAL_HOME.set"/>
<fail message="The environment variable PLAYERGLOBAL_HOME is not set to a directory"
unless="PLAYERGLOBAL_HOME.set"/>
<property name="playerglobal.swc"
value="${env.PLAYERGLOBAL_HOME}/${playerglobal.version}/playerglobal.swc"/>
<available file="${playerglobal.swc}"
type="file"
property="playerglobal.swc.exists"/>
<fail message="The file ${playerglobal.swc} does not exist"
unless="playerglobal.swc.exists"/>
<echo message="playerglobal.swc is ${playerglobal.swc}"/>
</target>
<!-- To run the checkintests as well as any mustella tests need AIR for the adl and
a flash player content debugger.
-->
<target name="check-runtime-env" depends="check-air-home"
description="Check for the required runtime environment variables for the checkintests">
<available file="${env.FLASHPLAYER_DEBUGGER}" property="FLASHPLAYER_DEBUGGER.set"/>
<fail message="FLASHPLAYER_DEBUGGER is ${env.FLASHPLAYER_DEBUGGER} which is not an Adobe Flash Player content debugger"
unless="FLASHPLAYER_DEBUGGER.set"/>
</target>
<target name="install-rat" depends="install-rat.jar,install-rat.tasks.jar" />
<target name="install-rat.jar" unless="apache.rat.found">
<get src="${apache.rat.url}/${apache.rat.jar}" dest="${env.ANT_HOME}/lib/${apache.rat.jar}" />
</target>
<target name="install-rat.tasks.jar" unless="apache.rat.tasks.found">
<get src="${apache.rat.url}/${apache.rat.tasks.jar}" dest="${env.ANT_HOME}/lib/${apache.rat.tasks.jar}" />
</target>
<target name="rat-taskdef" description="Rat taskdef">
<typedef resource="org/apache/rat/anttasks/antlib.xml"
uri="antlib:org.apache.rat.anttasks"
classpathref="anttask.classpath"/>
</target>
<target name="checkout_tag" if="tag" >
<exec executable="${git}" dir="${basedir}" failonerror="true" >
<arg value="checkout" />
<arg value="${tag}" />
</exec>
</target>
<target name="Release_Step_011" depends="get-temp-folder,download-artifacts,unzip-artifacts,build-source,validate-bits">
</target>
<target name="get-temp-folder">
<input
message="Enter a temporary folder to store the downloaded artifacts:"
addproperty="artifactfolder"/>
<mkdir dir="${artifactfolder}" />
<available file="${artifactfolder}"
type="dir"
property="artifact.folder.found"/>
<fail message="Could not create artifact folder"
unless="artifact.folder.found"/>
</target>
<target name="download-artifacts" if="artifactfolder">
<get src="http://apacheroyaleci.westus2.cloudapp.azure.com:8080/job/Royale_Release_Step_011/lastSuccessfulBuild/artifact/*zip*/archive.zip" dest="${artifactfolder}/archive.zip" />
</target>
<target name="unzip-artifacts" if="artifactfolder">
<mkdir dir="${artifactfolder}/artifacts" />
<unzip src="${artifactfolder}/archive.zip" dest="${artifactfolder}/artifacts"/>
</target>
<target name="build-source" >
<mkdir dir="${artifactfolder}/sources" />
<unzip src="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/framework/royale-framework-parent/${release.version}/royale-framework-parent-${release.version}-source-release.zip" dest="${artifactfolder}/sources" >
<cutdirsmapper dirs="1" />
</unzip>
<!-- build these modules -->
<exec executable="${mvn}" dir="${artifactfolder}/sources" failonerror="true" >
<arg value="-Dgenerate.swf.swcs=true" />
<arg value="clean" />
<arg value="install" />
<arg value="-P" />
<arg value="generate-swcs-for-swf,release-swcs,main" />
</exec>
</target>
<target name="get-artifact-folder" unless="artifactfolder">
<input
message="Enter the temporary folder to store the downloaded artifacts:"
addproperty="artifactfolder"/>
<available file="${artifactfolder}"
type="dir"
property="artifact.folder.found"/>
<fail message="Could not find artifact folder"
unless="artifact.folder.found"/>
</target>
<target name="validate-bits" depends="get-artifact-folder,compare-swcs">
</target>
<target name="write-out-maven-swcs-list" >
<delete file="${artifactfolder}/swcs.txt" />
<!-- this is a comma-delimited, no spaces, no-line-breaks list used to decide which swcs
to skip in the rat-check of the binaries and which swcs to examine before approval -->
<property name="swcs-list" value="Basic,Binding,Charts,Collections,Core,CreateJS,DragDrop,Effects,Express,Flat,FontAwesome,Formatters,GoogleMaps,Graphics,HTML,HTML5,Icons,JQuery,Jewel,Crux,Language,MXRoyale,MaterialDesignLite,Mobile,Network,Reflection,RoyaleUnit,RoyaleSite,SparkRoyale,Storage,TLF,Text,XML,BasicTheme,JewelTheme"/>
<echo file="${artifactfolder}/swcs.txt" message="${swcs-list}"/>
</target>
<target name="compare-swcs" depends="write-out-maven-swcs-list">
<!-- comma delimited list, no spaces, not one file per line -->
<copy file="${artifactfolder}/swcs.txt" tofile="${artifactfolder}/loop.txt" />
<ant antfile="releasesteps.xml" target="loopOnce" inheritAll="false" >
<property name="artifactfolder" value="${artifactfolder}" />
<property name="release.version" value="${release.version}" />
<property name="utils.version" value="${utils.version}" />
</ant>
</target>
<target name="loopOnce" >
<!-- make a copy of the list so we can munge it to
get the first item in the list -->
<delete file="${artifactfolder}/loop1.txt" />
<copy file="${artifactfolder}/loop.txt" tofile="${artifactfolder}/loop1.txt" />
<loadfile srcFile="${artifactfolder}/loop.txt" property="checkiflast" />
<condition property="islast" value="true">
<not>
<contains string="${checkiflast}" substring="," />
</not>
</condition>
<antcall target="notlast" />
<antcall target="lastone" />
</target>
<target name="notlast" unless="islast">
<loadfile srcFile="${artifactfolder}/loop1.txt" property="echoFile" />
<replaceregexp file="${artifactfolder}/loop1.txt" match="^(.*),(.*)" replace="\2" />
<loadfile srcFile="${artifactfolder}/loop1.txt" property="thisFile" />
<property name="artifactid" value="${thisFile}" />
<antcall target="compare_files" />
<replaceregexp file="${artifactfolder}/loop.txt" match="^(.*),(.*)" replace="\1" />
<ant antfile="releasesteps.xml" target="loopOnce" inheritAll="false">
<property name="artifactfolder" value="${artifactfolder}" />
<property name="release.version" value="${release.version}" />
</ant>
</target>
<target name="lastone" if="islast">
<loadfile srcFile="${artifactfolder}/loop1.txt" property="thisFile" />
<property name="artifactid" value="${thisFile}" />
<antcall target="compare_files" />
<delete file="${artifactfolder}/loop.txt" />
<delete file="${artifactfolder}/loop1.txt" />
</target>
<target name="compare_files" depends="is_theme,compare_swc,compare_theme" />
<target name="compare_swc">
<condition property="thisFolder" value="Basic">
<equals arg1="${thisFile}" arg2="BasicTheme" />
</condition>
<property name="thisFolder" value="${thisFile}" />
<echo>comparing ${artifactid}-${release.version}-js.swc</echo>
<fail message="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/framework/${artifactid}/${release.version}/${artifactid}-${release.version}-js.swc does not exist" >
<condition>
<not>
<resourceexists><file file="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/framework/${artifactid}/${release.version}/${artifactid}-${release.version}-js.swc"/></resourceexists>
</not>
</condition>
</fail>
<fail message="${artifactfolder}/sources/frameworks/${theme_or_project}/${thisFile}/target/${artifactid}-${release.version}-js.swc does not exist" >
<condition>
<not>
<resourceexists><file file="${artifactfolder}/sources/frameworks/${theme_or_project}/${thisFolder}/target/${artifactid}-${release.version}-js.swc"/></resourceexists>
</not>
</condition>
</fail>
<condition property="filesmatch" value="true">
<filesmatch file1="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/framework/${artifactid}/${release.version}/${artifactid}-${release.version}-js.swc"
file2="${artifactfolder}/sources/frameworks/${theme_or_project}/${thisFolder}/target/${artifactid}-${release.version}-js.swc" />
</condition>
<fail message="${artifactid}-${release.version}-js.swc does not match" unless="filesmatch" />
<echo>comparing ${artifactid}-${release.version}-swf.swc</echo>
<fail message="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/framework/${artifactid}/${release.version}/${artifactid}-${release.version}-swf.swc does not exist" >
<condition>
<not>
<resourceexists><file file="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/framework/${artifactid}/${release.version}/${artifactid}-${release.version}-swf.swc"/></resourceexists>
</not>
</condition>
</fail>
<fail message="${artifactfolder}/sources/frameworks/${theme_or_project}/${thisFile}/target/${artifactid}-${release.version}-swf.swc does not exist" >
<condition>
<not>
<resourceexists><file file="${artifactfolder}/sources/frameworks/${theme_or_project}/${thisFolder}/target/${artifactid}-${release.version}-swf.swc"/></resourceexists>
</not>
</condition>
</fail>
<condition property="filesmatch1" value="true">
<filesmatch file1="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/framework/${artifactid}/${release.version}/${artifactid}-${release.version}-swf.swc"
file2="${artifactfolder}/sources/frameworks/${theme_or_project}/${thisFolder}/target/${artifactid}-${release.version}-swf.swc" />
</condition>
<fail message="${artifactid}-${release.version}-swf.swc does not match" unless="filesmatch1" />
</target>
<target name="compare_theme" if="theme">
<echo>comparing ${artifactid}-${release.version}-typedefs.swc</echo>
<fail message="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/framework/${artifactid}/${release.version}/${artifactid}-${release.version}-typedefs.swc does not exist" >
<condition>
<not>
<resourceexists><file file="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/framework/${artifactid}/${release.version}/${artifactid}-${release.version}-typedefs.swc"/></resourceexists>
</not>
</condition>
</fail>
<fail message="${artifactfolder}/sources/frameworks/${theme_or_project}/${thisFile}/target/${artifactid}-${release.version}-extern.swc does not exist" >
<condition>
<not>
<resourceexists><file file="${artifactfolder}/sources/frameworks/${theme_or_project}/${thisFolder}/target/${artifactid}-${release.version}-extern.swc"/></resourceexists>
</not>
</condition>
</fail>
<condition property="filesmatch2" value="true">
<filesmatch file1="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/framework/${artifactid}/${release.version}/${artifactid}-${release.version}-typedefs.swc"
file2="${artifactfolder}/sources/frameworks/${theme_or_project}/${thisFolder}/target/${artifactid}-${release.version}-extern.swc" />
</condition>
<fail message="${artifactid}-${release.version}-typedefs.swc does not match" unless="filesmatch2" />
</target>
<target name="is_theme">
<condition property="theme">
<resourceexists><file file="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/framework/${artifactid}/${release.version}/${artifactid}-${release.version}-typedefs.swc"/></resourceexists>
</condition>
<condition property="theme_or_project" value="themes" else="projects">
<resourceexists><file file="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/framework/${artifactid}/${release.version}/${artifactid}-${release.version}-typedefs.swc"/></resourceexists>
</condition>
</target>
<target name="Release_Step_011_Sign" depends="get-artifact-folder">
<fail message="release.version not specified"
unless="release.version"/>
<antcall target="sign-file" >
<param name="file" value="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/framework/royale-framework-parent/${release.version}/royale-framework-parent-${release.version}-source-release.zip" />
</antcall>
<antcall target="sign-file" >
<param name="file" value="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/framework/royale-framework-parent/${release.version}/royale-framework-parent-${release.version}.pom" />
</antcall>
<antcall target="sign-file" >
<param name="file" value="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/framework/projects/${release.version}/projects-${release.version}.pom" />
</antcall>
<antcall target="sign-file" >
<param name="file" value="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/framework/frameworks/${release.version}/frameworks-${release.version}.pom" />
</antcall>
<antcall target="sign-file" >
<param name="file" value="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/framework/themes/${release.version}/themes-${release.version}.pom" />
</antcall>
<antcall target="sign-file" >
<param name="file" value="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/framework/royale-maven-archetypes/${release.version}/royale-maven-archetypes-${release.version}.pom" />
</antcall>
<antcall target="sign-file" >
<param name="file" value="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/framework/Fonts/${release.version}/Fonts-${release.version}.pom" />
</antcall>
<antcall target="sign-file" >
<param name="file" value="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/framework/Fonts/${release.version}/Fonts-${release.version}.war" />
</antcall>
<antcall target="sign-file" >
<param name="file" value="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/framework/Fonts/${release.version}/Fonts-${release.version}-sources.jar" />
</antcall>
<antcall target="sign-file" >
<param name="file" value="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/framework/royale-simple-typedef-archetype/${release.version}/royale-simple-typedef-archetype-${release.version}-sources.jar" />
</antcall>
<antcall target="sign-file" >
<param name="file" value="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/framework/royale-simple-typedef-archetype/${release.version}/royale-simple-typedef-archetype-${release.version}.jar" />
</antcall>
<antcall target="sign-file" >
<param name="file" value="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/framework/royale-simple-typedef-archetype/${release.version}/royale-simple-typedef-archetype-${release.version}.pom" />
</antcall>
<antcall target="sign-file" >
<param name="file" value="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/framework/royale-simple-library-archetype/${release.version}/royale-simple-library-archetype-${release.version}-sources.jar" />
</antcall>
<antcall target="sign-file" >
<param name="file" value="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/framework/royale-simple-library-archetype/${release.version}/royale-simple-library-archetype-${release.version}.jar" />
</antcall>
<antcall target="sign-file" >
<param name="file" value="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/framework/royale-simple-library-archetype/${release.version}/royale-simple-library-archetype-${release.version}.pom" />
</antcall>
<antcall target="sign-file" >
<param name="file" value="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/framework/royale-simple-application-pure-swf-archetype/${release.version}/royale-simple-application-pure-swf-archetype-${release.version}-sources.jar" />
</antcall>
<antcall target="sign-file" >
<param name="file" value="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/framework/royale-simple-application-pure-swf-archetype/${release.version}/royale-simple-application-pure-swf-archetype-${release.version}.jar" />
</antcall>
<antcall target="sign-file" >
<param name="file" value="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/framework/royale-simple-application-pure-swf-archetype/${release.version}/royale-simple-application-pure-swf-archetype-${release.version}.pom" />
</antcall>
<antcall target="sign-file" >
<param name="file" value="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/framework/royale-simple-application-pure-js-archetype/${release.version}/royale-simple-application-pure-js-archetype-${release.version}-sources.jar" />
</antcall>
<antcall target="sign-file" >
<param name="file" value="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/framework/royale-simple-application-pure-js-archetype/${release.version}/royale-simple-application-pure-js-archetype-${release.version}.jar" />
</antcall>
<antcall target="sign-file" >
<param name="file" value="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/framework/royale-simple-application-pure-js-archetype/${release.version}/royale-simple-application-pure-js-archetype-${release.version}.pom" />
</antcall>
<antcall target="sign-file" >
<param name="file" value="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/framework/royale-simple-application-archetype/${release.version}/royale-simple-application-archetype-${release.version}-sources.jar" />
</antcall>
<antcall target="sign-file" >
<param name="file" value="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/framework/royale-simple-application-archetype/${release.version}/royale-simple-application-archetype-${release.version}.jar" />
</antcall>
<antcall target="sign-file" >
<param name="file" value="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/framework/royale-simple-application-archetype/${release.version}/royale-simple-application-archetype-${release.version}.pom" />
</antcall>
<antcall target="sign-swc-artifacts" >
<param name="swcname" value="Basic" />
</antcall>
<antcall target="sign-swc-artifacts" >
<param name="swcname" value="Binding" />
</antcall>
<antcall target="sign-swc-artifacts" >
<param name="swcname" value="Charts" />
</antcall>
<antcall target="sign-swc-artifacts" >
<param name="swcname" value="Collections" />
</antcall>
<antcall target="sign-swc-artifacts" >
<param name="swcname" value="Core" />
</antcall>
<antcall target="sign-swc-artifacts" >
<param name="swcname" value="CreateJS" />
</antcall>
<antcall target="sign-swc-artifacts" >
<param name="swcname" value="DragDrop" />
</antcall>
<antcall target="sign-swc-artifacts" >
<param name="swcname" value="Effects" />
</antcall>
<antcall target="sign-swc-artifacts" >
<param name="swcname" value="Express" />
</antcall>
<antcall target="sign-swc-artifacts" >
<param name="swcname" value="Flat" />
</antcall>
<antcall target="sign-swc-artifacts" >
<param name="swcname" value="FontAwesome" />
</antcall>
<antcall target="sign-swc-artifacts" >
<param name="swcname" value="Formatters" />
</antcall>
<antcall target="sign-swc-artifacts" >
<param name="swcname" value="GoogleMaps" />
</antcall>
<antcall target="sign-swc-artifacts" >
<param name="swcname" value="Graphics" />
</antcall>
<antcall target="sign-swc-artifacts" >
<param name="swcname" value="HTML" />
</antcall>
<antcall target="sign-swc-artifacts" >
<param name="swcname" value="HTML5" />
</antcall>
<antcall target="sign-swc-artifacts" >
<param name="swcname" value="Icons" />
</antcall>
<antcall target="sign-swc-artifacts" >
<param name="swcname" value="Jewel" />
</antcall>
<antcall target="sign-swc-artifacts" >
<param name="swcname" value="Crux" />
</antcall>
<antcall target="sign-swc-artifacts" >
<param name="swcname" value="JQuery" />
</antcall>
<antcall target="sign-swc-artifacts" >
<param name="swcname" value="Language" />
</antcall>
<antcall target="sign-swc-artifacts" >
<param name="swcname" value="MaterialDesignLite" />
</antcall>
<antcall target="sign-swc-artifacts" >
<param name="swcname" value="Mobile" />
</antcall>
<antcall target="sign-swc-artifacts" >
<param name="swcname" value="MXRoyale" />
</antcall>
<antcall target="sign-swc-artifacts" >
<param name="swcname" value="Network" />
</antcall>
<antcall target="sign-swc-artifacts" >
<param name="swcname" value="Reflection" />
</antcall>
<antcall target="sign-swc-artifacts" >
<param name="swcname" value="RoyaleSite" />
</antcall>
<antcall target="sign-swc-artifacts" >
<param name="swcname" value="RoyaleUnit" />
</antcall>
<antcall target="sign-swc-artifacts" >
<param name="swcname" value="SparkRoyale" />
</antcall>
<antcall target="sign-swc-artifacts" >
<param name="swcname" value="Storage" />
</antcall>
<antcall target="sign-swc-artifacts" >
<param name="swcname" value="Text" />
</antcall>
<antcall target="sign-swc-artifacts" >
<param name="swcname" value="TLF" />
</antcall>
<antcall target="sign-swc-artifacts" >
<param name="swcname" value="XML" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="BasicTheme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="JewelTheme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Dark-NoFlat-Emphasized-Amethyst-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Dark-NoFlat-Emphasized-Blue-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Dark-NoFlat-Emphasized-Emerald-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Dark-NoFlat-Emphasized-Green-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Dark-NoFlat-Emphasized-Orange-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Dark-NoFlat-Emphasized-Red-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Dark-NoFlat-Emphasized-Sapphire-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Dark-NoFlat-Emphasized-Sunflower-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Dark-NoFlat-Emphasized-Topaz-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Dark-NoFlat-Emphasized-Turquoise-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Dark-NoFlat-Emphasized-Violet-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Dark-NoFlat-Emphasized-Yellow-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Dark-NoFlat-Primary-Amethyst-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Dark-NoFlat-Primary-Blue-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Dark-NoFlat-Primary-Emerald-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Dark-NoFlat-Primary-Green-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Dark-NoFlat-Primary-Orange-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Dark-NoFlat-Primary-Red-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Dark-NoFlat-Primary-Sapphire-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Dark-NoFlat-Primary-Sunflower-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Dark-NoFlat-Primary-Topaz-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Dark-NoFlat-Primary-Turquoise-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Dark-NoFlat-Primary-Violet-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Dark-NoFlat-Primary-Yellow-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Dark-NoFlat-Secondary-Amethyst-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Dark-NoFlat-Secondary-Blue-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Dark-NoFlat-Secondary-Emerald-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Dark-NoFlat-Secondary-Green-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Dark-NoFlat-Secondary-Orange-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Dark-NoFlat-Secondary-Red-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Dark-NoFlat-Secondary-Sapphire-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Dark-NoFlat-Secondary-Sunflower-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Dark-NoFlat-Secondary-Topaz-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Dark-NoFlat-Secondary-Turquoise-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Dark-NoFlat-Secondary-Violet-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Dark-NoFlat-Secondary-Yellow-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Light-NoFlat-Emphasized-Amethyst-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Light-NoFlat-Emphasized-Blue-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Light-NoFlat-Emphasized-Emerald-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Light-NoFlat-Emphasized-Green-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Light-NoFlat-Emphasized-Orange-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Light-NoFlat-Emphasized-Red-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Light-NoFlat-Emphasized-Sapphire-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Light-NoFlat-Emphasized-Sunflower-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Light-NoFlat-Emphasized-Topaz-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Light-NoFlat-Emphasized-Turquoise-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Light-NoFlat-Emphasized-Violet-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Light-NoFlat-Emphasized-Yellow-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Light-NoFlat-Primary-Amethyst-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Light-NoFlat-Primary-Blue-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Light-NoFlat-Primary-Emerald-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Light-NoFlat-Primary-Green-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Light-NoFlat-Primary-Orange-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Light-NoFlat-Primary-Red-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Light-NoFlat-Primary-Sapphire-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Light-NoFlat-Primary-Sunflower-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Light-NoFlat-Primary-Topaz-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Light-NoFlat-Primary-Turquoise-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Light-NoFlat-Primary-Violet-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Light-NoFlat-Primary-Yellow-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Light-NoFlat-Secondary-Amethyst-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Light-NoFlat-Secondary-Blue-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Light-NoFlat-Secondary-Emerald-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Light-NoFlat-Secondary-Green-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Light-NoFlat-Secondary-Orange-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Light-NoFlat-Secondary-Red-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Light-NoFlat-Secondary-Sapphire-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Light-NoFlat-Secondary-Sunflower-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Light-NoFlat-Secondary-Topaz-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Light-NoFlat-Secondary-Turquoise-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Light-NoFlat-Secondary-Violet-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="Jewel-Light-NoFlat-Secondary-Yellow-Theme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="MDLTheme" />
</antcall>
<antcall target="sign-theme-artifacts" >
<param name="swcname" value="MXTheme" />
</antcall>
</target>
<target name="sign-theme-artifacts" depends="sign-swc-artifacts">
<antcall target="sign-file" >
<param name="file" value="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/framework/${swcname}/${release.version}/${swcname}-${release.version}-typedefs.swc" />
</antcall>
</target>
<target name="sign-swc-artifacts">
<antcall target="sign-file" >
<param name="file" value="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/framework/${swcname}/${release.version}/${swcname}-${release.version}.pom" />
</antcall>
<antcall target="sign-file" >
<param name="file" value="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/framework/${swcname}/${release.version}/${swcname}-${release.version}-sources.jar" />
</antcall>
<antcall target="sign-file" >
<param name="file" value="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/framework/${swcname}/${release.version}/${swcname}-${release.version}-js.swc" />
</antcall>
<antcall target="sign-file" >
<param name="file" value="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/framework/${swcname}/${release.version}/${swcname}-${release.version}-swf.swc" />
</antcall>
<antcall target="sign-file" >
<param name="file" value="${artifactfolder}/artifacts/archive/target/checkout/release-dir/org/apache/royale/framework/${swcname}/${release.version}/${swcname}-${release.version}.swc" />
</antcall>
</target>
<target name="sign-file">
<exec executable="gpg" failonerror="true">
<arg value="--armor" />
<arg value="--output" />
<arg value="${file}.asc" />
<arg value="--detach-sig" />
<arg value="${file}" />
</exec>
</target>
<target name="Release_Step_011_Upload" depends="get-artifact-folder">
<fail message="release.version not specified"
unless="release.version"/>
<antcall target="uploadSWCs" />
<antcall target="uploadJewelDark" />
<antcall target="uploadJewelLight" />
</target>
<target name="uploadSWCs" depends="get-artifact-folder" description="upload all SWCs except Jewel Themes">
<fail message="release.version not specified"
unless="release.version"/>
<exec executable="${mvn}" dir="${artifactfolder}/sources" failonerror="true" >
<arg value="wagon:upload" />
<arg value="-X" />
<arg value="-Dwagon.fromDir=${artifactfolder}/artifacts/archive/target/checkout/release-dir" />
<arg value="-Dwagon.includes=**" />
<arg value="-Dwagon.excludes=**/Jewel-Dark*/**,**/Jewel-Light*/**" />
<arg value="-P" />
<arg value="-main,upload-release-to-staging" />
</exec>
</target>
<target name="uploadJewelDark" depends="get-artifact-folder" description="upload Jewel Dark Themes">
<fail message="release.version not specified"
unless="release.version"/>
<exec executable="${mvn}" dir="${artifactfolder}/sources" failonerror="true" >
<arg value="wagon:upload" />
<arg value="-X" />
<arg value="-Dwagon.fromDir=${artifactfolder}/artifacts/archive/target/checkout/release-dir" />
<arg value="-Dwagon.includes=**/Jewel-Dark*/**" />
<arg value="-P" />
<arg value="-main,upload-release-to-staging" />
</exec>
</target>
<target name="uploadJewelLight" depends="get-artifact-folder" description="upload Jewel Light Themes">
<fail message="release.version not specified"
unless="release.version"/>
<exec executable="${mvn}" dir="${artifactfolder}/sources" failonerror="true" >
<arg value="wagon:upload" />
<arg value="-X" />
<arg value="-Dwagon.fromDir=${artifactfolder}/artifacts/archive/target/checkout/release-dir" />
<arg value="-Dwagon.includes=**/Jewel-Light*/**" />
<arg value="-P" />
<arg value="-main,upload-release-to-staging" />
</exec>
</target>
<target name="get-maven-source-artifacts" >
<!-- done in batch file in jenkins job. Jenkins didn't like relative path outside the workspace
<mkdir dir="${basedir}/artifacts" />
<mkdir dir="${basedir}/artifacts/royale-asjs" />
<mkdir dir="${basedir}/artifacts/royale-typedefs" />
<mkdir dir="${basedir}/artifacts/royale-compiler" />
<copy file="${basedir)/../Royale_Release_Step_011/target/checkout/release-dir/org/apache/royale/framework/royale-framework-parent/${release.version}/royale-framework-parent-${release.version}-source-release.zip" tofile="${basedir}/artifacts/royale-framework-parent-source-release.zip" />
-->
<unzip src="${basedir}/artifacts/royale-framework-parent-source-release.zip"
dest="${basedir}/artifacts/royale-asjs">
<cutdirsmapper dirs="1"/>
</unzip>
<!-- done in batch file in jenkins job. Jenkins didn't like relative path outside the workspace
<copy file="${basedir}/../Royale_Release_Step_007/target/checkout/release-dir/org/apache/royale/typedefs/royale-typedefs-parent/${release.version}/royale-typedefs-parent-${release.version}-source-release.zip" tofile="${basedir}/artifacts/royale-typedefs-parent-source-release.zip" />
-->
<unzip src="${basedir}/artifacts/royale-typedefs-parent-source-release.zip"
dest="${basedir}/artifacts/royale-typedefs">
<cutdirsmapper dirs="1"/>
</unzip>
<!-- done in batch file in jenkins job. Jenkins didn't like relative path outside the workspace
<copy file="${basedir}/../Royale_Release_Step_003/target/checkout/release-dir/org/apache/royale/compiler/royale-compiler-parent/${release.version}/royale-compiler-parent-${release.version}-source-release.zip" dest="${basedir}/artifacts/royale-compiler-parent-source-release.zip" />
-->
<unzip src="${basedir}/artifacts/royale-compiler-parent-source-release.zip"
dest="${basedir}/artifacts/royale-compiler">
<cutdirsmapper dirs="1"/>
</unzip>
</target>
<target name="ant-artifacts">
<property name="ROYALE_COMPILER_REPO" value="${basedir}/artifacts/royale-compiler" />
<property name="ROYALE_TYPEDEFS_HOME" value="${basedir}/artifacts/royale-typedefs" />
<ant dir="${basedir}/artifacts/royale-asjs" target="release" />
<ant dir="${basedir}/artifacts/royale-asjs" target="create-SHA-512" />
<ant dir="${basedir}/artifacts/royale-asjs" target="create-SHA-512-jsonly" />
</target>
<target name="Release_Step_013_Generate_Artifacts" depends="get-maven-source-artifacts, ant-artifacts">
</target>
<target name="Release_Step_013" depends="get-temp-folder,download-ant-artifacts,unzip-ant-artifacts,validate-ant-artifacts">
</target>
<target name="download-ant-artifacts" if="artifactfolder">
<get src="http://apacheroyaleci.westus2.cloudapp.azure.com:8080/job/Royale_Release_Step_013/lastSuccessfulBuild/artifact/artifacts/royale-asjs/out/*zip*/out.zip" dest="${artifactfolder}/archive.zip" />
</target>
<target name="unzip-ant-artifacts" if="artifactfolder">
<mkdir dir="${artifactfolder}/artifacts" />
<unzip src="${artifactfolder}/archive.zip" dest="${artifactfolder}/artifacts" >
<cutdirsmapper dirs="1" />
</unzip>
</target>
<target name="build-ant-source" depends="check-air-home,check-playerglobal-home,check-runtime-env" >
<mkdir dir="${artifactfolder}/sources" />
<unzip src="${artifactfolder}/artifacts/apache-royale-${release.version}-src.zip" dest="${artifactfolder}/sources" >
</unzip>
<ant dir="${artifactfolder}/sources/royale-asjs" target="all" />
</target>
<target name="validate-ant-artifacts">
<mkdir dir="${artifactfolder}/sources" />
<exec executable="git" dir="${artifactfolder}/sources" failonerror="true" >
<arg value="clone" />
<arg value="--branch" />
<arg value="org.apache.royale.compiler-${release.version}-rc${rc}" />
<arg value="--config" />
<arg value="core.autocrlf=input" />
<arg value="https://github.com/apache/royale-compiler.git" />
<arg value="royale-compiler" />
</exec>
<exec executable="git" dir="${artifactfolder}/sources" failonerror="true" >
<arg value="clone" />
<arg value="--branch" />
<arg value="org.apache.royale.typedefs-${release.version}-rc${rc}" />
<arg value="--config" />
<arg value="core.autocrlf=input" />
<arg value="https://github.com/apache/royale-typedefs.git" />
<arg value="royale-typedefs" />
</exec>
<exec executable="git" dir="${artifactfolder}/sources" failonerror="true" >
<arg value="clone" />
<arg value="--branch" />
<arg value="org.apache.royale.framework-${release.version}-rc${rc}" />
<arg value="--config" />
<arg value="core.autocrlf=input" />
<arg value="https://github.com/apache/royale-asjs.git" />
<arg value="royale-asjs" />
</exec>
<antcall target="validate-ant-source"/>
<antcall target="validate-ant-bits"/>
</target>
<target name="validate-ant-source" description="do some tweaks so the clone is the same as maven source file set" >
<!-- unpack ant src which was generated from maven source package -->
<mkdir dir="${artifactfolder}/artifacts/source" />
<unzip src="${artifactfolder}/artifacts/apache-royale-${release.version}-src.zip" dest="${artifactfolder}/artifacts/source" />
<property name="artifactfolder" value="${artifactfolder}" />
<!-- get the build date from flex-sdk-description and use it -->
<xmlproperty file="${artifactfolder}/artifacts/source/royale-asjs/flex-sdk-description.xml" prefix="desc" />
<property name="build.number.date" value="${desc.flex-sdk-description.build}" />
<echo message="build.number is ${build.number.date}"/>
<!-- delete all .project files -->
<delete dir="${artifactfolder}/sources/royale-asjs" failonerror="false">
<include name="**/.project"/>
</delete>
<!-- copy Maven-generated DEPENDENCIES files -->
<copy file="${artifactfolder}/artifacts/source/royale-asjs/DEPENDENCIES"
tofile="${artifactfolder}/sources/royale-asjs/DEPENDENCIES" />
<copy file="${artifactfolder}/artifacts/source/royale-typedefs/DEPENDENCIES"
tofile="${artifactfolder}/sources/royale-typedefs/DEPENDENCIES" />
<!-- the artifact has unix line endings so convert everything to unix
<fixcrlf srcdir="${artifactfolder}/sources/royale-compiler" eol="unix" fixlast="false">
<include name="**"/>
<exclude name="**/*.png"/>
<exclude name="**/*.jpg"/>
</fixcrlf>
<fixcrlf srcdir="${artifactfolder}/sources/royale-typedefs" eol="unix" fixlast="false">
<include name="**"/>
<exclude name="**/*.png"/>
<exclude name="**/*.jpg"/>
</fixcrlf>
<fixcrlf srcdir="${artifactfolder}/sources/royale-asjs" eol="unix" fixlast="false">
<include name="**"/>
<exclude name="**/*.png"/>
<exclude name="**/*.jpg"/>
</fixcrlf>-->
<!-- build compiler and typedefs so we can run royale-asjs "release" -->
<ant dir="${artifactfolder}/sources/royale-compiler" target="main" />
<ant dir="${artifactfolder}/sources/royale-typedefs" target="main" />
<!-- delete all royale-asjs stuff -->
<ant dir="${artifactfolder}/sources/royale-asjs" target="super-clean" />
<!-- delete frameworks/libs empty folder -->
<delete dir="${artifactfolder}/sources/royale-asjs/frameworks/libs" failonerror="false" />
<delete dir="${artifactfolder}/sources/royale-asjs/temp/royale-asjs/frameworks/libs" failonerror="false" />
<!-- delete history empty folder -->
<delete dir="${artifactfolder}/sources/royale-asjs/templates/swfobject/history" failonerror="false" />
<!-- build release artifacts -->
<ant dir="${artifactfolder}/sources/royale-asjs" target="release" />
<antcall target="compare-src-zips" />
</target>
<target name="compare-src-zips" >
<echo>release.version: ${release.version}</echo>
<echo>copy src-zip file to a separate folder</echo>
<mkdir dir="${artifactfolder}/artifacts/srczip" />
<copy file="${artifactfolder}/artifacts/apache-royale-${release.version}-src.zip"
tofile="${artifactfolder}/artifacts/srczip/apache-royale-${release.version}-src.zip" />
<mkdir dir="${artifactfolder}/sources/srczip" />
<copy file="${artifactfolder}/sources/royale-asjs/out/apache-royale-${release.version}-src.zip"
tofile="${artifactfolder}/sources/srczip/apache-royale-${release.version}-src.zip" />
<echo>running reproducible build plugin on ${artifactfolder}/artifacts/srczip</echo>
<exec executable="${mvn}" dir="${artifactfolder}" failonerror="true" >
<arg value="io.github.zlika:reproducible-build-maven-plugin:0.10:strip-jar" />
<arg value="-Dreproducible.outputDirectory=${artifactfolder}/artifacts/srczip" />
</exec>
<echo>running reproducible build plugin on ${artifactfolder}/sources/srczip</echo>
<exec executable="${mvn}" dir="${artifactfolder}" failonerror="true" >
<arg value="io.github.zlika:reproducible-build-maven-plugin:0.10:strip-jar" />
<arg value="-Dreproducible.outputDirectory=${artifactfolder}/sources/srczip" />
</exec>
<condition property="filesmatch" value="true">
<filesmatch file1="${artifactfolder}/artifacts/srczip/apache-royale-${release.version}-src.zip"
file2="${artifactfolder}/sources/srczip/apache-royale-${release.version}-src.zip" />
</condition>