Ignore:
Timestamp:
2006-11-28T19:58:41+01:00 (17 years ago)
Author:
imi
Message:
  • added "new empty map" action
  • added osm-server.version property (set the OSM server verion. For expert users only)
  • added first support for ongoing 0.4 server api
  • fixed Class-Path manifest attribute for plugins (" " is Seperator)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/org/openstreetmap/josm/plugins/PluginInformation.java

    r167 r169  
    4848                        String classPath = attr.getValue("Class-Path");
    4949                        if (classPath != null) {
    50                                 for (String s : classPath.split(classPath.contains(";") ? ";" : ":")) {
    51                                         if (!s.startsWith("/") && !s.startsWith("\\") && !s.matches("^.:"))
     50                                String[] cp = classPath.split(" ");
     51                                StringBuilder entry = new StringBuilder();
     52                                for (String s : cp) {
     53                                        entry.append(s);
     54                                        if (s.endsWith("\\")) {
     55                                                entry.setLength(entry.length()-1);
     56                                                entry.append("%20"); // append the split character " " as html-encode
     57                                                continue;
     58                                        }
     59                                        s = entry.toString();
     60                                        entry = new StringBuilder();
     61                                        if (!s.startsWith("/") && !s.startsWith("\\") && !s.matches("^.\\:"))
    5262                                                s = file.getParent() + File.separator + s;
    5363                                        libraries.add(new URL(getURLString(s)));
Note: See TracChangeset for help on using the changeset viewer.