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