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 2012/04/07 06:30:11 UTC

svn commit: r1310674 - /ant/core/trunk/src/tests/antunit/types/resources/test.xml

Author: bodewig
Date: Sat Apr  7 04:30:09 2012
New Revision: 1310674

URL: http://svn.apache.org/viewvc?rev=1310674&view=rev
Log:
if test-directory contains spaces, an includes attribute will split it into several patterns

Modified:
    ant/core/trunk/src/tests/antunit/types/resources/test.xml

Modified: ant/core/trunk/src/tests/antunit/types/resources/test.xml
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/tests/antunit/types/resources/test.xml?rev=1310674&r1=1310673&r2=1310674&view=diff
==============================================================================
--- ant/core/trunk/src/tests/antunit/types/resources/test.xml (original)
+++ ant/core/trunk/src/tests/antunit/types/resources/test.xml Sat Apr  7 04:30:09 2012
@@ -170,7 +170,9 @@
           </path>
           <pathelement id="pe" location="${dir}" /> <!-- 1 -->
           <filelist id="fl" dir="${bar}" files="1,2,3,a,b,c" /> <!-- 6 -->
-          <files id="f" includes="${bar}/" /> <!-- 13; 3 overlap fl -->
+          <files id="f"> <!-- 13; 3 overlap fl -->
+            <include name="${bar}/"/>
+          </files>
         </path>
       </resourcecount>
     </au:assertTrue>
@@ -212,10 +214,16 @@
     <au:assertTrue>
       <resourcecount count="4">
         <union>
-          <files includes="${foo.a}/w,${foo.a}/x" /> <!-- 1 -->
+          <files> <!-- 1 -->
+            <include name="${foo.a}/w"/>
+            <include name="${foo.a}/x"/>
+          </files>
           <fileset dir="${foo.a}" includes="x,y" /> <!-- 2; net 1 -->
           <filelist dir="${foo.a}" files="v" /> <!-- 1 -->
-          <files includes="${foo.a}/y,${foo.a}/z" /> <!-- 2; net 1 -->
+          <files>  <!-- 2; net 1 -->
+            <include name="${foo.a}/y"/>
+            <include name="${foo.a}/z"/>
+          </files>
         </union>
       </resourcecount>
     </au:assertTrue>