You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ant.apache.org by bo...@apache.org on 2018/02/18 09:54:40 UTC
ant git commit: add test for copy example of Bugzilla 62076
Repository: ant
Updated Branches:
refs/heads/1.9.x d9f60aab3 -> 3d6f8b028
add test for copy example of Bugzilla 62076
https://bz.apache.org/bugzilla/show_bug.cgi?id=62076
Project: http://git-wip-us.apache.org/repos/asf/ant/repo
Commit: http://git-wip-us.apache.org/repos/asf/ant/commit/3d6f8b02
Tree: http://git-wip-us.apache.org/repos/asf/ant/tree/3d6f8b02
Diff: http://git-wip-us.apache.org/repos/asf/ant/diff/3d6f8b02
Branch: refs/heads/1.9.x
Commit: 3d6f8b02837341761a4fce0d55656ae4fdd7c9ba
Parents: d9f60aa
Author: Stefan Bodewig <bo...@apache.org>
Authored: Sun Feb 18 10:54:04 2018 +0100
Committer: Stefan Bodewig <bo...@apache.org>
Committed: Sun Feb 18 10:54:04 2018 +0100
----------------------------------------------------------------------
src/tests/antunit/taskdefs/copy-test.xml | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ant/blob/3d6f8b02/src/tests/antunit/taskdefs/copy-test.xml
----------------------------------------------------------------------
diff --git a/src/tests/antunit/taskdefs/copy-test.xml b/src/tests/antunit/taskdefs/copy-test.xml
index e73e13a..5bca724 100644
--- a/src/tests/antunit/taskdefs/copy-test.xml
+++ b/src/tests/antunit/taskdefs/copy-test.xml
@@ -468,4 +468,20 @@ public class NullByteStreamResource extends Resource {
<au:assertFileExists file="${input}/somefile"/>
<au:assertFileExists file="${output}/somefile"/>
</target>
+
+
+ <target name="test-with-some-resources-mapped-away"
+ description="https://bz.apache.org/bugzilla/show_bug.cgi?id=62076">
+ <mkdir dir="${input}"/>
+ <touch file="${input}/a.filea"/>
+ <touch file="${input}/b.fileb"/>
+ <mkdir dir="${output}"/>
+ <copy todir="${output}">
+ <mappedresources>
+ <fileset dir="${input}" />
+ <globmapper from="a.*" to="*" />
+ </mappedresources>
+ </copy>
+ <au:assertFileExists file="${output}/filea"/>
+ </target>
</project>