Changeset 33889 in osm for applications
- Timestamp:
- 2017-11-25T01:29:53+01:00 (7 years ago)
- Location:
- applications/editors/josm/plugins/ext_tools
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
applications/editors/josm/plugins/ext_tools/build.xml
r33698 r33889 5 5 <property name="commit.message" value="ExtTools: help shortcut paser, rebuild"/> 6 6 <!-- enter the *lowest* JOSM version this plugin is currently compatible with --> 7 <property name="plugin.main.version" value="1 2726"/>7 <property name="plugin.main.version" value="13007"/> 8 8 9 9 <!-- Configure these properties (replace "..." accordingly). -
applications/editors/josm/plugins/ext_tools/src/ext_tools/ExtTool.java
r33698 r33889 5 5 import java.awt.Cursor; 6 6 import java.awt.GridBagLayout; 7 import java.io.File;8 7 import java.io.IOException; 9 8 import java.io.InputStream; 9 import java.nio.charset.StandardCharsets; 10 10 import java.util.ArrayList; 11 11 import java.util.Arrays; … … 187 187 ProcessBuilder builder; 188 188 builder = new ProcessBuilder(cmdParams); 189 builder.directory( new File(ExtToolsPlugin.plugin.getPluginDir()));189 builder.directory(ExtToolsPlugin.plugin.getPluginDirs().getUserDataDirectory(false)); 190 190 191 191 final StringBuilder debugstr = new StringBuilder(); … … 219 219 while ((len = errStream.read(buffer)) > 0) { 220 220 synchronized (debugstr) { 221 debugstr.append(new String(buffer, 0, len ));221 debugstr.append(new String(buffer, 0, len, StandardCharsets.UTF_8)); 222 222 } 223 223 System.err.write(buffer, 0, len); -
applications/editors/josm/plugins/ext_tools/src/ext_tools/ExtToolsPlugin.java
r21930 r33889 21 21 plugin = this; 22 22 23 File plugindir = new File(this.getPluginDir()); 24 if (!plugindir.exists()) 25 plugindir.mkdirs(); 23 File plugindir = getPluginDirs().getUserDataDirectory(true); 26 24 27 25 myTools = new ToolsInformation(new File(plugindir, "tools.cfg").getAbsolutePath());
Note:
See TracChangeset
for help on using the changeset viewer.