ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r292245 - in /ant/core/trunk: docs/manual/CoreTasks/subant.html src/main/org/apache/tools/ant/taskdefs/SubAnt.java
Date Wed, 28 Sep 2005 18:38:33 GMT
Author: bodewig
Date: Wed Sep 28 11:38:27 2005
New Revision: 292245

URL: http://svn.apache.org/viewcvs?rev=292245&view=rev
Log:
resource collection support for subant

Modified:
    ant/core/trunk/docs/manual/CoreTasks/subant.html
    ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/SubAnt.java

Modified: ant/core/trunk/docs/manual/CoreTasks/subant.html
URL: http://svn.apache.org/viewcvs/ant/core/trunk/docs/manual/CoreTasks/subant.html?rev=292245&r1=292244&r2=292245&view=diff
==============================================================================
--- ant/core/trunk/docs/manual/CoreTasks/subant.html (original)
+++ ant/core/trunk/docs/manual/CoreTasks/subant.html Wed Sep 28 11:38:27 2005
@@ -271,6 +271,24 @@
       <tr><td>&nbsp;</td></tr>
       <tr><td bgcolor="#828DA6">
         <font color="#ffffff" face="arial,helvetica.sanserif" size="-1">
+          <strong>any filesystem based <a href="../CoreTypes/resources.html#collection">resource
collection</a></strong></font>
+      </td></tr>
+      <tr><td><blockquote>
+        This includes <code>&lt;fileset&gt;</code>,
+        <code>&lt;dirset&gt;</code> and <code>&lt;filelist&gt;</code>
+        which are the nested resource collections supported prior
+        to Ant 1.7.
+ <!-- Ignore -->
+ <!-- Ignore -->
+
+      </blockquote></td></tr>
+    </table>
+    <!-- End Element -->
+    <!-- Start Element -->
+    <table border="0" cellspacing="0" cellpadding="2" width="100%">
+      <tr><td>&nbsp;</td></tr>
+      <tr><td bgcolor="#828DA6">
+        <font color="#ffffff" face="arial,helvetica.sanserif" size="-1">
           <strong>dirset</strong> (org.apache.tools.ant.types.DirSet)</font>
       </td></tr>
       <tr><td><blockquote>

Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/SubAnt.java
URL: http://svn.apache.org/viewcvs/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/SubAnt.java?rev=292245&r1=292244&r2=292245&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/SubAnt.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/SubAnt.java Wed Sep 28 11:38:27
2005
@@ -32,6 +32,7 @@
 import org.apache.tools.ant.types.FileList;
 import org.apache.tools.ant.types.PropertySet;
 import org.apache.tools.ant.types.Reference;
+import org.apache.tools.ant.types.ResourceCollection;
 
 
 /**
@@ -419,7 +420,7 @@
      * @param  set the directory set to add.
      */
     public void addDirset(DirSet set) {
-        getBuildpath().addDirset(set);
+        add(set);
     }
 
     /**
@@ -432,7 +433,7 @@
      * @param  set the file set to add.
      */
     public void addFileset(FileSet set) {
-        getBuildpath().addFileset(set);
+        add(set);
     }
 
     /**
@@ -444,7 +445,17 @@
      * @param  list the file list to add.
      */
     public void addFilelist(FileList list) {
-        getBuildpath().addFilelist(list);
+        add(list);
+    }
+
+    /**
+     * Adds a resource collection to the implicit build path.
+     *
+     * @param  rc the resource collection to add.
+     * @since Ant 1.7
+     */
+    public void add(ResourceCollection rc) {
+        getBuildpath().add(rc);
     }
 
     /**



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message