- Timestamp:
- 2012-01-20T20:26:46+01:00 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/imagery/WmsCache.java
r4813 r4829 53 53 //TODO Do loading from partial cache and downloading at the same time, don't wait for partical cache to load 54 54 55 private static final StringProperty PROP_CACHE_PATH = new StringProperty("imagery.wms-cache.path", new File(Main.pref.getCacheDirectory(), "wms").getPath());55 private static final StringProperty PROP_CACHE_PATH = new StringProperty("imagery.wms-cache.path", "wms"); 56 56 private static final String INDEX_FILENAME = "index.xml"; 57 57 private static final String LAYERS_INDEX_FILENAME = "layers.properties"; … … 98 98 protected String cacheDirPath() { 99 99 String cPath = PROP_CACHE_PATH.get(); 100 if (!(cPath.startsWith("/") || cPath.startsWith(":/",1))) { 101 //Not an absolute path 102 cPath = Main.pref.getCacheDirectory() + cPath; 100 if (!(new File(cPath).isAbsolute())) { 101 cPath = Main.pref.getCacheDirectory() + File.separator + cPath; 103 102 } 104 103 return cPath;
Note:
See TracChangeset
for help on using the changeset viewer.