Changeset 249 in josm for src/org/openstreetmap


Ignore:
Timestamp:
2007-05-29T23:21:07+02:00 (17 years ago)
Author:
framm
Message:
  • fixed environment and property variables (JOSM_RESOURCES not JOSM_RESSOURCES, josm.resources not josm.ressources) (reported by Christof Dallermassl); enabled auto-suffixing these with /
File:
1 edited

Legend:

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

    r243 r249  
    7373        locations.add(Main.pref.getPreferencesDir());
    7474        String s;
    75         if ((s = System.getenv("JOSM_RESSOURCES")) != null) {
     75        if ((s = System.getenv("JOSM_RESOURCES")) != null) {
    7676                if (!s.endsWith("/") && !s.endsWith("\\"))
    7777                        s = s + "/";
    78                 locations.add(System.getenv("JOSM_RESSOURCES"));
     78                locations.add(s);
    7979        }
    80         if ((s = System.getProperty("josm.ressources")) != null) {
     80        if ((s = System.getProperty("josm.resources")) != null) {
    8181                if (!s.endsWith("/") && !s.endsWith("\\"))
    8282                        s = s + "/";
    83                 locations.add(System.getProperty("josm.ressources"));
     83                locations.add(s);
    8484        }
    8585        String appdata = System.getenv("APPDATA");
Note: See TracChangeset for help on using the changeset viewer.