ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r733706 - /ant/core/trunk/src/tests/antunit/types/glob-test.xml
Date Mon, 12 Jan 2009 12:38:52 GMT
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>



Mime
View raw message