Browse Source

test for PR 46506

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@733707 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 16 years ago
parent
commit
7d23a63fb6
1 changed files with 25 additions and 1 deletions
  1. +25
    -1
      src/tests/antunit/types/glob-test.xml

+ 25
- 1
src/tests/antunit/types/glob-test.xml View File

@@ -22,9 +22,12 @@

<import file="../antunit-base.xml" />

<target name="test-overlapping-patterns">
<target name="setUp">
<mkdir dir="${input}"/>
<mkdir dir="${output}"/>
</target>

<target name="test-overlapping-patterns" depends="setUp">
<!-- shouldn't be moved because pre- and postfix of from pattern
overlap -->
<touch file="${input}/foobar-1.2.3.jar"/>
@@ -44,4 +47,25 @@
<au:assertFileExists file="${output}/x.jar"/>
</target>

<target name="xtest-no-*-in-to" depends="setUp"
description="https://issues.apache.org/bugzilla/show_bug.cgi?id=46506">
<touch file="${input}/a-b.jar"/>
<copy todir="${output}">
<fileset dir="${input}"/>
<mapper type="glob" from="a*.jar" to="c.jar"/>
</copy>
<au:assertFileDoesntExist file="${output}/c.jar-b"/>
<au:assertFileExists file="${output}/c.jar"/>
</target>

<target name="test-*-at-end-of" depends="setUp">
<touch file="${input}/a-b.jar"/>
<copy todir="${output}">
<fileset dir="${input}"/>
<mapper type="glob" from="a*.jar" to="c.jar*"/>
</copy>
<au:assertFileDoesntExist file="${output}/c.jar"/>
<au:assertFileExists file="${output}/c.jar-b"/>
</target>

</project>

Loading…
Cancel
Save