- Timestamp:
- 2006-10-08T18:17:55+02:00 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/org/openstreetmap/josm/plugins/PluginInformation.java
r153 r157 41 41 try { 42 42 ClassLoader loader = URLClassLoader.newInstance( 43 new URL[]{new URL( "file://"+file.getAbsolutePath())},43 new URL[]{new URL(getURLString())}, 44 44 getClass().getClassLoader()); 45 45 Object plugin = Class.forName(className, true, loader).newInstance(); … … 49 49 } 50 50 } 51 52 private String getURLString() { 53 if (System.getProperty("os.name").startsWith("Windows")) 54 return "file:/"+file.getAbsolutePath(); 55 return "file://"+file.getAbsolutePath(); 56 } 51 57 }
Note:
See TracChangeset
for help on using the changeset viewer.