|
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 | 58 |
|
58 | 59 | public class Compiler implements MessageConsumer {
|
59 | 60 |
|
@@ -319,10 +320,10 @@ protected void size(PreferencesMap prefs) throws RunnerException {
|
319 | 320 | if (maxDataSize > 0) {
|
320 | 321 | System.out
|
321 | 322 | .println(I18n
|
322 |
| - .format( |
323 |
| - _("Global variables use {0} bytes ({2}%%) of dynamic memory, leaving {3} bytes for local variables. Maximum is {1} bytes."), |
324 |
| - dataSize, maxDataSize, dataSize * 100 / maxDataSize, |
325 |
| - maxDataSize - dataSize)); |
| 323 | + .format( |
| 324 | + _("Global variables use {0} bytes ({2}%%) of dynamic memory, leaving {3} bytes for local variables. Maximum is {1} bytes."), |
| 325 | + dataSize, maxDataSize, dataSize * 100 / maxDataSize, |
| 326 | + maxDataSize - dataSize)); |
326 | 327 | } else {
|
327 | 328 | System.out.println(I18n
|
328 | 329 | .format(_("Global variables use {0} bytes of dynamic memory."), dataSize));
|
@@ -736,9 +737,9 @@ public void stop() {
|
736 | 737 | }
|
737 | 738 | });
|
738 | 739 |
|
739 |
| - CommandLine commandLine = new CommandLine(command[0]); |
| 740 | + CommandLine commandLine = new ArgumentsWithSpaceAwareCommandLine(command[0]); |
740 | 741 | for (int i = 1; i < command.length; i++) {
|
741 |
| - commandLine.addArgument(command[i]); |
| 742 | + commandLine.addArgument(command[i], false); |
742 | 743 | }
|
743 | 744 |
|
744 | 745 | int result;
|
|
0 commit comments