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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to