Ticket #202: josmpatch.txt

File josmpatch.txt, 721 bytes (added by anonymous, 19 years ago)

patch against latest svn that fixes the problem

Line 
1Index: JOSM/src/org/openstreetmap/josm/plugins/PluginInformation.java
2===================================================================
3---JOSM/src/org/openstreetmap/josm/plugins/PluginInformation.java (revision 296)
4+++ JOSM/src/org/openstreetmap/josm/plugins/PluginInformation.java (working copy)
5@@ -110,7 +110,7 @@
6 author = null;
7 }
8 if (file != null)
9- libraries.add(0, new URL(getURLString(file.getAbsolutePath())));
10+ libraries.add(0, file.toURI().toURL());
11
12 if (jar != null)
13 jar.close();
14@@ -145,6 +145,7 @@
15 }
16 }
17
18+ @Deprecated
19 public static String getURLString(String fileName) {
20 if (System.getProperty("os.name").startsWith("Windows"))
21 return "file:/"+fileName;