Changeset 31869 in osm for applications/editors/josm/plugins
- Timestamp:
- 2015-12-27T15:12:22+01:00 (9 years ago)
- Location:
- applications/editors/josm/plugins/CommandLine
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/CommandLine/build.xml
r30810 r31869 4 4 <property name="commit.message" value="JOSM/CommandLine: fix exception after JOSM update"/> 5 5 <!-- 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"/> 7 7 8 8 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/CommandLine/src/CommandLine/CommandLine.java
r31665 r31869 72 72 import org.openstreetmap.josm.plugins.Plugin; 73 73 import org.openstreetmap.josm.plugins.PluginInformation; 74 import org.openstreetmap.josm.tools.HttpClient; 74 75 import org.openstreetmap.josm.tools.SubclassFilteredCollection; 75 76 import org.openstreetmap.josm.tools.Utils; … … 278 279 String url = Main.pref.get("commandline.default.commands.url", 279 280 "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)) { 281 282 File dir = new File(getPluginDir()); 282 283 if (!dir.exists()) {
Note:
See TracChangeset
for help on using the changeset viewer.