File tree 1 file changed +5
-2
lines changed
arduino-core/src/processing/app/tools
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
package processing .app .tools ;
2
2
3
3
import org .apache .commons .exec .CommandLine ;
4
- import processing .app .BaseNoGui ;
5
- import processing .app .Platform ;
6
4
import processing .app .helpers .OSUtils ;
7
5
8
6
import java .io .File ;
@@ -23,6 +21,11 @@ public DoubleQuotedArgumentsOnWindowsCommandLine(CommandLine other) {
23
21
24
22
@ Override
25
23
public CommandLine addArgument (String argument , boolean handleQuoting ) {
24
+ // Brutal hack to workaround windows command line parsing.
25
+ // http://stackoverflow.com/questions/5969724/java-runtime-exec-fails-to-escape-characters-properly
26
+ // http://msdn.microsoft.com/en-us/library/a1y7w461.aspx
27
+ // http://bugs.sun.com/view_bug.do?bug_id=6468220
28
+ // http://bugs.sun.com/view_bug.do?bug_id=6518827
26
29
if (argument .contains ("\" " ) && OSUtils .isWindows ()) {
27
30
argument = argument .replace ("\" " , "\\ \" " );
28
31
}
You can’t perform that action at this time.
0 commit comments