forked from Uriziel47/ant
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathWHATSNEW
5781 lines (4056 loc) · 209 KB
/
WHATSNEW
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
Changes from Ant 1.8.4 TO Ant 1.9.0
===================================
Changes that could break older environments:
-------------------------------------------
* FixCRLF used to treat the EOL value ASIS to convert to the system property
line.separator. Specified was that ASIS would leave the EOL characters alone,
the task now really leaves the EOL characters alone. This also implies that
EOL ASIS will not insert a newline even if fixlast is set to true.
Bugzilla report 53036
* The CommandLauncher hierarchy that used to be a set of inner
classes of Execute has been extracted to the
org.apache.tools.ant.taskdefs.launcher package.
* Any FileResource whose represented File has a parent also has a basedir.
Fixed bugs:
-----------
* Made VectorSet faster.
Bugzilla Report 53622.
* Incorrect URLs in Ant child POMs.
Bugzilla Report 53617.
* Subclasses of JUnitTask did not correctly find junit.jar.
Bugzilla Report 53571.
* External XML catalog resolver failed to use project basedir when given an
unmentioned relative path like the internal resolver does.
Bugzilla Report 52754.
* Fixed some potential stream leaks.
Bugzilla Reports 52738, 52740, 52742, 52743.
* Updated documentation to fix spelling errors / broken links.
Bugzilla Reports 53215, 53291, 53202
* Unable to override system properties. It was not possible not to override
system properties from the command line (or from a property file).
Bugzilla Report 51792
* <javac> by default fails when run on JDK 8.
Bugzilla Report 53347.
* ExtensionPoint doesn't work with nested import/include
Bugzilla Report 53405.
* <packagemapper> failed to strip the non-matched parts with
handledirsep="true".
Bugzilla Report 53399.
* <expandproperties> filter caused a NullPointerExcpetion when input
was empty.
Bugzilla Report 53626.
* <get> now supports HTTP redirects using status code 307.
Bugzilla Report 54374.
* ssh tasks prompt for kerberos username/password under Java 7
Bugzilla Report 53437.
* Zip task on <mappedresources> that excludes certain files by way of the mapper resulted in a NullPointerException
Bugzilla Report 54026
Other changes:
--------------
* merged the ZIP package from Commons Compress, it can now read
archives using Zip64 extensions (files and archives bigger that 4GB
and with more that 64k entries).
* a new task <commandlaucher> can be used to configure the
CommandLauncher used by Ant when forking external programs or new
Java VMs.
Bugzilla Report 52706.
* merged the TAR package from Commons Compress, it can now read
archives using POSIX extension headers and STAR extensions.
* merged the BZIP2 package from Commons Compress, it can now
optionally read files that contain multiple streams properly.
* <bunzip2> will now properly expand files created by pbzip2 and
similar tools that create files with multiple bzip2 streams.
* <tar> now supports a new "posix" option for longfile-mode which
will make it create PAX extension headers for long file names. PAX
extension headers are supported by all modern implementations of
tar including GNU tar.
This option should now be used in preference to "warn" or "gnu" as
it is more portable. For backwards compatibility reasons "warn"
will still create "gnu" extensions rather than "posix" extensions.
* The ProjectHelper class now exposes a method to be used by third party
implementations to properly resolve the binding between target extensions
and extension points.
Bugzilla Report 53549.
* Make extension point bindable to imported prefixed targets
Bugzilla Report 53550.
* Add the possibility to register a custom command line argument processor.
See org.apache.tools.ant.ArgumentProcessor and manual/argumentprocessor.html
Changes from Ant 1.8.3 TO Ant 1.8.4
===================================
Fixed bugs:
-----------
* Ported libbzip2's fallback sort algorithm to CBZip2OutputStream to
speed up compression in certain edge cases. Merge from Commons
Compress.
Using specially crafted inputs this can be used as a denial of
service attack.
See http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2012-2098
Changes from Ant 1.8.2 TO Ant 1.8.3
===================================
Changes that could break older environments:
-------------------------------------------
* The Enumeration returned by AntClassLoader#getResources used to
return null in nextElement after hasNextElement would return false.
It has been changed to throw a NoSuchElementException instead so
that it now adheres to the contract of java.util.Enumeration.
Bugzilla Report 51579.
Fixed bugs:
-----------
* Removed buggy duplicate JAR list in RPM mode.
Bugzilla Report 52556.
* Launcher fixed to pass the right class loader parent.
Bugzilla Report 48633.
* <junitreport> mishandled ${line.separator}.
Bugzilla Report 51049.
* <junitreport> did not work in embedded environments on JDK 7.
Nor did <xslt> when using Xalan redirects.
Bugzilla Report 51668, 52382.
* Encoding of unicode escape sequences by the property file task
Bugzilla Report 50515.
* The code that implicitly sets the -source switch if only -target
has been specified in <javac> was broken for Java 5 and 6.
Bugzilla Report 50578.
* MailLogger ignore the Maillogger.starttls.enable property.
Bugzilla Report 50668.
* Delete task example does not work
Bugzilla Report 50816.
* <splash>'s proxy handling has been delegated to <setproxy>
internally so the two tasks are consistent. <splash>'s way of not
setting a proxy caused problems with other Java libraries.
Bugzilla Report 50888.
* Include task breaks dependencies or extension-points for multiple
files.
Bugzilla Report 50866.
* Read on System.in hangs for forked java task.
Bugzilla Report 50960.
* FileResource specified using basedir/name attributes was non-functional.
* Resource collection implementation of mapped PropertySet returned
unusable resources.
* The hasmethod condition failed with a NullPointerException when
ignoresystemclasses is true and Ant tried to load a "restricted
class" - i.e. a class that the Java VM will only accept when loaded
via the bootclassloader (a java.* class).
It will now fail with a more useful error message.
Bugzilla Report 51035.
* Exec task may mix the stderr and stdout output while logging it
Bugzilla Report 50507.
* Missing space between "finished" and timestamp in task/target
finish message from ProfileLogger.
Bugzilla Report 51109.
* Redirecting the output of a java, exec or apply task could print in the
error output stream some "Pipe broken" errors.
Bugzilla Report 48789.
* ZipFile failed to clean up some resources which could lead to
OutOfMemoryException while unzipping large archives.
A similar problem in ZipArchiveOutputStream has been fixed as well.
Bugzilla Report 42696.
* quiet attribute added to the copy and move tasks, to be used together
with failonerror=false, so warnings won't get logged
Bugzilla Report 48789.
* System.in was closed and not readable anymore by the DefaultInputHandler
when Ant is used via its Java API.
Bugzilla Report 51161
* <sync> only supported a single non-fileset resource collection even
though the manual said it could be multiple.
* <sync> didn't work properly when working on resource collections.
Bugzilla Report 51462.
* <augment> cause a NullPointerException if it was used in a target
that was invoked by multiple targets from the command line.
Bugzilla Report 50894.
* The ZipFile class could read past the start of the file if the
given file is not a ZIP archive and it is smaller than the size of
a ZIP "end of central directory record".
* <javac> would create the empty package-info.class file in the wrong
directory if no destdir was specified. Note it may still pick the
wrong directory if you specify more than one source directory but
no destDir. It is highly recommended that you always explicitly
specify the destDir attribute.
Bugzilla Report 51947.
* packagemapper now honors the handleDirSep attribute.
Bugzilla Report 51086.
* the attributes of macrodef tasks had their values run through
property expansion twice. Still true by default, but can be disabled.
Bugzilla Report 42046.
* jvc doesn't like it if source file names in argument files are
quoted.
Bugzilla Report 31667.
* ZipFile didn't work properly for archives using unicode extra
fields rather than UTF-8 filenames and the EFS-Flag.
* Access to DirectoryScanner's default excludes wasn't synchronized.
Bugzilla Report 52188.
* When a Project instance was created by a custom tasks its
createTask method didn't work.
Bugzilla Report 50788.
Other changes:
--------------
* -f/-file/-buildfile accepts a directory containing build.xml.
* The <javacc>, <jjtree> and <jjdoc> now support a new maxmemory
attribute.
Bugzilla Report 50513.
* the documented inputstring attribute of sshexec has been
implemented and the actually existing attribute inputproperty
documented.
Bugzilla Report 50576.
* The concat task now permits the name of its exposed resource
by means of its 'resourcename' attribute.
* The expandproperties filter now accepts a nested propertyset
which, if specified, provides the properties for expansion.
Bugzilla Report 51044.
* <junit filtertrace="true"/> will no longer filter out the very
first line of the stacktrace containing the original exception
message even if it matches one of the filter expressions.
* Upgraded to Apache AntUnit 1.2
* Provide read access to Mkdir.dir. Bugzilla Report 51684.
* <delete> and <move> have a new attribute performGCOnFailedDelete
that may - when set to true - help resolve some problems with
deleting empty directories on NFS shares.
Bugzilla Report 45786.
* <loadfile> and <loadresource> used to log at level INFO to signal a
property hasn't been set when the resource was empty even if the
quiet attribute was set to true. They will now use VERBOSE
instead.
Bugzilla Report 52107.
* <javac> has a new attribute createMissingPackageInfoClass that can
be set to false to prevent Ant from creating empty dummy classes
used for up-to-date-ness checks.
Bugzilla Report 52096.
* URLResources#isExists has become less noisy.
Bugzilla Report 51829.
* The <retry> task has a new optional attribute retryDelay that can
be used to make the task sleep between retry attempts.
Bugzilla Report 52076.
* <signjar> has new attributes that control the signature and digest
algorithms.
Bugzilla Report 52344.
* Initial support for Java 8.
* <sshexec> can optionally create a pseudo terminal (like ssh -t)
Bugzilla Report 52554.
Changes from Ant 1.8.1 TO Ant 1.8.2
===================================
Changes that could break older environments:
-------------------------------------------
* Prior to Ant 1.8.0 the <copy> task and several other tasks would
overwrite read-only destination files. Starting with 1.8.0 they
would only do so under special circumstances. Ant 1.8.2 now
consistently won't replace a read-only file by default. The same is
true for a number of other tasks.
The <copy>, <move> and <echo> tasks now have a new force attribute
and <concat> has a new forceReadonly attribute that can be used to
make the task overwrite read-only destinations.
Bugzilla Report 49261.
* Removed ant-nodeps.jar; it is now merged into ant.jar.
* DOMElementWriter#encode used to employ special code before encoding
ampersands so that { remained { rather than being turned
into &#123;. This is no longer the case, ampersands will now
be encoded unconditionally.
Also DOMElementWriter#encodeData will treat CDATA sections containing a
literal "]]>" sequence different now - it will split the CDATA
section between the second "]" and ">" and create two sections.
This affects <echoxml> task as well as the XML logger or JUnit
formatter where ampersands will now always get encoded.
In addition DOMElementWriter will now replace the characters \t, \r
and \n in attribute values by entity references.
Bugzilla Report 49404.
* The list elements returned by ProjectHelper#getExtensionStack are
now String arrays of length 3 rather than 2 in order to support the
onMissingExtensionPoint attribute.
Bugzilla Report 49473.
* When using <property file="..." prefix="..."/> properties defined
inside the same file will only get used in expansions if the ${}
reference uses the same prefix. This is different from Ant 1.8.1
but is the same behavior Ant 1.8.0 and earlier exhibited.
A new attribute prefixValues can be used to re-enable the behavior
of Ant 1.8.1.
Bugzilla Report 49373.
* The files and directories used by Git, Mercurial and Bazaar to
store their information are now excluded by the defaultexcludes.
Bugzilla Report 49624.
* The <junit> task no longer generates TestListener events - which
have been introduced in ant 1.7.0 - by default. The task has a new
attribute enableTestListenerEvents and a new "magic" property
ant.junit.enabletestlistenerevents has been added that can be used
to reinstate the old behavior.
Fixed bugs:
-----------
* hostinfo now prefers addresses with a hostname over addresses without
a hostname, provided the addresses have the same scope.
For local lookup, no IP address will be put in NAME / DOMAIN anymore.
For remote lookup, if a host name was provided and only an IP address is
found, the IP address will no longer overwrite the host name provided to the
task.
Bugzilla Report 49513
* mmap-based file copy problems under JDK 1.4 on Linux.
Bugzilla Report 49430.
* The Sun JVM tries to mmap the entire file during a copy.
For large files this is not feasible.
We now explicitly request to copy at most 16 MiB per request.
Bugzilla Report 49326.
* DemuxInputStream.read() should return unsigned values
Bugzilla Report 49279.
* The MIME mailer ignored the port parameter when using SSL.
Bugzilla Report 49267.
* <xslt> ignored the classpath when using the default TraX processor.
Bugzilla Report 49271.
* <checksum>'s totalproperty only worked reliably if the same file
name didn't occur inside more than one directory.
Bugzilla Report 36748.
* <ftp> could fail to download files from remote subdirectories under
certain circumstances.
Bugzilla Report 49296.
* <junit> will now produce better diagnostics when it fails to delete
a temporary file.
Bugzilla Report 49419.
* Ant would often scan directories even though there were known to
only hold excluded files when evaluating filesets. This never
resulted in wrong results but degraded performance of the scan
itself.
Bugzilla Report 49420.
* <javac> failed for long command lines on OS/2.
Bugzilla Report 49425.
* <junitreport> did not handle encodings well for stdout/stderr.
Bugzilla Report 49418.
* <junit> could issue a warning about multiple versions of Ant on the
CLASSPATH if two CLASSPATH entries differed in case on a
case-insensitive file system.
Bugzilla Report 49041.
* The <restrict> resource collection was checking every resource even if
we actually just want the first one, like in the example of use of
resourcelist in the documentation (getting the first available resource
from a mirror list).
* A race condition could lead to build failures if multiple <mkdir>
tasks were trying to create the same directory.
Bugzilla Report 49572.
* the toString() method of the Resources class - and thus any
${toString:} expansion of a reference to a <resources> element -
didn't iterate over its nested elements if it hadn't done so prior
to the toString invocation already.
Bugzilla Report 49588.
* <apply> in parallel mode didn't work together with a nested
<redirector> if maxparallel was <= 0 (the default) or no source
files matched.
Bugzilla Report 49594.
* <jar filesetmanifest="merge"> didn't work for manifests added via
<zipfileset>s that used the prefix or fullpath attributes.
Bugzilla Report 49605.
* <tempfile createfile="true"> would cause an error unless the prefix
attribute has been specified.
Bugzilla Report 49755.
* If forked, after finished <java> was still reading the input stream
for a bunch of characters, then stealing them from a following <input>.
Bugzilla Report 49119.
* Ant could be leaking threads for each forked process (started by
<exec>, <apply>, <java> or similar tasks) that didn't receive input
from a resource or string explicitly.
Bugzilla Report 49587.
* Project#setDefault threw an exception when null was passed in as
argument, even though the Javadoc says null is a valid value.
Bugzilla Report 49803.
* runant.py would swallow the first argument if CLASSPATH wasn't set.
Bugzilla Report 49963.
* <taskdef> failed to load resources from jar files contained in a
directory that has a "!" in its name.
Bugzilla Report 50007.
* ant.bat exit strategy improvements and issues
make the exit codes work in environments where 4NT or MKS are installed
Bugzilla Report 41039.
* <signjar> would fail if used via its Java API and the File passed
into the setJar method was not "normalized" (i.e. contained ".."
segments).
Bugzilla Report 50081.
* <delete> ignored <fileset>'s errorOnMissingDir attribute
Bugzilla Report 50124.
* <symlink> failed to close files when reading a list of symbolic
links from a properties file.
Bugzilla Report 50136.
* <parallel> could allow tasks to start executing even if a task
scheduled to run before them timed out.
Bugzilla Report 49527.
* If a <junit> batch with multiple tests times out Ant logs a message
about a test named Batch-With-Multiple-Tests since 1.8.0 but the
logic that determined the Java package of this pseudo-test has been
wrong.
Bugzilla Report 45227.
* <propertyfile> didn't preserve the original linefeed style when
updating a file.
Bugzilla Report 50049.
* <zip>'s whenEmpty behavior never consulted the non-fileset
resources so the task could fail even though resources have been
provided using non-fileset resource collections.
Bugzilla Issue 50115.
* ftp chmod could throw a NPE.
Bugzilla report 50217.
* The project help (-p option in the command line) will now print
the dependencies of the targets in debug mode (-d on the command
line)
Other changes:
--------------
* <concat>'s force attribute has been deprecated in favor of a new
overwrite attribute that is consistent with <copy>'s attribute
names.
* You can now specify a list of methods to run in a JUnit test case.
Bugzilla Report 34748.
* properties in files read because of the -propertyfile command line
option will now get resolved against other properties that are
defined before the project starts executing (those from the same or
earlier -propertfiles or defined via the -D option).
Bugzilla Report 18732.
* <pathelement>s can now contain wildcards in order to use wildcard
CLASSPATH entries introduced with Java6.
The wildcards are not expanded or even evaluated by Ant and will be
used literally. The resulting path may be unusable as a CLASSPATH
for Java versions prior to Java6 and likely doesn't mean anything
when used in any other way than a CLASSPATH for a forked Java VM.
Bugzilla Report 46842.
* A new attribute allows targets to deal with nonexistent extension
points, i.e. they can extend an extension-point if it has been
defined or silently work as plain targets if it hasn't. This is
useful for targets that get included/imported in different
scenarios where a given extension-point may or may not exist.
Bugzilla Report 49473.
* Ant now logs a warning message if it fails to change the file
modification time in for example when using <touch> or preserving
timestamps in various tasks.
Bugzilla Report 49485.
* ProjectHelpers can now be installed dynamically via the <projecthelper>
Ant task.
* <import> is now able to switch to the proper ProjectHelper to parse
the imported resource. This means that several kinds of different build
files can import each other.
* <copy tofile=""> now also works for non-filesystem resources.
Bugzilla Report 49756.
* The <linecontainsregexp> filter now supports a casesensitive
attribute.
* The <containsregexp> selector now supports casesensitive, multiline
and singleline attributes.
Bugzilla Report 49764.
* A new <cutdirsmapper> can be used like wget's --cut-dirs option to
strip leading directories from file names.
* <javah> now supports the GNU project's gcjh compiler.
Bugzilla Report 50149.
* <checksum> supports additional views of a file's path as elements
for a custom pattern.
Bugzilla Report 50114.
* JUnit XMLResultAggregator logs the stack trace of caught IO exceptions
in verbose runs.
Bugzilla Report 48836.
* StringUtils.parseHumanSizes() should turn parse failures into
BuildExceptions.
Bugzilla Report 48835.
* New task <bindtargets> to make a list of targets bound to some
specified extension point.
* Initial support for OpenJDK7 has been added.
* Ant now uses java.net.CookieStore rather than
java.util.ServiceLocator to detect whether the environment is a
Java 1.6 system. This means releases of gcj/gij at the time of
this release of Ant are detected as Java 1.5 and not 1.6.
Bugzilla Report 50256.
* It is now possible to write a compiler adapter for <javac> that
compiles sources with extensions other than .java (but that still
compile to .class files).
Bugzilla Report 48829.
* The performance of VectorSet#add(Object) has been improved which
should also benefit any operation that scans directories in Ant.
Bugzilla Report 50200.
Changes from Ant 1.8.0 TO Ant 1.8.1
===================================
Changes that could break older environments:
-------------------------------------------
* ant-trax.jar is no longer produced since TrAX is included in JDK 1.4+.
* Ant no longer ships with Apache Xerces-J or the XML APIs but relies
on the Java runtime to provide a parser and matching API versions.
* The stylebook ant task and the ant-stylebook.jar are removed.
Fixed bugs:
-----------
* Tasks that iterate over task or type definitions, references or
targets now iterate over copies instead of the live maps to avoid
ConcurrentModificationExceptions if another thread changes the
maps.
Bugzilla Report 48310.
* The filesmatch condition threw a NullPointerException when
comparing text files and the second file contained fewer lines than
the first one.
Bugzilla Report 48715.
* Regression: The <ear> task would allow multiple
META-INF/application.xml files to be added.
Bugzilla Report 6836.
* VectorSet#remove(Object) would fail if the size of the vector
equaled its capacity.
* Regression : ant -diagnostics was returning with exit code 1
Bugzilla Report 48782
* Fix for exec task sometimes inserts extraneous newlines
Bugzilla Report 48746
* SymlinkTest#testSymbolicLinkUtilsMethods failing on MacOS
Bugzilla Report 48785.
* If <concat>'s first resourcecollection child is a <resources>,
any subsequently added child resourcecollection joins the first.
Bugzilla Report 48816.
* <get> with an invalid URL could trigger an NPE in some JVMs.
Bugzilla Report 48833
* Broken Pipe issue under Ubuntu Linux
Bugzilla Report 48789
* Properties wrongly read from file or not update during read
Bugzilla Report 48768
* AntClassLoader in Ant 1.8.0 has been considerably slower than in
1.7.1
Bugzilla Report 48853
* ANT_CMD_LINE_ARGS are rippling through lower level Ant usage
Bugzilla Report 48876
* email : IO error sending mail with plain mimetype
Bugzilla Report 48932
* the complete-ant-cmd.pl script failed to create a proper cache of
target if "ant -p" failed.
Bugzilla Report 48980
* <rmic>'s sourcebase attribute was broken.
Bugzilla Report 48970
* <copy>'s failonerror didn't work as expected when copying a single
element resource collection to a file.
Bugzilla Report 49070
* <get> no longer followed redirects if the redirect URL was relative
and not an absolute URL.
Bugzilla Report 48972
* fixed a performance degradation in the code that expands property
references.
Bugzilla Reports 48961 and 49079
* <jar filesetmanifest="merge"> was broken on Windows.
Bugzilla Report 49090
* <symlink> delete failed if the link attribute was a relative path
to a link inside the current directory without a leading ".".
Bugzilla Report 49137
* <telnet> and <rexec> failed to find the expected strings when
waiting for responses and thus always failed.
Bugzilla Report 49173
Other changes:
--------------
* Project provides new get methods that return copies instead of the
live maps of task and type definitions, references and targets.
* Ant is now more lenient with ZIP extra fields and will be able to
read archives that it failed to read in earlier versions.
Bugzilla Report 48781.
* The <zip> family of tasks has been sped up for bigger archives.
Bugzilla Report 48755.
* Add removeKeepExtension option to NetRexxC task.
Bugzilla Report 48788.
* Add prefix attribute to loadproperties task.
* Add resource attribute to length task.
* PropertyResource will effectively proxy another Resource if ${name}
evaluates to a Resource object.
* Added forcestring attribute to equals condition to force evaluation
of Object args as strings; previously only API-level usage of the
equals condition allowed Object args, but Ant 1.8.x+ property
evaluation may yield values of any type.
* BuildFileTest.assertPropertyUnset() fails with a slightly more
meaningful error message
Bugzilla Report 48834
* <junit> will now throw an exception if a test name is empty. This
used to manifest itself in unrelated errors like
Bugzilla Report 43586.
* A change that made <exec> more reliable on Windows (Bugzilla Report
5003) strongly impacts the performance for commands that execute
quickly, like attrib. Basically no single execution of a command
could take less than a second on Windows.
A few timeouts have been tweaked to allow these commands to finish
more quickly but still they will take longer than they did with Ant
1.7.1.
Bugzilla Report 48734.
* Added SimpleBigProjectLogger, intermediate between NoBannerLogger and
BigProjectLogger.
* <mappedresources> supports new attributes enablemultiplemappings
and cache.
* Added the augment task to manipulate existing references via Ant's basic
introspection mechanisms.
Changes from Ant 1.8.0RC1 TO Ant 1.8.0
======================================
Changes that could break older environments:
-------------------------------------------
* the appendtolines filter has been renamed to suffixlines.
Fixed bugs:
-----------
* stack traces were not reported at all by <junit/>
when filtertrace="on", which is the default.
* ant.bat can now also process the -noclasspath switch when it is
the first switch on a command line.
Bugzilla Report 48186.
* <fixcrlf> now tries to delete the created temporary files earlier.
Bugzilla Report 48506.
* the implementation of <zip> had been changed in a way that broke
the jarjar links task and protentially other third-party subclasses
as well.
Bugzilla Report 48541.
* <scp> task didn't report build file location when a remote operation failed
Bugzilla Report 48578.
* <propertyfile> would add the same comment and a date line each time
it updated an existing property file.
Bugzilla Report 48558.
* <sound> didn't work properly in recent Java VMs.
Bugzilla Report 48637.
Other changes:
--------------
Changes from Ant 1.7.1 TO Ant 1.8.0RC1
======================================
Changes that could break older environments:
-------------------------------------------
* if and unless attributes (on <target> as well as various tasks and other
elements) have long permitted ${property} interpolation. Now, if the result
evaluates to "true" or "false" (or "yes", "no", "on", "off"), that boolean
value will be used; otherwise the traditional behavior of treating the value
as a property name (defined ~ true, undefined ~ false) is used. Existing
scripts could be broken if they perversely defined a property named "false"
and expected if="false" to be true, or used if="true" expecting this to be
triggered only if a property named "true" were defined.
* Ant now requires Java 1.4 or later.
* Improved handling of InterruptException (lets suppose someone/thing
is trying to kill the thread when we receive an
InterruptException), when an InterruptException is received, we do
not wait anymore in a while loop till the end time has been
reached.
Bugzilla Report 42924.
* Refactor PropertyHelper and introspection APIs to make extension
more granular and support setting task/type attribute values to
objects decoded by custom PropertyEvaluator delegates. Also add
<propertyhelper> task for registering delegates and/or replacing
the registered PropertyHelper instance.
Bugzilla Report 42736.
* Added a restricted form of typedef called <componentdef>. This
allows definition of elements that can only be within tasks or
types. This method is now used to define conditions, selectors,
comparators and filterreaders. This means that tasks may now have
nested conditions just by implementing the Condition interface,
rather than extending ConditionBase. It also means that the use of
namespaces for some of the selectors introduced in Ant 1.7.0 is no
longer necessary. Implementing this means that the DynamicElement
work-around introduced in Ant 1.7.0 has been removed.
Bugzilla Report 40511.
* In the <touch> task when a <mapper> is used, the millis and
datetime attributes now override the time of the source resource if
provisioned.
Bugzilla Report 43235.
* Remove fall-back mechanism for references that are not resolved
during normal runtime execution.
* FileUtils.createTempFile now actually creates the file.
The TempFile task still does not create the file by default, can be
instructed to do so however using a new parameter.
Bugzilla Report 33969.
* A lock in Project ensured that a BuildListener's messageLogged
method was only ever executed by a single thread at a time, while
all other methods could be invoked by multiple threads
simultaniously (while within <parallel>, for example). This lock
is no longer in place, messageLogged should be made thread-safe
now.
* <sql>'s onError="stop" no longer fails the build if an error
occurs, this is the main difference between stop and error and
matches what the documentation implied.
Bugzilla Report 24668.
* Ant's configuration introspection mechanisms have been modified to prefer
Resource and FileProvider attributes to plain java.io.File attributes;
however the configuration-from-String behavior remains equivalent, rendering
a FileResource.
* CBZip2InputStream will now throw an IOException if
passed in a null or empty InputStream to read from.
Bugzilla Reports 32200.
* <unzip> will now fail when trying to extract certain broken
archives that would have been silently ignored in earlier version.
Bugzilla Report 35000.
* Ant's <zip> family of tasks tries to preserve the existing Unix
permissions when updating archives or copying entries from one
archive to another.
Since not all archiving tools support storing Unix permissions in
the same way that is used by Ant, sometimes the permissions read by
Ant seem to be 0, which means nobody is allowed to do anything to
the file or directory.
If Ant now encounters a permission set of 0 it will assume that
this is not the intended value and instead apply its own default
values. Ant used to create entries with 0 permissions itself.
The <zip> family of tasks has a new attribute preserve0permissions
that can be set to restore the old behavior.
Bugzilla Report 42122.
* If a batch containing multiple JUnit tests running inside a forked
Java VM caused the VM to crash (or caused a timeout), the
formatters would receive an error message for the last test in the
batch.
Ant will now pass in a test with the name "Batch-With-Multiple-Tests"
instead - this is supposed to show more clearly that the last test
may not have started at all.
Bugzilla Report 45227.
* If the number of minutes a build takes is bigger then 1000 Ant will
no longer print a thousands separator in the "elapsed time"
message. It used to be the thousands separator of the current
locale.
Bugzilla Report 44659.
* <symlink action="delete"> used to fail if the link was broken (i.e.
pointing to a file or directory that no longer existed). It will now
silently try to remove the link.
Bugzilla Report 41285.
* <delete file="..."> used to log a warning and not delete broken
symbolic links. <delete dir="..."/> didn't even log a warning.
The task will now try to delete them in both cases.
Bugzilla Report 41285.
* if the dir attribute of a <fileset> points to a symbolic link and
followsymlinks is set to false, the fileset will no longer be
scanned and always seem empty.
Bugzilla Report 45741.
* the .NET tasks that have been deprecated since Ant 1.7.0 have been
removed, please use the stand-alone Antlib you can find at
http://ant.apache.org/antlibs/dotnet/index.html
instead.
* the logic of closing streams connected to forked processes (read
the input and output of <exec> and friends) has been changed to
deal with cases where child processes of the forked processes live
longer than their parents and keep Ant from exiting.
It is unlikely but possible that the changed logic breaks stream
handling on certain Java VMs.
Bugzilla issue 5003.
* <checksum>'s totalproperty was platform dependent because it relied
on java.io.File#compareTo. It has now been made platform
independent, which means that totalPropery values obtained on
Windows (and other systems where the sort order of File is not case
sensitive) can be different from the values obtained with earlier
versions of Ant.
Bugzilla Report 36748.
* globmapper didn't work properly if the "to" or "from" patterns
didn't contain a "*". In particular it implicitly added a * to the
end of the pattern(s). This is no longer the case. If you relied
on this behavior you will now need to explicitly specify the
trailing "*".
Bugzilla Report 46506.
* <copy> silently ignored missing resources even with
failOnError="true". If your build tries to copy non-existant
resources and you relied on this behavior you must now explicitly
set failOnError to false.
Bugzilla Report 47362.
* Ant now prefers the java.runtime.version system property over
java.vm.version for the Created-By Manifest attribute.
Bugzilla Report 47632.
* The <image> task now supports a nested mapper. In order to
implement this, the Java API of the task had to change so any
custom subclass overriding the processFile method will need to
adapt (by overriding the new two-arg processFile method).
Bugzilla Report 23243.
* A new property syntax can be used to set attributes from
references: ${ant.ref:some-reference}
In most cases this will yield the exact same result as
${toString:some-reference} - only when an attribute setter method
accepts an object type other than string and the project's
reference is an Object of matching type the new syntax will pass in
that object.
If your build file already contains properties whose name starts
with "ant.ref:" there is a potential for collision. If your
property has been set, normal property expansion will take
precedence over the new syntax. If the property has not been set
and a reference with the postfix of your property name exists
(i.e. in a very unlikely event) then the new syntax would yield a
different result (an expanded property) than Ant 1.7.1 did.
* A ProjectHelper implementation can now provide the default build file
name it is expecting, and can specify if they can support a specific build
file. So Ant is now capable of supporting several ProjectHelper
implementations, deciding on which to use depending of the input build file.
* Mapper-aware selectors (depends, different, present) now accept typedef'd
FileNameMappers.
Fixed bugs:
-----------
* The default logger was failing to print complete stack traces for
exceptions other than BuildException when inside <ant> or
<antcall>, thus omitting often important diagnostic
information.
Bugzilla 43398 (continued).
* Better handling of package-info.class.
Bugzilla Report 43114.