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/resource/setup.bat | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/opends/resource/setup.bat b/opends/resource/setup.bat index b290aeb..b5f48c9 100644 --- a/opends/resource/setup.bat +++ b/opends/resource/setup.bat @@ -77,7 +77,14 @@ :callJava "%JAVA_BIN%" %JAVA_ARGS% org.opends.quicksetup.installer.InstallLauncher -P setup.bat %* + +rem return part +if %errorlevel% == 50 goto version goto end +:version +rem version information was requested. Return code should be 0. +exit /B 0 + :end -- Gitblit v1.10.0