Changeset 20481 in osm for applications/editors


Ignore:
Timestamp:
2010-03-14T21:15:44+01:00 (14 years ago)
Author:
pieren
Message:

Fixed the path separator

File:
1 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/cadastre-fr/src/cadastre_fr/CadastrePlugin.java

    r20412 r20481  
    99import java.awt.event.ActionListener;
    1010import java.awt.event.KeyEvent;
     11import java.io.File;
    1112
    1213import javax.swing.JCheckBoxMenuItem;
     
    149150        System.out.println("Pluging cadastre-fr v"+VERSION+" started...");
    150151        if (Main.pref.get("cadastrewms.cacheDir").equals(""))
    151             cacheDir = Main.pref.getPreferencesDir()+"plugins/cadastrewms/";
     152            cacheDir = Main.pref.getPreferencesDir()+"plugins"+File.pathSeparatorChar+"cadastrewms"+File.pathSeparatorChar;
    152153        else {
    153154            cacheDir = Main.pref.get("cadastrewms.cacheDir");
    154             if (cacheDir.charAt(cacheDir.length()-1) != '\\' )
    155                 cacheDir += '\\';
     155            if (cacheDir.charAt(cacheDir.length()-1) != File.pathSeparatorChar )
     156                cacheDir += File.pathSeparatorChar;
    156157        }
    157158        System.out.println("current cache directory: "+cacheDir);
Note: See TracChangeset for help on using the changeset viewer.