- Timestamp:
- 2015-07-11T12:38:23+02:00 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/io/CachedFile.java
r8596 r8597 215 215 url = new URL(name); 216 216 if ("file".equals(url.getProtocol())) { 217 System.out.println("file protocol");218 217 cacheFile = new File(name.substring("file:/".length() - 1)); 219 218 if (!cacheFile.exists()) { 220 219 cacheFile = new File(name.substring("file://".length() - 1)); 221 System.out.println(cacheFile.getPath()); 222 } 223 } else { 224 System.out.println(url.getProtocol() + " doesnt equal file"); 220 } 221 } else { 225 222 cacheFile = checkLocal(url); 226 223 } 227 System.out.println(cacheFile.getPath());228 224 } catch (MalformedURLException e) { 229 225 if (name.startsWith("resource://")) {
Note:
See TracChangeset
for help on using the changeset viewer.