Class-Path elements are separated by spaces emul
authorJaroslav Tulach <jaroslav.tulach@apidesign.org>
Wed, 06 Feb 2013 17:22:14 +0100
branchemul
changeset 6908929a6558ae4
parent 687 a9e506a27b55
child 691 10194cb7ffc2
Class-Path elements are separated by spaces
vm/src/main/java/org/apidesign/vm4brwsr/Zips.java
     1.1 --- a/vm/src/main/java/org/apidesign/vm4brwsr/Zips.java	Wed Feb 06 15:47:06 2013 +0100
     1.2 +++ b/vm/src/main/java/org/apidesign/vm4brwsr/Zips.java	Wed Feb 06 17:22:14 2013 +0100
     1.3 @@ -101,15 +101,16 @@
     1.4              if (cp == null) {
     1.5                  return;
     1.6              }
     1.7 +            cp = cp.trim();
     1.8              for (int p = 0; p < cp.length();) {
     1.9 -                int n = cp.indexOf(':', p);
    1.10 +                int n = cp.indexOf(' ', p);
    1.11                  if (n == -1) {
    1.12                      n = cp.length();
    1.13                  }
    1.14                  String el = cp.substring(p, n);
    1.15                  URL u = new URL(new URL(url), el);
    1.16                  classpath = addToArray(classpath, u.toString());
    1.17 -                p = n;
    1.18 +                p = n + 1;
    1.19              }
    1.20          }
    1.21      }