From c27454c76292b5f0cd2dda138a50cdf690fda73e Mon Sep 17 00:00:00 2001 From: George Bateman Date: Thu, 2 Jul 2015 19:08:01 +0100 Subject: [PATCH] Fix #2760: allow exports to other platforms again. Just a reversal of c600540. --- java/src/processing/mode/java/Commander.java | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/java/src/processing/mode/java/Commander.java b/java/src/processing/mode/java/Commander.java index e6dec9276..4212f0161 100644 --- a/java/src/processing/mode/java/Commander.java +++ b/java/src/processing/mode/java/Commander.java @@ -138,13 +138,13 @@ public class Commander implements RunnerListener { embedJava = false; } else if (arg.startsWith(platformArg)) { - complainAndQuit("The --platform option has been removed from Processing 2.1.", false); -// String platformStr = arg.substring(platformArg.length()); -// platform = Base.getPlatformIndex(platformStr); -// if (platform == -1) { -// complainAndQuit(platformStr + " should instead be " + -// "'windows', 'macosx', or 'linux'.", true); -// } +// complainAndQuit("The --platform option has been removed from Processing 2.1.", false); + String platformStr = arg.substring(platformArg.length()); + platform = Base.getPlatformIndex(platformStr); + if (platform == -1) { + complainAndQuit(platformStr + " should instead be " + + "'windows', 'macosx', or 'linux'.", true); + } } else if (arg.startsWith(bitsArg)) { complainAndQuit("The --bits option has been removed from Processing 2.1.", false); @@ -373,8 +373,8 @@ public class Commander implements RunnerListener { out.println(); out.println("--export Export an application."); out.println("--no-java Do not embed Java. Use at your own risk!"); -// out.println("--platform Specify the platform (export to application only)."); -// out.println(" Should be one of 'windows', 'macosx', or 'linux'."); + out.println("--platform Specify the platform (export to application only)."); + out.println(" Should be one of 'windows', 'macosx', or 'linux'."); // out.println("--bits Must be specified if libraries are used that are"); // out.println(" 32- or 64-bit specific such as the OpenGL library."); // out.println(" Otherwise specify 0 or leave it out.");