Changeset 33908 in osm for applications
- Timestamp:
- 2017-11-25T02:05:51+01:00 (7 years ago)
- Location:
- applications/editors/josm/plugins/tracer2
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/tracer2/build.xml
r33700 r33908 5 5 <property name="commit.message" value="see #josm11090"/> 6 6 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 7 <property name="plugin.main.version" value="1 2859"/>7 <property name="plugin.main.version" value="13007"/> 8 8 9 9 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/tracer2/src/org/openstreetmap/josm/plugins/tracer2/TracerPlugin.java
r33700 r33908 24 24 s_oPlugin = this; 25 25 26 File plugindir = new File(this.getPluginDir()); 27 if (!plugindir.exists()) { 28 plugindir.mkdirs(); 29 } 26 File plugindir = getPluginDirs().getUserDataDirectory(true); 30 27 31 28 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 8 8 import java.io.InputStreamReader; 9 9 import java.io.OutputStreamWriter; 10 import java.nio.charset.StandardCharsets; 10 11 import java.util.ArrayList; 11 12 import java.util.List; … … 46 47 try ( 47 48 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)); 49 50 ) { 50 51 StringBuilder oBuilder = new StringBuilder();
Note:
See TracChangeset
for help on using the changeset viewer.