Browse Source

Change the copy-test#testResourceWithoutName to no longer expect a BuildException when the resource's name is null.

Detailed dev list discussion https://www.mail-archive.com/dev@ant.apache.org/msg46634.html
master
Jaikiran Pai 7 years ago
parent
commit
fc1ad4424d
2 changed files with 15 additions and 6 deletions
  1. +9
    -0
      WHATSNEW
  2. +6
    -6
      src/tests/antunit/taskdefs/copy-test.xml

+ 9
- 0
WHATSNEW View File

@@ -1,6 +1,15 @@
Changes from Ant 1.9.10 TO Ant 1.9.11 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: Fixed bugs:
----------- -----------




+ 6
- 6
src/tests/antunit/taskdefs/copy-test.xml View File

@@ -83,12 +83,12 @@ public class NullByteStreamResource extends Resource {
</target> </target>


<target name="testResourceWithoutName" <target name="testResourceWithoutName"
depends="-setupNullByteStreamResource">
<au:expectfailure>
<copy todir="${output}">
<nullstream/>
</copy>
</au:expectfailure>
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">
<copy todir="${output}">
<nullstream/>
</copy>
</target> </target>


<target name="testResourceWithoutNameWithMergeMapper" <target name="testResourceWithoutNameWithMergeMapper"


Loading…
Cancel
Save