Skip to content

Commit

Permalink
see #10512 - compatibility with groovy 1.8.6
Browse files Browse the repository at this point in the history
git-svn-id: http://josm.openstreetmap.de/svn/trunk@8275 0c6e7542-c601-0410-84e7-c038aed88b3b
  • Loading branch information
bastiK authored and bastiK committed Apr 26, 2015
1 parent 7fb06ed commit ce68332
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion taginfoextract.groovy
Expand Up @@ -8,6 +8,9 @@
* groovy -cp dist/josm-custom.jar taginfoextract.groovy -t presets
*/
import java.awt.image.BufferedImage
import java.nio.file.Files
import java.nio.file.FileSystems
import java.nio.file.Path

import javax.imageio.ImageIO

Expand Down Expand Up @@ -322,7 +325,8 @@ class taginfoextract {
Main.initApplicationPreferences()
Main.pref.enableSaveOnPut(false)
Main.setProjection(Projections.getProjectionByCode("EPSG:3857"))
System.setProperty("josm.home", File.createTempDir().toString());
Path tmpdir = Files.createTempDirectory(FileSystems.getDefault().getPath(base_dir), "pref")
System.setProperty("josm.home", tmpdir.toString())

josm_svn_revision = Version.getInstance().getVersion()
assert josm_svn_revision != Version.JOSM_UNKNOWN_VERSION
Expand Down

0 comments on commit ce68332

Please sign in to comment.