Changeset 169 in josm for src/org/openstreetmap/josm/plugins/PluginInformation.java
- Timestamp:
- 2006-11-28T19:58:41+01:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/plugins/PluginInformation.java
r167 r169 48 48 String classPath = attr.getValue("Class-Path"); 49 49 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("^.\\:")) 52 62 s = file.getParent() + File.separator + s; 53 63 libraries.add(new URL(getURLString(s)));
Note:
See TracChangeset
for help on using the changeset viewer.