From d805a36cc67fa38d11eda2f09f661ba21c6add70 Mon Sep 17 00:00:00 2001
From: lutoff <lutoff@localhost>
Date: Tue, 10 Jul 2007 08:00:47 +0000
Subject: [PATCH] fix for issue #1865 (upgrade -V error) In case on -V option, BuildExtractor will exit with a pre-defined return code defined in QuickSetupCli.java (let's say 50). Script will test this specific return value to check if the non-null return code is an error. In case of none null return code, the upgradeLauncher will not be called.
---
opends/src/quicksetup/org/opends/quicksetup/Launcher.java | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/opends/src/quicksetup/org/opends/quicksetup/Launcher.java b/opends/src/quicksetup/org/opends/quicksetup/Launcher.java
index 589ac57..fad7cba 100644
--- a/opends/src/quicksetup/org/opends/quicksetup/Launcher.java
+++ b/opends/src/quicksetup/org/opends/quicksetup/Launcher.java
@@ -70,7 +70,8 @@
boolean printUsage = false;
if ((args != null) && (args.length > 0)) {
for (String arg : args) {
- if (arg.equalsIgnoreCase("-H") ||
+ if (arg.equals("-?") ||
+ arg.equalsIgnoreCase("-H") ||
arg.equalsIgnoreCase("--help")) {
printUsage = true;
}
@@ -310,7 +311,7 @@
if (shouldPrintVersion())
{
printVersion();
- System.exit(QuickSetupCli.SUCCESSFUL);
+ System.exit(QuickSetupCli.PRINT_VERSION);
}
else if (shouldPrintUsage()) {
printUsage(false);
--
Gitblit v1.10.0