Repository: karaf
Updated Branches:
  refs/heads/karaf-2.x 623563290 -> 5073f85f9


[KARAF-3377] Doesn't change the title of the current window by the 
bin\start.bat script


Project: http://git-wip-us.apache.org/repos/asf/karaf/repo
Commit: http://git-wip-us.apache.org/repos/asf/karaf/commit/5073f85f
Tree: http://git-wip-us.apache.org/repos/asf/karaf/tree/5073f85f
Diff: http://git-wip-us.apache.org/repos/asf/karaf/diff/5073f85f

Branch: refs/heads/karaf-2.x
Commit: 5073f85f9efd7b74c95306a83edff7e54a9692fd
Parents: 6235632
Author: Jean-Baptiste Onofré <[email protected]>
Authored: Sun Dec 28 21:28:13 2014 +0100
Committer: Jean-Baptiste Onofré <[email protected]>
Committed: Sun Dec 28 21:28:13 2014 +0100

----------------------------------------------------------------------
 .../src/main/distribution/windows-text/bin/start.bat   | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/karaf/blob/5073f85f/assemblies/apache-karaf/src/main/distribution/windows-text/bin/start.bat
----------------------------------------------------------------------
diff --git 
a/assemblies/apache-karaf/src/main/distribution/windows-text/bin/start.bat 
b/assemblies/apache-karaf/src/main/distribution/windows-text/bin/start.bat
index 66c7192..23d123d 100755
--- a/assemblies/apache-karaf/src/main/distribution/windows-text/bin/start.bat
+++ b/assemblies/apache-karaf/src/main/distribution/windows-text/bin/start.bat
@@ -30,13 +30,6 @@ if exist "%DIRNAME%setenv.bat" (
   call "%DIRNAME%setenv.bat"
 )
 
-rem Check console window title. Set to Karaf by default
-if not "%KARAF_TITLE%" == "" (
-    title %KARAF_TITLE%
-) else (
-    title Karaf
-)
-
 goto BEGIN
 
 :warn
@@ -86,8 +79,12 @@ if "%KARAF_ETC%" == "" (
     set "KARAF_ETC=%KARAF_BASE%\etc"
 )
 
+if "%KARAF_TITLE%" == "" (
+    set "KARAF_TITLE=Karaf"
+)
+
 :EXECUTE
-    start "Karaf" /MIN "%KARAF_HOME%\bin\karaf.bat" server %*
+    start "%KARAF_TITLE%" /MIN "%KARAF_HOME%\bin\karaf.bat" server %*
 
 rem # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
 

Reply via email to