Skip to content

Commit

Permalink
update to JOSM 13007
Browse files Browse the repository at this point in the history
  • Loading branch information
don-vip committed Nov 25, 2017
1 parent eb735b8 commit 75d5256
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion canvec_helper/build.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<!-- enter the SVN commit message -->
<property name="commit.message" value="JOSM/Canvec_helper: fixed a crash caused by osm directory being renamed to OSM"/>
<!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
<property name="plugin.main.version" value="12671"/>
<property name="plugin.main.version" value="13007"/>

<!-- Configure these properties (replace "..." accordingly).
See https://josm.openstreetmap.de/wiki/DevelopersGuide/DevelopingPlugins
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,7 @@ public String getDownloadUrl() {
}

private ZipFile openZip() throws IOException {
File downloadPath = new File(layer.plugin.getPluginDir() + File.separator);
if (!downloadPath.mkdir() && Logging.isDebugEnabled()) {
Logging.debug("Unable to create directory: "+downloadPath);
}
File downloadPath = layer.plugin.getPluginDirs().getUserDataDirectory(true);
CachedFile tileZip = new CachedFile(getDownloadUrl()).setDestDir(downloadPath.toString());
return new ZipFile(tileZip.getFile());
}
Expand Down

0 comments on commit 75d5256

Please sign in to comment.