Changeset 8275 in josm


Ignore:
Timestamp:
2015-04-26T13:01:17+02:00 (10 years ago)
Author:
bastiK
Message:

see #10512 - compatibility with groovy 1.8.6

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/taginfoextract.groovy

    r8274 r8275  
    99 */
    1010import java.awt.image.BufferedImage
     11import java.nio.file.Files
     12import java.nio.file.FileSystems
     13import java.nio.file.Path
    1114
    1215import javax.imageio.ImageIO
     
    323326        Main.pref.enableSaveOnPut(false)
    324327        Main.setProjection(Projections.getProjectionByCode("EPSG:3857"))
    325         System.setProperty("josm.home", File.createTempDir().toString());
     328        Path tmpdir = Files.createTempDirectory(FileSystems.getDefault().getPath(base_dir), "pref")
     329        System.setProperty("josm.home", tmpdir.toString())
    326330
    327331        josm_svn_revision = Version.getInstance().getVersion()
Note: See TracChangeset for help on using the changeset viewer.