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:38:52 UTC
svn commit: r733706 - /ant/core/trunk/src/tests/antunit/types/glob-test.xml
Author: bodewig
Date: Mon Jan 12 04:38:50 2009
New Revision: 733706
URL: http://svn.apache.org/viewvc?rev=733706&view=rev
Log:
rename test, remove unneeded tasks, add some assertions
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=733706&r1=733705&r2=733706&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:38:50 2009
@@ -22,17 +22,13 @@
<import file="../antunit-base.xml" />
- <target name="test-move">
- <property
- name="glob-test-out-dir"
- location="${glob-test.dir}/../../../../../build/antunit/glob-test"/>
- <echo>${glob-test-out-dir}</echo>
- <!-- the following should work -->
- <delete dir="${input}"/>
- <delete dir="${output}"/>
+ <target name="test-overlapping-patterns">
<mkdir dir="${input}"/>
<mkdir dir="${output}"/>
+ <!-- shouldn't be moved because pre- and postfix of from pattern
+ overlap -->
<touch file="${input}/foobar-1.2.3.jar"/>
+
<touch file="${input}/foobar-janfu-1.2.3.jar"/>
<touch file="${input}/foobar--1.2.3.jar"/>
<touch file="${input}/foobar-x-1.2.3.jar"/>
@@ -42,5 +38,10 @@
</fileset>
<mapper type="glob" from="foobar-*-1.2.3.jar" to="*.jar"/>
</move>
+ <au:assertFileExists file="${input}/foobar-1.2.3.jar"/>
+ <au:assertFileExists file="${output}/janfu.jar"/>
+ <au:assertFileExists file="${output}/.jar"/>
+ <au:assertFileExists file="${output}/x.jar"/>
</target>
+
</project>