Changeset 33744 in osm for applications/editors/josm/plugins/ElevationProfile/test/unit/org
- Timestamp:
- 2017-10-30T17:50:22+01:00 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/ElevationProfile/test/unit/org/openstreetmap/josm/plugins/elevation/tests/HgtReaderTest.java
r32893 r33744 18 18 import org.openstreetmap.josm.data.coor.LatLon; 19 19 import org.openstreetmap.josm.plugins.elevation.HgtReader; 20 import org.openstreetmap.josm.spi.preferences.Config; 20 21 import org.openstreetmap.josm.testutils.JOSMTestRules; 21 22 … … 33 34 // Install SRTM files to plugin directory 34 35 try (DirectoryStream<Path> stream = Files.newDirectoryStream(Paths.get(TestUtils.getTestDataRoot()), "*.hgt")) { 35 Path dir = Paths.get(System.getProperty("josm.home")).resolve("elevation"); 36 Path dir = Config.getDirs().getUserDataDirectory(true).toPath().resolve("elevation"); 37 36 38 if (!Files.exists(dir)) { 37 39 Files.createDirectory(dir);
Note:
See TracChangeset
for help on using the changeset viewer.