diff --git a/WHATSNEW b/WHATSNEW index 2d4b6f11d..8c2af62b8 100644 --- a/WHATSNEW +++ b/WHATSNEW @@ -1,6 +1,15 @@ Changes from Ant 1.9.10 TO Ant 1.9.11 ===================================== +Changes that could break older environments: +------------------------------------------- + + * Previous versions of Ant's copy task would throw a BuildException + if the "name" of the resource to copy was null. Starting + this version, the copy task instead silently skips such resources + and no longer throws an exception. + ant-dev list https://www.mail-archive.com/dev@ant.apache.org/msg46634.html + Fixed bugs: ----------- diff --git a/src/tests/antunit/taskdefs/copy-test.xml b/src/tests/antunit/taskdefs/copy-test.xml index 51c6277c1..e73e13a07 100644 --- a/src/tests/antunit/taskdefs/copy-test.xml +++ b/src/tests/antunit/taskdefs/copy-test.xml @@ -83,12 +83,12 @@ public class NullByteStreamResource extends Resource { - - - - - + depends="-setupNullByteStreamResource" description="Tests that a + copy operation, of a resource without a name, doesn't run into (NPE) + exceptions. The resource itself will however be silently ignored"> + + +