From 1faa6b83895dba3f275c72635f03518a6dc01007 Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Thu, 22 Feb 2007 09:41:28 +0000
Subject: [PATCH] Fix for Issues #1025 and #1248 ('stop-ds.bat should be able to stop server even if LDAP port' and 'cannot stop server through status panel').
---
opends/resource/uninstall.bat | 14 +++++++++++---
1 files changed, 11 insertions(+), 3 deletions(-)
diff --git a/opends/resource/uninstall.bat b/opends/resource/uninstall.bat
index 5a11a3e..4613361 100644
--- a/opends/resource/uninstall.bat
+++ b/opends/resource/uninstall.bat
@@ -23,11 +23,11 @@
rem CDDL HEADER END
rem
rem
-rem Portions Copyright 2006 Sun Microsystems, Inc.
+rem Portions Copyright 2006-2007 Sun Microsystems, Inc.
setlocal
-set DIR_HOME=%~dP0
+set DIR_HOME=%~dP0.
set INSTANCE_ROOT=%DIR_HOME%
:checkJavaBin
@@ -57,7 +57,15 @@
set PATH=%SystemRoot%
-"%JAVA_BIN%" %JAVA_ARGS% org.opends.quicksetup.uninstaller.UninstallLauncher %*
+if "%*" == "" goto callLaunch
+goto callJava
+:callLaunch
+"%DIR_HOME%\lib\winlauncher.exe" launch "%DIR_HOME%" "%JAVA_BIN%" %JAVA_ARGS% org.opends.quicksetup.uninstaller.UninstallLauncher
+goto end
+
+:callJava
+"%JAVA_BIN%" %JAVA_ARGS% org.opends.quicksetup.uninstaller.UninstallLauncher %*
+goto end
:end
--
Gitblit v1.10.0