Changeset 15485 in josm for trunk/src/org/openstreetmap
- Timestamp:
- 2019-10-29T23:14:31+01:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/validation/OsmValidator.java
r15460 r15485 176 176 */ 177 177 public static void initialize() { 178 checkValidatorDir();179 178 initializeGridDetail(); 180 179 loadIgnoredErrors(); … … 193 192 Logging.log(Logging.LEVEL_ERROR, null, e); 194 193 return dir.getPath(); 195 }196 }197 198 /**199 * Check if validator directory exists (store ignored errors file)200 */201 private static void checkValidatorDir() {202 File pathDir = new File(getValidatorDir());203 try {204 if (!pathDir.exists()) {205 Utils.mkDirs(pathDir);206 }207 } catch (SecurityException e) {208 Logging.log(Logging.LEVEL_ERROR, "Unable to check validator directory", e);209 194 } 210 195 }
Note:
See TracChangeset
for help on using the changeset viewer.