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 2009/01/12 13:43:32 UTC
svn commit: r733707 - /ant/core/trunk/src/tests/antunit/types/glob-test.xml
Author: bodewig
Date: Mon Jan 12 04:43:31 2009
New Revision: 733707
URL: http://svn.apache.org/viewvc?rev=733707&view=rev
Log:
test for PR 46506
Modified:
ant/core/trunk/src/tests/antunit/types/glob-test.xml
Modified: ant/core/trunk/src/tests/antunit/types/glob-test.xml
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/tests/antunit/types/glob-test.xml?rev=733707&r1=733706&r2=733707&view=diff
==============================================================================
--- ant/core/trunk/src/tests/antunit/types/glob-test.xml (original)
+++ ant/core/trunk/src/tests/antunit/types/glob-test.xml Mon Jan 12 04:43:31 2009
@@ -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>