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 54
54
import processing .app .legacy .PApplet ;
55
55
import processing .app .packages .LegacyUserLibrary ;
56
56
import processing .app .packages .UserLibrary ;
57
- import processing .app .tools .ArgumentsWithSpaceAwareCommandLine ;
57
+ import processing .app .tools .DoubleQuotedArgumentsOnWindowsCommandLine ;
58
58
59
59
public class Compiler implements MessageConsumer {
60
60
@@ -723,7 +723,7 @@ public void stop() {
723
723
}
724
724
});
725
725
726
- CommandLine commandLine = new ArgumentsWithSpaceAwareCommandLine (command [0 ]);
726
+ CommandLine commandLine = new DoubleQuotedArgumentsOnWindowsCommandLine (command [0 ]);
727
727
for (int i = 1 ; i < command .length ; i ++) {
728
728
commandLine .addArgument (command [i ], false );
729
729
}
Original file line number Diff line number Diff line change 7
7
8
8
import java .io .File ;
9
9
10
- public class ArgumentsWithSpaceAwareCommandLine extends CommandLine {
10
+ public class DoubleQuotedArgumentsOnWindowsCommandLine extends CommandLine {
11
11
12
- public ArgumentsWithSpaceAwareCommandLine (String executable ) {
12
+ public DoubleQuotedArgumentsOnWindowsCommandLine (String executable ) {
13
13
super (executable );
14
14
}
15
15
16
- public ArgumentsWithSpaceAwareCommandLine (File executable ) {
16
+ public DoubleQuotedArgumentsOnWindowsCommandLine (File executable ) {
17
17
super (executable );
18
18
}
19
19
20
- public ArgumentsWithSpaceAwareCommandLine (CommandLine other ) {
20
+ public DoubleQuotedArgumentsOnWindowsCommandLine (CommandLine other ) {
21
21
super (other );
22
22
}
23
23
24
24
@ Override
25
25
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 ("\" " , "\\ \ " " );
28
28
}
29
29
30
30
return super .addArgument (argument , handleQuoting );
You can’t perform that action at this time.
0 commit comments