Ticket #2706: bugfix-cache-core.patch

File bugfix-cache-core.patch, 682 bytes (added by bilbo, 15 years ago)

patch to fix the problem (cache paths are not settable in settigns)

  • src/org/openstreetmap/josm/io/CacheFiles.java

     
    5757       String pref = Main.pref.getPluginsDirFile().getPath();
    5858       boolean dir_writeable;
    5959       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);
    6162       try {
    6263           this.dir.mkdirs();
    6364           dir_writeable = true;