Browse Source

add test for copy example of Bugzilla 62076

https://bz.apache.org/bugzilla/show_bug.cgi?id=62076
master
Stefan Bodewig 7 years ago
parent
commit
3d6f8b0283
1 changed files with 16 additions and 0 deletions
  1. +16
    -0
      src/tests/antunit/taskdefs/copy-test.xml

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

@@ -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>

Loading…
Cancel
Save