Ticket #2706: bugfix-cache-core.patch
File bugfix-cache-core.patch, 682 bytes (added by , 15 years ago) |
---|
-
src/org/openstreetmap/josm/io/CacheFiles.java
57 57 String pref = Main.pref.getPluginsDirFile().getPath(); 58 58 boolean dir_writeable; 59 59 this.ident = ident; 60 this.dir = new File(pref + "/" + ident + "/cache/"); 60 String cacheDir = Main.pref.get("cache." + ident + "." + "path", pref + "/" + ident + "/cache/"); 61 this.dir = new File(cacheDir); 61 62 try { 62 63 this.dir.mkdirs(); 63 64 dir_writeable = true;