File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed
arduino-core/src/processing/app Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 5454import processing .app .legacy .PApplet ;
5555import processing .app .packages .LegacyUserLibrary ;
5656import processing .app .packages .UserLibrary ;
57- import processing .app .tools .ArgumentsWithSpaceAwareCommandLine ;
57+ import processing .app .tools .DoubleQuotedArgumentsOnWindowsCommandLine ;
5858
5959public class Compiler implements MessageConsumer {
6060
@@ -723,7 +723,7 @@ public void stop() {
723723 }
724724 });
725725
726- CommandLine commandLine = new ArgumentsWithSpaceAwareCommandLine (command [0 ]);
726+ CommandLine commandLine = new DoubleQuotedArgumentsOnWindowsCommandLine (command [0 ]);
727727 for (int i = 1 ; i < command .length ; i ++) {
728728 commandLine .addArgument (command [i ], false );
729729 }
Original file line number Diff line number Diff line change 77
88import java .io .File ;
99
10- public class ArgumentsWithSpaceAwareCommandLine extends CommandLine {
10+ public class DoubleQuotedArgumentsOnWindowsCommandLine extends CommandLine {
1111
12- public ArgumentsWithSpaceAwareCommandLine (String executable ) {
12+ public DoubleQuotedArgumentsOnWindowsCommandLine (String executable ) {
1313 super (executable );
1414 }
1515
16- public ArgumentsWithSpaceAwareCommandLine (File executable ) {
16+ public DoubleQuotedArgumentsOnWindowsCommandLine (File executable ) {
1717 super (executable );
1818 }
1919
20- public ArgumentsWithSpaceAwareCommandLine (CommandLine other ) {
20+ public DoubleQuotedArgumentsOnWindowsCommandLine (CommandLine other ) {
2121 super (other );
2222 }
2323
2424 @ Override
2525 public CommandLine addArgument (String argument , boolean handleQuoting ) {
26- if (argument .contains (" " ) && OSUtils .isWindows ()) {
27- argument = argument .replaceAll ("\" " , "" ). replaceAll ( "'" , "" );
26+ if (argument .contains ("\" " ) && OSUtils .isWindows ()) {
27+ argument = argument .replace ("\" " , "\\ \ " " );
2828 }
2929
3030 return super .addArgument (argument , handleQuoting );
You can’t perform that action at this time.
0 commit comments