ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r359225 - /ant/core/trunk/src/main/org/apache/tools/ant/types/resources/BaseResourceCollectionContainer.java
Date Tue, 27 Dec 2005 16:07:26 GMT
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: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message