You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by hl...@apache.org on 2003/10/21 17:13:38 UTC
cvs commit: jakarta-commons-sandbox/hivemind/framework/src/java/org/apache/commons/hivemind/ant ManifestClassPath.java
hlship 2003/10/21 08:13:38
Modified: hivemind/framework/src/java/org/apache/commons/hivemind/ant
ManifestClassPath.java
Log:
Fix bug in ManifestClassPath when the directory was also an entry on the classpath.
Revision Changes Path
1.3 +8 -1 jakarta-commons-sandbox/hivemind/framework/src/java/org/apache/commons/hivemind/ant/ManifestClassPath.java
Index: ManifestClassPath.java
===================================================================
RCS file: /home/cvs/jakarta-commons-sandbox/hivemind/framework/src/java/org/apache/commons/hivemind/ant/ManifestClassPath.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- ManifestClassPath.java 12 Oct 2003 10:13:52 -0000 1.2
+++ ManifestClassPath.java 21 Oct 2003 15:13:38 -0000 1.3
@@ -129,6 +129,13 @@
if (!path.startsWith(stripPrefix))
continue;
+ // Sometimes, people put the prefix directory in as a
+ // classpath entry; we ignore it (otherwise
+ // we get a IndexOutOfBoundsException
+
+ if (path.length() == stripPrefix.length())
+ continue;
+
if (needSep)
buffer.append(' ');
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org