Changeset 33908 in osm for applications


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

update to JOSM 13007

Location:
applications/editors/josm/plugins/tracer2
Files:
3 edited

Legend:

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

    r33700 r33908  
    55    <property name="commit.message" value="see #josm11090"/>
    66    <!-- enter the *lowest* JOSM version this plugin is currently compatible with -->
    7     <property name="plugin.main.version" value="12859"/>
     7    <property name="plugin.main.version" value="13007"/>
    88
    99    <!-- Configure these properties (replace "..." accordingly).
  • applications/editors/josm/plugins/tracer2/src/org/openstreetmap/josm/plugins/tracer2/TracerPlugin.java

    r33700 r33908  
    2424        s_oPlugin = this;
    2525
    26         File plugindir = new File(this.getPluginDir());
    27         if (!plugindir.exists()) {
    28             plugindir.mkdirs();
    29         }
     26        File plugindir = getPluginDirs().getUserDataDirectory(true);
    3027
    3128        m_oParamList = new ServerParamList(new File(plugindir, "serverParam.cfg").getAbsolutePath());
  • applications/editors/josm/plugins/tracer2/src/org/openstreetmap/josm/plugins/tracer2/preferences/ServerParamList.java

    r33700 r33908  
    88import java.io.InputStreamReader;
    99import java.io.OutputStreamWriter;
     10import java.nio.charset.StandardCharsets;
    1011import java.util.ArrayList;
    1112import java.util.List;
     
    4647        try (
    4748                InputStream oIP = getClass().getResourceAsStream("/resources/serverParam.cfg");
    48                 BufferedReader oReader = new BufferedReader(new InputStreamReader(oIP));
     49                BufferedReader oReader = new BufferedReader(new InputStreamReader(oIP, StandardCharsets.UTF_8));
    4950                ) {
    5051            StringBuilder oBuilder = new StringBuilder();
Note: See TracChangeset for help on using the changeset viewer.