Ignore:
Timestamp:
2015-12-27T15:12:22+01:00 (9 years ago)
Author:
donvip
Message:

[josm_commandline] update to JOSM 9170

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

Legend:

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

    r30810 r31869  
    44    <property name="commit.message" value="JOSM/CommandLine: fix exception after JOSM update"/>
    55    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    6     <property name="plugin.main.version" value="7687"/>
     6    <property name="plugin.main.version" value="9170"/>
    77
    88    <!-- Configure these properties (replace "..." accordingly).
  • applications/editors/josm/plugins/CommandLine/src/CommandLine/CommandLine.java

    r31665 r31869  
    7272import org.openstreetmap.josm.plugins.Plugin;
    7373import org.openstreetmap.josm.plugins.PluginInformation;
     74import org.openstreetmap.josm.tools.HttpClient;
    7475import org.openstreetmap.josm.tools.SubclassFilteredCollection;
    7576import org.openstreetmap.josm.tools.Utils;
     
    278279                String url = Main.pref.get("commandline.default.commands.url",
    279280                                "https://github.com/Foxhind/JOSM-CommandLine-commands/archive/master.zip");
    280                 try (ZipInputStream zis = new ZipInputStream(Utils.openURL(new URL(url)), StandardCharsets.UTF_8)) {
     281                try (ZipInputStream zis = new ZipInputStream(HttpClient.create(new URL(url)).connect().getContent(), StandardCharsets.UTF_8)) {
    281282                        File dir = new File(getPluginDir());
    282283                        if (!dir.exists()) {
Note: See TracChangeset for help on using the changeset viewer.