Changeset 33906 in osm


Ignore:
Timestamp:
2017-11-25T02:02:56+01:00 (7 years ago)
Author:
donvip
Message:

update to JOSM 13007

Location:
applications/editors/josm/plugins/canvec_helper
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/canvec_helper/build.xml

    r33557 r33906  
    44    <property name="commit.message" value="JOSM/Canvec_helper: fixed a crash caused by osm directory being renamed to OSM"/>
    55    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    6     <property name="plugin.main.version" value="12671"/>
     6    <property name="plugin.main.version" value="13007"/>
    77   
    88    <!-- Configure these properties (replace "..." accordingly).
  • applications/editors/josm/plugins/canvec_helper/src/org/openstreetmap/josm/plugins/canvec_helper/CanVecTile.java

    r33558 r33906  
    191191
    192192    private ZipFile openZip() throws IOException {
    193         File downloadPath = new File(layer.plugin.getPluginDir() + File.separator);
    194         if (!downloadPath.mkdir() && Logging.isDebugEnabled()) {
    195             Logging.debug("Unable to create directory: "+downloadPath);
    196         }
     193        File downloadPath = layer.plugin.getPluginDirs().getUserDataDirectory(true);
    197194        CachedFile tileZip = new CachedFile(getDownloadUrl()).setDestDir(downloadPath.toString());
    198195        return new ZipFile(tileZip.getFile());
Note: See TracChangeset for help on using the changeset viewer.