You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by mb...@apache.org on 2005/12/27 17:07:26 UTC
svn commit: r359225 -
/ant/core/trunk/src/main/org/apache/tools/ant/types/resources/BaseResourceCollectionContainer.java
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