From 05e7f084667cf1d8bb580a214e5210e33ca82ffe Mon Sep 17 00:00:00 2001
From: jvergara <jvergara@localhost>
Date: Fri, 23 Feb 2007 11:46:58 +0000
Subject: [PATCH] Fix for issue 1271. "%*" Does not work properly when we have arguments with quotes.  Use a FOR statement to determine whether the user provided arguments or not to the stop-ds.bat command. 

---
 opendj-sdk/opends/resource/bin/stop-ds.bat |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/opendj-sdk/opends/resource/bin/stop-ds.bat b/opendj-sdk/opends/resource/bin/stop-ds.bat
index 430d4ea..91b4f84 100644
--- a/opendj-sdk/opends/resource/bin/stop-ds.bat
+++ b/opendj-sdk/opends/resource/bin/stop-ds.bat
@@ -32,9 +32,9 @@
 set DIR_HOME=%~dP0..
 
 set RESTART=0
-set NO_ARG_OR_ONLY_RESTART=0
+set NO_ARG_OR_ONLY_RESTART=1
 
-if "%*" == "" set NO_ARG_OR_ONLY_RESTART=1
+for %%x in (%*) DO set NO_ARG_OR_ONLY_RESTART=0
 if "%NO_ARG_OR_ONLY_RESTART%" == "1" goto execute
 
 for %%x in (%*) DO if "%%x" == "-R" set RESTART=1

--
Gitblit v1.10.0