Ignore:
Timestamp:
17.01.2012 14:09:10 (4 months ago)
Author:
bastiK
Message:

move cache files to ~/.josm/cache (only CacheCustomContent)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/data/Preferences.java

    r4770 r4810  
    268268    public File getPluginsDirectory() { 
    269269        return new File(getPreferencesDirFile(), "plugins"); 
     270    } 
     271     
     272    public File getCacheDirectory() { 
     273        File cache = new File(getPreferencesDirFile(), "cache"); 
     274        if (!cache.exists() && !cache.mkdirs()) { 
     275            System.err.println(tr("Warning: Failed to create missing cache directory: {0}", cache.getAbsoluteFile())); 
     276            JOptionPane.showMessageDialog( 
     277                    Main.parent, 
     278                    tr("<html>Failed to create missing cache directory: {0}</html>",cache.getAbsoluteFile()), 
     279                    tr("Error"), 
     280                    JOptionPane.ERROR_MESSAGE 
     281            ); 
     282        } 
     283        return cache; 
    270284    } 
    271285 
Note: See TracChangeset for help on using the changeset viewer.