Changeset 4818 in josm


Ignore:
Timestamp:
2012-01-18T20:43:48+01:00 (8 years ago)
Author:
bastiK
Message:

cache folder: 2 more

Location:
trunk/src/org/openstreetmap/josm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/CacheFiles.java

    r3083 r4818  
    5959
    6060    public CacheFiles(String ident, boolean isPlugin) {
    61         String pref = isPlugin ? Main.pref.getPluginsDirectory().getPath() : Main.pref.getPreferencesDir();
     61        String pref = isPlugin ?
     62                Main.pref.getPluginsDirectory().getPath() + File.separator + "cache" :
     63                Main.pref.getCacheDirectory().getPath();
    6264
    6365        boolean dir_writeable;
    6466        this.ident = ident;
    65         String cacheDir = Main.pref.get("cache." + ident + "." + "path", pref + "/" + ident + "/cache/");
     67        String cacheDir = Main.pref.get("cache." + ident + "." + "path", pref + File.separator + ident + File.separator);
    6668        this.dir = new File(cacheDir);
    6769        try {
  • trunk/src/org/openstreetmap/josm/tools/ImageProvider.java

    r4721 r4818  
    449449        try {
    450450            MirroredInputStream is = new MirroredInputStream(url,
    451                     new File(Main.pref.getPreferencesDir(), "images").toString());
     451                    new File(Main.pref.getCacheDirectory(), "images").getPath());
    452452            switch (type) {
    453453                case SVG:
Note: See TracChangeset for help on using the changeset viewer.