Author: mbenson
Date: Tue Dec 27 08:07:24 2005
New Revision: 359225

URL: http://svn.apache.org/viewcvs?rev=359225&view=rev
Log:
add clear()

Modified:
    
ant/core/trunk/src/main/org/apache/tools/ant/types/resources/BaseResourceCollectionContainer.java

Modified: 
ant/core/trunk/src/main/org/apache/tools/ant/types/resources/BaseResourceCollectionContainer.java
URL: 
http://svn.apache.org/viewcvs/ant/core/trunk/src/main/org/apache/tools/ant/types/resources/BaseResourceCollectionContainer.java?rev=359225&r1=359224&r2=359225&view=diff
==============================================================================
--- 
ant/core/trunk/src/main/org/apache/tools/ant/types/resources/BaseResourceCollectionContainer.java
 (original)
+++ 
ant/core/trunk/src/main/org/apache/tools/ant/types/resources/BaseResourceCollectionContainer.java
 Tue Dec 27 08:07:24 2005
@@ -56,6 +56,20 @@
     }
 
     /**
+     * Clear the container.
+     * @throws BuildException on error.
+     */
+    public synchronized void clear() throws BuildException {
+        if (isReference()) {
+            throw noChildrenAllowed();
+        }
+        rc.clear();
+        FailFast.invalidate(this);
+        coll = null;
+        setChecked(false);
+    }
+
+    /**
      * Add a ResourceCollection to the container.
      * @param c the ResourceCollection to add.
      * @throws BuildException on error.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to