mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

vharseko
31.31.2022 f6107508e9fe389db0d224b7d968c20f3cba5cb6
FIX Windows install to path with spaces (#236)

1 files modified
6 ■■■■ changed files
opendj-server-legacy/resource/bin/_script-util.bat 6 ●●●● patch | view | raw | blame | history
opendj-server-legacy/resource/bin/_script-util.bat
@@ -232,8 +232,8 @@
rem read the provided property from the configuration/java.properties and stores it in PROPERTY_VALUE variable
:readProperty
set PROPERTY_VALUE=
set JAVA_PROPERTIES="%INSTALL_ROOT%\config\java.properties"
if not exist %JAVA_PROPERTIES% goto:eof
set CMD="findstr /b [^#]*%~1=.* %JAVA_PROPERTIES%"
set JAVA_PROPERTIES=%INSTALL_ROOT%\config\java.properties
if not exist "%JAVA_PROPERTIES%" goto:eof
set CMD=findstr /b [^#]*%~1=.* "%JAVA_PROPERTIES%"
for /f "tokens=2 delims==" %%a in ( '%CMD%' ) do set PROPERTY_VALUE=%%a
goto:eof