forked from AboutWebLLC/unofficial-updater2
/
build.xml
793 lines (629 loc) · 33.6 KB
/
build.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2011, David C. Epler
Licensed 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="Unofficial Updater 2" default="preUpdate">
<description>Ant script that will fetch then apply hotfixes and security updates for ColdFusion 8.0.1 or 9.0.1</description>
<!-- Ant-Contrib makes writting Ant tasks so much easier -->
<typedef resource="net/sf/antcontrib/antlib.xml" />
<tstamp>
<format property="ts.filename" pattern="yyyyMMdd-HHmmss"/>
<format property="ts.full" pattern="EEEE, MMMM d, yyyy h:mm:ss a"/>
</tstamp>
<!-- SHA-512 hashes of downloads -->
<!-- ColdFusion 8.0.1 Update Hashes -->
<property name="cpsid_52915.chf8010004.zip.SHA-512" value="a807730569b0238171e8bca1cf4e1192b4e4f94c82e19153280c589ac8f346232de07d57345ddb1bcebb8b4eb1114d6c35fd1894cece79337cdbd5889033e345" />
<property name="kb403597.hf801-71634.zip.SHA-512" value="23840d9cce5f0e1b320bc330f316a6e34b244766f32c35716abfdd2a186bb6ee69c047a8a9cb853b2008138e749357ba38c6505a8c4ca8c318a6f7f794967a07" />
<property name="kb403795.hf801-70839.zip.SHA-512" value="1c0a3bbc9602b71ed440dac4b8586c9cd222296996651b6d604581f096c6cb1bde60cf97467e412e723db0afc73fa5fd15e9de25dd1aa3f6468ded8427825895" />
<property name="kb403411.hf801-71557.zip.SHA-512" value="f1ba6df84ca8b95cfee7846805df421ed2b9acd18d35fa354a2ac4888b0d2af26f3a6f5cbc61e412ee6914cb48cdade06e9051323505b7942f1f1ba08191f9de" />
<property name="cpsid_84585.cfapplets_cps_84585.zip.SHA-512" value="0a4cdab9f8acc126004bbe088fda33dcb70183a11d5e1dd122c660add365c9c63f7fe168b5380d1233a7aa5dec6cf032542a81640d39d8abc322b35dd47a710b" />
<property name="cpsid_86589.hf801-76563.zip.SHA-512" value="87e66dbcc2a9eb426e05e67b6bf83712b3aeb0c666b484b1141fd9f7e90a0d2e3984d0a2e33365efef9aca7508398c4bfbccc12cb506c228df2149afaea26179" />
<!-- <property name="cpsid_82241.Coldfusion8.zip.SHA-512" value="75df36baae75992d40e45c5958b505550be3a2b6da993412755677f93b0f9ca3d71a7c2a84fba98ed2d7bb2ad07c6812d8ba17b317f61cfdfb8cfbeca946ca98" /> -->
<!-- <property name="cpsid_89094.CF801.zip.SHA-512" value="20362c65d3d2d74528c6fd571e8beb9f2253e326818131da4ddfc22afe7ec3462aacb37dec11708c4a2f188d8d8f0e9c57474e3c9d32fc9555cc51ad80188c14" /> -->
<!-- Adobe updated hotfix on 20110916, so signatures changed -->
<!-- <property name="cpsid_90784.CF801.zip.SHA-512" value="8911930b7f9b3d7fe5837810356b1cf37cc00dd383e4dcd03b2b3449b41a819fae2f0f45a0f03a79d22f2e688a611b9d4b23757d6ec4cc74d3ecd21f24cb1e83" /> -->
<property name="cpsid_90784.CF801.zip.SHA-512" value="c4853aaf0844e031e969763f816bb5485cacfc855d4f77352eee8964d739efb72081242522205fe6a64b565a50825d31e685179ac350da8bb9cf1396a1adf3da" />
<property name="cpsid_90784.CFIDE-801.zip.SHA-512" value="50f96562ef75f390d879e1980654c0feeb45a7a5d7c84ca1f31917d45c7bad3bdeedfefe54adb68f9f2b87313a044dc20b33ac3216ca8349c99d7939c42fbf3c" />
<property name="cpsid_92512.CF801jar.zip.SHA-512" value="fa872cdd7d6848bfb229675be659845533a09f36ff5961df8a6ad462fab1f3ae8eb64aa31fab24a42dfd041aaa5bf892575582581d557fadc05fe51449d023f7" />
<property name="APSB09-12.jmc-app2.zip.SHA-512" value="3dc5276893dd5eb218d7031d041a41a26af3c961b45238339a27afedce4f3236b4bd8f99b013eb152ce7c98385dcf14a10b6245d6930fe228af2dac1ceaabc3a" />
<!-- ColdFusion 9.0.1 Update Hashes -->
<!-- <property name="cpsid_86263.chf9010001.zip.SHA-512" value="ff66ea0b48a8d0d3af5506b76282ceff480d46cb286792ae55aeaa71f0ae3f1c0e00e7fc1737187a27cd420ce4da37b2fc3994bd1cef07c9ff949060a17683d3" /> -->
<!-- Adobe updated hotfix on 20110916, so signatures changed -->
<!-- <property name="cpsid_90784.CF901.zip.SHA-512" value="8209e428387f68ad52fbb535d05caebfecec04744ee1aa5aae4d85d3f90a327032c848029d4dca65cda7aa7019c4d69c9f45e67aa8c8b15c2cfa20ebe3a0f2de" /> -->
<!-- <property name="cpsid_90784.CF901.zip.SHA-512" value="15a90fb173bcdbf1906b48becdb4309d8aa9cccd919c8b4dd8f673baede8bf0a8fde7408d4dc7a31daa6b0f51844f8e50805711da2b297809e54e97902db31ba" /> -->
<!-- <property name="cpsid_90784.CFIDE-901.zip.SHA-512" value="f89a769ffab905853d3331be5728f6527b761143e0c3893211686dfc4f40101d66829b83c8c4ad40220c842187e7ed0562d9dfae917ca76f7f561b2428b3119e" /> -->
<property name="cpsid_91836.CF901.zip.SHA-512" value="064ee66916decf7bbdad991f572c97496fdec7ac747f0c728ec4fcf249a3f01e85e11cf70026fc5d6f106aecddf1ad156043e1c838dc447439d7b838e2e2e499" />
<property name="cpsid_91836.CFIDE-901.zip.SHA-512" value="70848c608769d7bcdc672ee3a0fa6fac395a43b55f0f11519e1bdc28d05640658b8c1d3276aee31ebab619aa115a52259c0c323250facd865d75d42b85cf0102" />
<property name="cpsid_92512.CF901jar.zip.SHA-512" value="314d4cc4dda6ca10782b444ddce2d2fca0c18d393ee9e6f53aa27fddef0ca48989afbe175ea4280f36f99f41605cbdf5ac7182b43de1b59e6f6e6ccab7ccd321" />
<property name="errorMsg.FileVerification" value="File Verification Failure: SHA-512 signatures do not match" />
<!-- if running as standalone Ant script, add depends="get_install_info" to the target below -->
<target name="preUpdate" description="Preliminary work for update" depends="get_install_info">
<if>
<equals arg1="${applyUpdate}" arg2="n" />
<then>
<fail message="Need to re-run the script and enter correct values, sorry." />
</then>
</if>
<if>
<equals arg1="${needProxy}" arg2="y" />
<then>
<setproxy proxyhost="${proxyHost}" proxyport="${proxyPort}" proxyuser="${proxyUser}" proxypassword="${proxyPassword}" />
</then>
</if>
<!-- check ColdFusion version -->
<java classpath="${cfusionLibDir}/cfusion.jar" classname="coldfusion.tools.CfinfoMain" outputproperty="reportedVersion" fork="true">
<arg value="-version"/>
</java>
<echo message="Found ColdFusion version ${reportedVersion}" />
<switch value="${reportedVersion}">
<case value="8,0,1,195765">
<antcall target="update_801" />
</case>
<case value="9,0,1,274733">
<antcall target="update_901" />
</case>
<default>
<fail message="Unofficial Updater 2 only runs against ColdFusion 8.0.1 or 9.0.1" />
</default>
</switch>
</target>
<target name="backup" description="Create backups of CFIDE, WEB-INF (and lib if standalone or admin if jrun)">
<echo message="Creating backup files" />
<!-- additional backups based upon install type -->
<switch value="${installType}">
<case value="standalone">
<echo message="Creating backup of ${cfusionLibDir}" />
<zip destfile="${cfusionLibDir}/../lib-uu2-${ts.filename}.zip" basedir="${cfusionLibDir}" />
</case>
<case value="jrun">
<echo message="Creating backup of ${jrunInstallDir}/servers/admin" />
<zip destfile="${jrunInstallDir}/servers/admin-uu2-${ts.filename}.zip" basedir="${jrunInstallDir}/servers/admin" />
</case>
<default />
</switch>
<echo message="Creating backup of ${webinfDir}" />
<zip destfile="${webinfDir}/../WEB-INF-uu2-${ts.filename}.zip" basedir="${webinfDir}" />
<echo message="Creating backup of ${cfideDir}" />
<zip destfile="${cfideDir}/../CFIDE-uu2-${ts.filename}.zip" basedir="${cfideDir}" />
</target>
<target name="directoryPrep" description="">
<echo message="Creating Downloads directory" />
<mkdir dir="downloads" />
<mkdir dir="downloads/cf801" />
<mkdir dir="downloads/cf801/cpsid_52915" />
<mkdir dir="downloads/cf801/kb403597" />
<mkdir dir="downloads/cf801/kb403795" />
<mkdir dir="downloads/cf801/kb403411" />
<mkdir dir="downloads/cf801/cpsid_84585" />
<mkdir dir="downloads/cf801/cpsid_86589" />
<!-- <mkdir dir="downloads/cf801/cpsid_82241" /> -->
<!-- <mkdir dir="downloads/cf801/cpsid_89094" /> -->
<mkdir dir="downloads/cf801/cpsid_90784" />
<mkdir dir="downloads/cf801/cpsid_92512" />
<mkdir dir="downloads/cf801/APSB09-12" />
<mkdir dir="downloads/cf901" />
<!-- <mkdir dir="downloads/cf901/cpsid_86263" /> -->
<!-- <mkdir dir="downloads/cf901/cpsid_90784" /> -->
<mkdir dir="downloads/cf901/cpsid_91836" />
<mkdir dir="downloads/cf901/cpsid_92512" />
<echo message="Clearing all existing Hot Fixes from ${hotfixDir}" />
<delete>
<fileset dir="${hotfixDir}" includes="*.jar"/>
</delete>
</target>
<target name="cleanup" description="Updater Cleanup">
<echo message="Clearing all compiled code from ${webinfDir}/cfclasses" />
<delete>
<fileset dir="${webinfDir}/cfclasses" includes="*.class"/>
</delete>
</target>
<target name="get_install_info" description="Get information about ColdFusion installation">
<input message="How is ColdFusion Installed" validargs="standalone,jrun,j2ee" addproperty="installType" defaultvalue="standalone" />
<input message="Do you need to use a proxy?" validargs="y,n" addproperty="needProxy" defaultvalue="n" />
<!-- get proxy settings if needed -->
<if>
<equals arg1="${needProxy}" arg2="y" />
<then>
<input message="Proxy Host:" addproperty="proxyHost" />
<input message="Proxy Port:" addproperty="proxyPort" defaultvalue="80" />
<input message="Proxy User:" addproperty="proxyUser" />
<input message="Proxy Password:" addproperty="proxyPassword" />
</then>
</if>
<switch value="${installType}">
<case value="standalone">
<if>
<os family="windows" />
<then>
<property name="default_cfInstallDir" value="C:\ColdFusion8"/>
</then>
<else>
<property name="default_cfInstallDir" value="/opt/coldfusion8"/>
</else>
</if>
<input message="ColdFusion directory" addproperty="cfInstallDir" defaultvalue="${default_cfInstallDir}" />
<if>
<os family="windows" />
<then>
<property name="default_webinfDir" value="${cfInstallDir}\wwwroot\WEB-INF"/>
<property name="default_cfideDir" value="${cfInstallDir}\wwwroot\CFIDE"/>
</then>
<else>
<property name="default_webinfDir" value="${cfInstallDir}/wwwroot/WEB-INF"/>
<property name="default_cfideDir" value="${cfInstallDir}/wwwroot/CFIDE"/>
</else>
</if>
<property name="jrunInstallDir" value="" />
</case>
<case value="jrun">
<if>
<os family="windows" />
<then>
<property name="default_jrunInstallDir" value="C:\JRun4"/>
</then>
<else>
<property name="default_jrunInstallDir" value="/opt/jrun4"/>
</else>
</if>
<input message="JRun4 directory" addproperty="jrunInstallDir" defaultvalue="${default_jrunInstallDir}" />
<if>
<os family="windows" />
<then>
<property name="default_webinfDir" value="${jrunInstallDir}\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF"/>
</then>
<else>
<property name="default_webinfDir" value="${jrunInstallDir}/servers/cfusion/cfusion-ear/cfusion-war/WEB-INF"/>
</else>
</if>
<property name="cfInstallDir" value="" />
<property name="default_cfideDir" value=""/>
</case>
<case value="j2ee">
<property name="default_webinfDir" value=""/>
<property name="default_cfideDir" value=""/>
<property name="cfInstallDir" value="" />
<property name="jrunInstallDir" value="" />
</case>
</switch>
<input message="WEB-INF directory" addproperty="webinfDir" defaultvalue="${default_webinfDir}" />
<input message="CFIDE directory" addproperty="cfideDir" defaultvalue="${default_cfideDir}" />
<!-- figure out additional paths -->
<if>
<equals arg1="${installType}" arg2="standalone" />
<then>
<property name="cfusionLibDir" value="${cfInstallDir}/lib" />
</then>
<else>
<property name="cfusionLibDir" value="${webinfDir}/cfusion/lib" />
</else>
</if>
<property name="hotfixDir" value="${cfusionLibDir}/updates" />
<echo>
Install Type ...: ${installType}
Using the following directories:
* WEB-INF .....: ${webinfDir}
* CFIDE .......: ${cfideDir}
* CFusion Lib .: ${cfusionLibDir}
</echo>
<input message="Apply Update to the above?" validargs="y,n" addproperty="applyUpdate" defaultvalue="y" />
</target>
<!-- *********************************************** -->
<!-- ColdFusion 8.0.1 Hot Fixes and Security Updates -->
<!-- *********************************************** -->
<target name="update_801" description="everything to update 8.0.1">
<!-- -->
<antcall target="backup" />
<antcall target="directoryPrep" />
<antcall target="cpsid_52915" />
<antcall target="kb403597" />
<antcall target="kb403795" />
<antcall target="kb403411" />
<antcall target="cpsid_84585" />
<antcall target="cpsid_86589" />
<antcall target="APSB09-09" />
<!-- <antcall target="cpsid_82241" /> -->
<!-- <antcall target="cpsid_89094" /> -->
<antcall target="cpsid_90784_cf801" />
<antcall target="cpsid_92512_cf801" />
<!-- only for jrun installs -->
<if>
<equals arg1="${installType}" arg2="jrun" />
<then>
<antcall target="APSB09-12" />
</then>
</if>
<antcall target="cleanup" />
</target>
<target name="cpsid_52915" description="Cumulative Hot Fix 4 for ColdFusion 8.0.1">
<echo message="Downloading Cumulative Hot Fix 4 for ColdFusion 8.0.1" />
<get src="http://kb2.adobe.com/cps/529/cpsid_52915/attachments/chf8010004.zip" dest="downloads/cf801/cpsid_52915/chf8010004.zip" verbose="true" usetimestamp="true" />
<checksum algorithm="SHA-512" file="downloads/cf801/cpsid_52915/chf8010004.zip" property="${cpsid_52915.chf8010004.zip.SHA-512}" verifyproperty="cpsid_52915_isOK" />
<if>
<equals arg1="${cpsid_52915_isOK}" arg2="true" />
<then>
<!-- update of cfmx_bootstrap.jar now from APSB11-14 -->
<!--
<echo message="Applying cfmx_bootstrap.jar to ${webinfDir}/lib/" />
<unzip src="downloads/cpsid_52915/chf8010004.zip" dest="${webinfDir}/lib/">
<patternset>
<include name="cfmx_bootstrap.jar"/>
</patternset>
</unzip>
-->
<echo message="Applying chf8010004.jar to ${hotfixDir}" />
<unzip src="downloads/cf801/cpsid_52915/chf8010004.zip" dest="${hotfixDir}">
<patternset>
<include name="chf8010004.jar"/>
</patternset>
</unzip>
</then>
<else>
<fail message="${errorMsg.FileVerification}" />
</else>
</if>
</target>
<target name="kb403597" description="Patch for HTML grid and cfmenu (hf801-71634)">
<echo message="Downloading Patch for HTML grid and cfmenu (hf801-71634)" />
<get src="http://www.adobe.com/support/coldfusion/ts/documents/kb403597/hf801-71634.zip" dest="downloads/cf801/kb403597/hf801-71634.zip" verbose="true" usetimestamp="true" />
<checksum algorithm="SHA-512" file="downloads/cf801/kb403597/hf801-71634.zip" property="${kb403597.hf801-71634.zip.SHA-512}" verifyproperty="kb403597_isOK" />
<if>
<equals arg1="${kb403597_isOK}" arg2="true" />
<then>
<!-- hf801-71634.jar not needed was rolled into CHF2+ -->
<echo message="Applying trigger.gif to ${cfideDir}/scripts/ajax/resources/ext/images/default/form" />
<unzip src="downloads/cf801/kb403597/hf801-71634.zip" dest="${cfideDir}/scripts/ajax/resources/ext/images/default/form">
<patternset>
<include name="trigger.gif"/>
</patternset>
</unzip>
<echo message="Applying yui.css to ${cfideDir}/scripts/ajax/resources/yui" />
<unzip src="downloads/cf801/kb403597/hf801-71634.zip" dest="${cfideDir}/scripts/ajax/resources/yui">
<patternset>
<include name="yui.css"/>
</patternset>
</unzip>
</then>
<else>
<fail message="${errorMsg.FileVerification}" />
</else>
</if>
</target>
<target name="kb403795" description="CFPresentation patch for audio issues and flash slide sizing problem (hf801-70839)">
<echo message="Downloading CFPresentation patch for audio issues and flash slide sizing problem (hf801-70839)" />
<get src="http://www.adobe.com/support/coldfusion/ts/documents/kb403795/hf801-70839.zip" dest="downloads/cf801/kb403795/hf801-70839.zip" verbose="true" usetimestamp="true" />
<checksum algorithm="SHA-512" file="downloads/cf801/kb403795/hf801-70839.zip" property="${kb403795.hf801-70839.zip.SHA-512}" verifyproperty="kb403795_isOK" />
<if>
<equals arg1="${kb403795_isOK}" arg2="true" />
<then>
<!-- hf801-70839.jar not needed was rolled into CHF2+ -->
<echo message="Applying files to ${cfusionLibDir}/preso" />
<unzip src="downloads/cf801/kb403795/hf801-70839.zip" dest="${cfusionLibDir}/preso">
<patternset>
<exclude name="*.jar"/>
<exclude name="preso"/>
</patternset>
</unzip>
</then>
<else>
<fail message="${errorMsg.FileVerification}" />
</else>
</if>
</target>
<target name="kb403411" description="Patch for CFImage and Image functions in ColdFusion 8.0.1 (hf801-71557)">
<echo message="Downloading Patch for CFImage and Image functions in ColdFusion 8.0.1 (hf801-71557)" />
<get src="http://www.adobe.com/support/coldfusion/ts/documents/kb403411/hf801-71557.zip" dest="downloads/cf801/kb403411/hf801-71557.zip" verbose="true" usetimestamp="true" />
<checksum algorithm="SHA-512" file="downloads/cf801/kb403411/hf801-71557.zip" property="${kb403411.hf801-71557.zip.SHA-512}" verifyproperty="kb403411_isOK" />
<if>
<equals arg1="${kb403411_isOK}" arg2="true" />
<then>
<!--
kb403411 calls for rename of metadata-extractor-2.3.1.jar to metadata-extractor-2.3.1.jar.bak
installs encountered all have metadata-extractor-2.2.2.jar not metadata-extractor-2.3.1.jar
removing any existing version of metadata-extractor instead
-->
<echo message="Removing any metadata-extractor-*.jar from ${cfusionLibDir}" />
<delete>
<fileset dir="${cfusionLibDir}" includes="metadata-extractor-*.jar"/>
</delete>
<echo message="Applying metadata-extractor-2.3.1.jar to ${cfusionLibDir}" />
<unzip src="downloads/cf801/kb403411/hf801-71557.zip" dest="${cfusionLibDir}">
<patternset>
<include name="metadata-extractor-2.3.1.jar"/>
</patternset>
</unzip>
<echo message="Applying hf801-71557.jar to ${hotfixDir}" />
<unzip src="downloads/cf801/kb403411/hf801-71557.zip" dest="${hotfixDir}">
<patternset>
<include name="hf801-71557.jar"/>
</patternset>
</unzip>
</then>
<else>
<fail message="${errorMsg.FileVerification}" />
</else>
</if>
</target>
<target name="cpsid_84585" description="Update for expired certificate on CFForm controls (May 2010)">
<echo message="Downloading Update for expired certificate on CFForm controls (May 2010)" />
<get src="http://kb2.adobe.com/cps/845/cpsid_84585/attachments/cfapplets_cps_84585.zip" dest="downloads/cf801/cpsid_84585/cfapplets_cps_84585.zip" verbose="true" usetimestamp="true" />
<checksum algorithm="SHA-512" file="downloads/cf801/cpsid_84585/cfapplets_cps_84585.zip" property="${cpsid_84585.cfapplets_cps_84585.zip.SHA-512}" verifyproperty="cpsid_84585_isOK" />
<if>
<equals arg1="${cpsid_84585_isOK}" arg2="true" />
<then>
<echo message="Applying cfapplets.jar to ${cfideDir}/classes" />
<unzip src="downloads/cf801/cpsid_84585/cfapplets_cps_84585.zip" dest="${cfideDir}/classes">
<patternset>
<include name="cfapplets.jar"/>
</patternset>
</unzip>
</then>
<else>
<fail message="${errorMsg.FileVerification}" />
</else>
</if>
</target>
<target name="cpsid_86589" description="Deadlock caused by compiler and cache lock (hf801-76563)">
<echo message="Downloading Deadlock caused by compiler and cache lock (hf801-76563)" />
<get src="http://kb2.adobe.com/cps/865/cpsid_86589/attachments/hf801-76563.zip" dest="downloads/cf801/cpsid_86589/hf801-76563.zip" verbose="true" usetimestamp="true" />
<checksum algorithm="SHA-512" file="downloads/cf801/cpsid_86589/hf801-76563.zip" property="${cpsid_86589.hf801-76563.zip.SHA-512}" verifyproperty="cpsid_86589_isOK" />
<if>
<equals arg1="${cpsid_86589_isOK}" arg2="true" />
<then>
<echo message="Applying hf801-76563.jar to ${hotfixDir}" />
<unzip src="downloads/cf801/cpsid_86589/hf801-76563.zip" dest="${hotfixDir}">
<patternset>
<include name="hf801-76563.jar"/>
</patternset>
</unzip>
</then>
<else>
<fail message="${errorMsg.FileVerification}" />
</else>
</if>
</target>
<target name="APSB09-09" description="Hotfix available for potential ColdFusion 8 input sanitization issue">
<!--
hf801-77218.jar rolled into CHF4, explicitly listed to be removed in CHF4 and APSB11-04
Other files are in APSB11-04
to complete APSB09-09 still need to remove cf5_upload.cfm and cf5_connector.cfm
from CFIDE/scripts/ajax/FCKeditor/editor/filemanager/connectors/cfm
-->
<echo message="Removing cf5_*.cfm from ${cfideDir}/scripts/ajax/FCKeditor/editor/filemanager/connectors/cfm" />
<delete>
<fileset dir="${cfideDir}/scripts/ajax/FCKeditor/editor/filemanager/connectors/cfm" includes="cf5_*.cfm"/>
</delete>
</target>
<!-- Superseded by APSB11-14 -->
<!--
<target name="cpsid_82241" description="Security update available for BlazeDS (APSB10-05)">
<echo message="Downloading Security update available for BlazeDS (APSB10-05)" />
<get src="http://kb2.adobe.com/cps/822/cpsid_82241/attachments/Coldfusion8.zip" dest="downloads/cf801/cpsid_82241/Coldfusion8.zip" verbose="true" usetimestamp="true" />
<checksum algorithm="SHA-512" file="downloads/cf801/cpsid_82241/Coldfusion8.zip" property="${cpsid_82241.Coldfusion8.zip.SHA-512}" verifyproperty="cpsid_82241_isOK" />
<if>
<equals arg1="${cpsid_82241_isOK}" arg2="true" />
<then>
<echo message="Applying files to ${cfusionLibDir}" />
<unzip src="downloads/cf801/cpsid_82241/Coldfusion8.zip" dest="${cfusionLibDir}" />
</then>
<else>
<fail message="${errorMsg.FileVerification}" />
</else>
</if>
</target>
-->
<!-- Superseded by APSB11-14 -->
<!--
<target name="cpsid_89094" description="Security update: Hotfix available for ColdFusion (APSB11-04)">
<echo message="Downloading Security update: Hotfix available for ColdFusion (APSB11-04)" />
<get src="http://kb2.adobe.com/cps/890/cpsid_89094/attachments/CF801.zip" dest="downloads/cf801/cpsid_89094/CF801.zip" verbose="true" usetimestamp="true" />
<checksum algorithm="SHA-512" file="downloads/cf801/cpsid_89094/CF801.zip" property="${cpsid_89094.CF801.zip.SHA-512}" verifyproperty="cpsid_89094_isOK" />
<if>
<equals arg1="${cpsid_89094_isOK}" arg2="true" />
<then>
<echo message="Unpacking CF801.zip" />
<unzip src="downloads/cf801/cpsid_89094/CF801.zip" dest="downloads/cpsid_89094/" />
<echo message="Applying files to ${cfusionLibDir}" />
<copy todir="${cfusionLibDir}" verbose="true" overwrite="true" preservelastmodified="true">
<fileset dir="downloads/cf801/cpsid_89094/CF801/lib"/>
</copy>
<echo message="Applying files to ${cfideDir}" />
<unzip src="downloads/cf801/cpsid_89094/CF801/CFIDE.zip" dest="${cfideDir}/.." />
<echo message="Applying files to ${webinfDir}" />
<unzip src="downloads/cf801/cpsid_89094/CF801/WEB-INF.zip" dest="${webinfDir}/.." />
</then>
<else>
<fail message="${errorMsg.FileVerification}" />
</else>
</if>
</target>
-->
<target name="cpsid_90784_cf801" description="Security update: Hotfix available for ColdFusion (APSB11-14)">
<echo message="Downloading Security update: Hotfix available for ColdFusion (APSB11-14)" />
<get src="http://kb2.adobe.com/cps/907/cpsid_90784/attachments/CF801.zip" dest="downloads/cf801/cpsid_90784/CF801.zip" verbose="true" usetimestamp="true" />
<get src="http://kb2.adobe.com/cps/907/cpsid_90784/attachments/CFIDE-801.zip" dest="downloads/cf801/cpsid_90784/CFIDE-801.zip" verbose="true" usetimestamp="true" />
<checksum algorithm="SHA-512" file="downloads/cf801/cpsid_90784/CF801.zip" property="${cpsid_90784.CF801.zip.SHA-512}" verifyproperty="cpsid_90784_1_isOK" />
<checksum algorithm="SHA-512" file="downloads/cf801/cpsid_90784/CFIDE-801.zip" property="${cpsid_90784.CFIDE-801.zip.SHA-512}" verifyproperty="cpsid_90784_2_isOK" />
<if>
<and>
<equals arg1="${cpsid_90784_1_isOK}" arg2="true" />
<equals arg1="${cpsid_90784_2_isOK}" arg2="true" />
</and>
<then>
<echo message="Unpacking CF801.zip" />
<unzip src="downloads/cf801/cpsid_90784/CF801.zip" dest="downloads/cf801/cpsid_90784/" />
<echo message="Applying files to ${cfusionLibDir}" />
<copy todir="${cfusionLibDir}" verbose="true" overwrite="true" preservelastmodified="true">
<fileset dir="downloads/cf801/cpsid_90784/CF801/lib"/>
</copy>
<echo message="Applying files to ${cfideDir}" />
<unzip src="downloads/cf801/cpsid_90784/CFIDE-801.zip" dest="${cfideDir}/.." />
<echo message="Applying files to ${webinfDir}" />
<unzip src="downloads/cf801/cpsid_90784/CF801/WEB-INF.zip" dest="${webinfDir}/.." />
</then>
<else>
<fail message="${errorMsg.FileVerification}" />
</else>
</if>
</target>
<target name="cpsid_92512_cf801" description="Security update: Hotfix available for ColdFusion (APSB11-29)">
<echo message="Downloading Security update: Hotfix available for ColdFusion (APSB11-29)" />
<get src="http://kb2.adobe.com/cps/925/cpsid_92512/attachments/CF801jar.zip" dest="downloads/cf801/cpsid_92512/CF801jar.zip" verbose="true" usetimestamp="true" />
<checksum algorithm="SHA-512" file="downloads/cf801/cpsid_92512/CF801jar.zip" property="${cpsid_92512.CF801jar.zip.SHA-512}" verifyproperty="cpsid_92512_isOK" />
<if>
<equals arg1="${cpsid_92512_isOK}" arg2="true" />
<then>
<!-- hf801-00003.jar should be removed in-favor of hf801-00004.jar in cpsid_92512 -->
<delete file="${cfusionLibDir}/updates/hf801-00003.jar"/>
<unzip src="downloads/cf801/cpsid_92512/CF801jar.zip" dest="downloads/cf801/cpsid_92512/" />
<echo message="Applying files to ${cfusionLibDir}" />
<copy todir="${cfusionLibDir}/updates" verbose="true" overwrite="true" preservelastmodified="true">
<fileset dir="downloads/cf801/cpsid_92512/CF801jar"/>
</copy>
</then>
<else>
<fail message="${errorMsg.FileVerification}" />
</else>
</if>
</target>
<target name="APSB09-12" description="Security Update: Hotfixes available for ColdFusion and JRun (APSB09-12)">
<echo message="Downloading JRun management console update (CVE-2009-1873 & CVE-2009-1874)" />
<get src="http://download.macromedia.com/pub/coldfusion/updates/jmc-app2.zip" dest="downloads/cf801/APSB09-12/jmc-app2.zip" verbose="true" usetimestamp="true" />
<checksum algorithm="SHA-512" file="downloads/cf801/APSB09-12/jmc-app2.zip" property="${APSB09-12.jmc-app2.zip.SHA-512}" verifyproperty="APSB09-12_isOK" />
<if>
<equals arg1="${APSB09-12_isOK}" arg2="true" />
<then>
<echo message="Applying jmc-app.ear to ${jrunInstallDir}/servers/admin" />
<unzip src="downloads/cf801/APSB09-12/jmc-app2.zip" dest="${jrunInstallDir}/servers/admin">
<patternset>
<include name="jmc-app.ear"/>
</patternset>
</unzip>
</then>
<else>
<fail message="${errorMsg.FileVerification}" />
</else>
</if>
</target>
<!-- *********************************************** -->
<!-- ColdFusion 9.0.1 Hot Fixes and Security Updates -->
<!-- *********************************************** -->
<target name="update_901" description="everything to update 9.0.1">
<!-- -->
<antcall target="backup" />
<antcall target="directoryPrep" />
<!-- <antcall target="cpsid_86263" /> -->
<!-- <antcall target="cpsid_90784_cf901" /> -->
<antcall target="cpsid_91836" />
<antcall target="cpsid_92512_cf901" />
<antcall target="cleanup" />
</target>
<!-- Superseded by CHF2 -->
<!--
<target name="cpsid_86263" description="Cumulative Hot Fix 1 for ColdFusion 9.0.1">
<echo message="Downloading Cumulative Hot Fix 1 for ColdFusion 9.0.1" />
<get src="http://kb2.adobe.com/cps/862/cpsid_86263/attachments/chf9010001.zip" dest="downloads/cf901/cpsid_86263/chf9010001.zip" verbose="true" usetimestamp="true" />
<checksum algorithm="SHA-512" file="downloads/cf901/cpsid_86263/chf9010001.zip" property="${cpsid_86263.chf9010001.zip.SHA-512}" verifyproperty="cpsid_86263_isOK" />
<if>
<equals arg1="${cpsid_86263_isOK}" arg2="true" />
<then>
<echo message="Unpacking chf9010001.zip" />
<unzip src="downloads/cf901/cpsid_86263/chf9010001.zip" dest="downloads/cf901/cpsid_86263/" />
<echo message="Applying chf8010001.jar to ${hotfixDir}" />
<copy file="downloads/cf901/cpsid_86263/chf9010001.jar" todir="${hotfixDir}" verbose="true" overwrite="true" preservelastmodified="true" />
<echo message="Applying files to ${cfideDir}" />
<unzip src="downloads/cf901/cpsid_86263/CFIDE-901.zip" dest="${cfideDir}/.." />
<echo message="Applying files to ${webinfDir}" />
<unzip src="downloads/cf901/cpsid_86263/WEB-INF-901.zip" dest="${webinfDir}/.." />
</then>
<else>
<fail message="${errorMsg.FileVerification}" />
</else>
</if>
</target>
-->
<!--
<target name="cpsid_90784_cf901" description="Security update: Hotfix available for ColdFusion (APSB11-14)">
<echo message="Downloading Security update: Hotfix available for ColdFusion (APSB11-14)" />
<get src="http://kb2.adobe.com/cps/907/cpsid_90784/attachments/CF901.zip" dest="downloads/cf901/cpsid_90784/CF901.zip" verbose="true" usetimestamp="true" />
<get src="http://kb2.adobe.com/cps/907/cpsid_90784/attachments/CFIDE-901.zip" dest="downloads/cf901/cpsid_90784/CFIDE-901.zip" verbose="true" usetimestamp="true" />
<checksum algorithm="SHA-512" file="downloads/cf901/cpsid_90784/CF901.zip" property="${cpsid_90784.CF901.zip.SHA-512}" verifyproperty="cpsid_90784_1_isOK" />
<checksum algorithm="SHA-512" file="downloads/cf901/cpsid_90784/CFIDE-901.zip" property="${cpsid_90784.CFIDE-901.zip.SHA-512}" verifyproperty="cpsid_90784_2_isOK" />
<if>
<and>
<equals arg1="${cpsid_90784_1_isOK}" arg2="true" />
<equals arg1="${cpsid_90784_2_isOK}" arg2="true" />
</and>
<then>
<echo message="Unpacking CF901.zip" />
<unzip src="downloads/cf901/cpsid_90784/CF901.zip" dest="downloads/cf901/cpsid_90784/" />
<echo message="Applying files to ${cfusionLibDir}" />
<copy todir="${cfusionLibDir}" verbose="true" overwrite="true" preservelastmodified="true">
<fileset dir="downloads/cf901/cpsid_90784/CF901/lib"/>
</copy>
<echo message="Applying files to ${cfideDir}" />
<unzip src="downloads/cf901/cpsid_90784/CFIDE-901.zip" dest="${cfideDir}/.." />
<echo message="Applying files to ${webinfDir}" />
<unzip src="downloads/cf901/cpsid_90784/CF901/WEB-INF.zip" dest="${webinfDir}/.." />
</then>
<else>
<fail message="${errorMsg.FileVerification}" />
</else>
</if>
</target>
-->
<target name="cpsid_91836" description="Cumulative Hot Fix 2 (CHF2) for ColdFusion 9.0.1">
<echo message="Cumulative Hot Fix 2 (CHF2) for ColdFusion 9.0.1" />
<get src="http://kb2.adobe.com/cps/918/cpsid_91836/attachments/CF901.zip" dest="downloads/cf901/cpsid_91836/CF901.zip" verbose="true" usetimestamp="true" />
<get src="http://kb2.adobe.com/cps/918/cpsid_91836/attachments/CFIDE-901.zip" dest="downloads/cf901/cpsid_91836/CFIDE-901.zip" verbose="true" usetimestamp="true" />
<checksum algorithm="SHA-512" file="downloads/cf901/cpsid_91836/CF901.zip" property="${cpsid_91836.CF901.zip.SHA-512}" verifyproperty="cpsid_91836_1_isOK" />
<checksum algorithm="SHA-512" file="downloads/cf901/cpsid_91836/CFIDE-901.zip" property="${cpsid_91836.CFIDE-901.zip.SHA-512}" verifyproperty="cpsid_91836_2_isOK" />
<if>
<and>
<equals arg1="${cpsid_91836_1_isOK}" arg2="true" />
<equals arg1="${cpsid_91836_2_isOK}" arg2="true" />
</and>
<then>
<echo message="Unpacking CF901.zip" />
<unzip src="downloads/cf901/cpsid_91836/CF901.zip" dest="downloads/cf901/cpsid_91836/" />
<echo message="Applying files to ${cfusionLibDir}" />
<copy todir="${cfusionLibDir}" verbose="true" overwrite="true" preservelastmodified="true">
<fileset dir="downloads/cf901/cpsid_91836/CF901/lib"/>
</copy>
<echo message="Applying files to ${cfideDir}" />
<unzip src="downloads/cf901/cpsid_91836/CFIDE-901.zip" dest="${cfideDir}/.." />
<echo message="Applying files to ${webinfDir}" />
<unzip src="downloads/cf901/cpsid_91836/CF901/WEB-INF.zip" dest="${webinfDir}/.." />
</then>
<else>
<fail message="${errorMsg.FileVerification}" />
</else>
</if>
</target>
<target name="cpsid_92512_cf901" description="Security update: Hotfix available for ColdFusion (APSB11-29)">
<echo message="Downloading Security update: Hotfix available for ColdFusion (APSB11-29)" />
<get src="http://kb2.adobe.com/cps/925/cpsid_92512/attachments/CF901jar.zip" dest="downloads/cf901/cpsid_92512/CF901jar.zip" verbose="true" usetimestamp="true" />
<checksum algorithm="SHA-512" file="downloads/cf901/cpsid_92512/CF901jar.zip" property="${cpsid_92512.CF901jar.zip.SHA-512}" verifyproperty="cpsid_92512_isOK" />
<if>
<equals arg1="${cpsid_92512_isOK}" arg2="true" />
<then>
<unzip src="downloads/cf901/cpsid_92512/CF901jar.zip" dest="downloads/cf901/cpsid_92512/" />
<echo message="Applying files to ${cfusionLibDir}" />
<copy todir="${cfusionLibDir}/updates" verbose="true" overwrite="true" preservelastmodified="true">
<fileset dir="downloads/cf901/cpsid_92512/CF901jar"/>
</copy>
</then>
<else>
<fail message="${errorMsg.FileVerification}" />
</else>
</if>
</target>
</project>