diff options
-rw-r--r-- | bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java b/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java index 099686cdc..d8f85eb3e 100644 --- a/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java +++ b/bundles/org.eclipse.equinox.launcher/src/org/eclipse/equinox/launcher/Main.java @@ -138,8 +138,8 @@ public class Main { private static final String NAME = "-name"; //$NON-NLS-1$ private static final String LAUNCHER = "-launcher"; //$NON-NLS-1$ private static final String LIBRARY = "--launcher.library"; //$NON-NLS-1$ - private static final String APPEND_VMARGS = "--launcher.appendVmargs"; - private static final String OVERRIDE_VMARGS = "--launcher.overrideVmargs"; + private static final String APPEND_VMARGS = "--launcher.appendVmargs"; //$NON-NLS-1$ + private static final String OVERRIDE_VMARGS = "--launcher.overrideVmargs"; //$NON-NLS-1$ private static final String NL = "-nl"; //$NON-NLS-1$ private static final String ENDSPLASH = "-endsplash"; //$NON-NLS-1$ private static final String SPLASH_IMAGE = "splash.bmp"; //$NON-NLS-1$ @@ -1492,6 +1492,11 @@ public class Main { found = true; } + //just consume the --launcher.overrideVmargs and --launcher.appendVmargs + if (args[i - 1].equalsIgnoreCase(APPEND_VMARGS) || args[i - 1].equalsIgnoreCase(OVERRIDE_VMARGS)) { + found = true; + } + // check if this is initialization pass if (args[i].equalsIgnoreCase(INITIALIZE)) { initialize = true; @@ -1623,11 +1628,6 @@ public class Main { found = true; } - //just consume the --launcher.overrideVmargs and --launcher.appendVmargs - if (args[i - 1].equalsIgnoreCase(APPEND_VMARGS) || args[i - 1].equalsIgnoreCase(OVERRIDE_VMARGS)) { - found = true; - } - if (args[i - 1].equalsIgnoreCase(LIBRARY)) { library = arg; found = true; |