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 2008/09/25 14:34:29 UTC
svn commit: r698947 -
/ant/core/trunk/src/main/org/apache/tools/ant/AntClassLoader.java
Author: bodewig
Date: Thu Sep 25 05:34:28 2008
New Revision: 698947
URL: http://svn.apache.org/viewvc?rev=698947&view=rev
Log:
don't add the same file more than once. PR 45848.
Modified:
ant/core/trunk/src/main/org/apache/tools/ant/AntClassLoader.java
Modified: ant/core/trunk/src/main/org/apache/tools/ant/AntClassLoader.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/AntClassLoader.java?rev=698947&r1=698946&r2=698947&view=diff
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/AntClassLoader.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/AntClassLoader.java Thu Sep 25 05:34:28 2008
@@ -471,7 +471,9 @@
* @throws IOException if data needed from the file cannot be read.
*/
protected void addPathFile(File pathComponent) throws IOException {
- pathComponents.addElement(pathComponent);
+ if (!pathComponents.contains(pathComponent)) {
+ pathComponents.addElement(pathComponent);
+ }
if (pathComponent.isDirectory()) {
return;
}