Browse Source

Merge branch '1.9.x'

master
Stefan Bodewig 7 years ago
parent
commit
107d2d1b7b
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

@@ -460,4 +460,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