geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From viol...@apache.org
Subject svn commit: r1096447 - /geronimo/server/trunk/plugins/procrun/src/main/resources/bin/service_pr.bat
Date Mon, 25 Apr 2011 10:30:12 GMT
Author: violalu
Date: Mon Apr 25 10:30:12 2011
New Revision: 1096447

URL: http://svn.apache.org/viewvc?rev=1096447&view=rev
Log:
GERONIMO-5881 add space support in service_pr.bat

Modified:
    geronimo/server/trunk/plugins/procrun/src/main/resources/bin/service_pr.bat

Modified: geronimo/server/trunk/plugins/procrun/src/main/resources/bin/service_pr.bat
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/plugins/procrun/src/main/resources/bin/service_pr.bat?rev=1096447&r1=1096446&r2=1096447&view=diff
==============================================================================
--- geronimo/server/trunk/plugins/procrun/src/main/resources/bin/service_pr.bat (original)
+++ geronimo/server/trunk/plugins/procrun/src/main/resources/bin/service_pr.bat Mon Apr 25
10:30:12 2011
@@ -135,6 +135,26 @@ if not "%GERONIMO_TMPDIR%" == "" goto go
 set GERONIMO_TMPDIR=var\temp
 :gotTmpdir
 
+@REM Handle spaces in provided paths.  Also strips off quotes.
+if defined var GERONIMO_HOME(
+set GERONIMO_HOME=###%GERONIMO_HOME%###
+set GERONIMO_HOME=%GERONIMO_HOME:"###=%
+set GERONIMO_HOME=%GERONIMO_HOME:###"=%
+set GERONIMO_HOME=%GERONIMO_HOME:###=%
+@)
+if defined var JRE_HOME(
+set JRE_HOME=###%JRE_HOME%###
+set JRE_HOME=%JRE_HOME:"###=%
+set JRE_HOME=%JRE_HOME:###"=%
+set JRE_HOME=%JRE_HOME:###=%
+@)
+if defined var _RUNJAVA(
+set _RUNJAVA=###%_RUNJAVA%###
+set _RUNJAVA=%_RUNJAVA:"###=%
+set _RUNJAVA=%_RUNJAVA:###"=%
+set _RUNJAVA=%_RUNJAVA:###=%
+@)
+
 set EXECUTABLE=%GERONIMO_HOME%\bin\geronimosrv.exe
 set JAVA_EXE=%_RUNJAVA%.exe
 



Mime
View raw message