mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-16 11:21:18 +03:00
Workaround for incorrect argument passing of Runtime.exec(args[]) method on Windows.
More info here: http://stackoverflow.com/questions/5969724/java-runtime-exec-fails-to-escape-characters-properly http://msdn.microsoft.com/en-us/library/a1y7w461.aspx http://bugs.sun.com/view_bug.do?bug_id=6468220 http://bugs.sun.com/view_bug.do?bug_id=6518827 Affects #1422
This commit is contained in:
@ -39,6 +39,7 @@ import processing.app.Preferences;
|
||||
import processing.app.Sketch;
|
||||
import processing.app.SketchCode;
|
||||
import processing.app.helpers.PreferencesMap;
|
||||
import processing.app.helpers.ProcessUtils;
|
||||
import processing.app.helpers.StringReplacer;
|
||||
import processing.app.helpers.filefilters.OnlyDirs;
|
||||
import processing.app.packages.Library;
|
||||
@ -343,9 +344,8 @@ public class Compiler implements MessageConsumer {
|
||||
secondErrorFound = false;
|
||||
|
||||
Process process;
|
||||
|
||||
try {
|
||||
process = Runtime.getRuntime().exec(command);
|
||||
process = ProcessUtils.exec(command);
|
||||
} catch (IOException e) {
|
||||
RunnerException re = new RunnerException(e.getMessage());
|
||||
re.hideStackTrace();
|
||||
|
Reference in New Issue
Block a user