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