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

Jean-Noel Rouvignac
14.12.2014 613d26d5487e2692d665b5f03499e809ff37f2d5
OPENDJ-1619 On Windows the logs/errors file is empty

Make _script-util.bat have the same behaviour as _script-util.sh: Use bootstrap.jar for server (tools are using bootstrap-client.jar).
1 files modified
4 ■■■ changed files
opendj3-server-dev/resource/bin/_script-util.bat 4 ●●● patch | view | raw | blame | history
opendj3-server-dev/resource/bin/_script-util.bat
@@ -57,6 +57,7 @@
cd /d %CUR_DIR%
goto scriptBegin
rem Configure the appropriate CLASSPATH for client, using java.util.logging logger.
:setClassPath
if "%SET_CLASSPATH_DONE%" == "true" goto end
rem get the absolute paths before building the classpath
@@ -72,13 +73,14 @@
set SET_CLASSPATH_DONE=true
goto scriptBegin
rem Configure the appropriate CLASSPATH for server, using Opend DJ logger.
:setClassPathWithOpenDJLogger
if "%SET_CLASSPATH_DONE%" == "true" goto end
rem get the absolute paths before building the classpath
rem it also helps comparing the two paths
FOR /F %%i IN ("%INSTALL_ROOT%")  DO set INSTALL_ROOT=%%~dpnxi
FOR /F %%i IN ("%INSTANCE_ROOT%") DO set INSTANCE_ROOT=%%~dpnxi
call "%INSTALL_ROOT%\lib\setcp.bat" %INSTALL_ROOT%\lib\bootstrap-client.jar
call "%INSTALL_ROOT%\lib\setcp.bat" %INSTALL_ROOT%\lib\bootstrap.jar
FOR %%x in ("%INSTALL_ROOT%\resources\*.jar") DO call "%INSTALL_ROOT%\lib\setcp.bat" %%x
set CLASSPATH=%INSTANCE_ROOT%\classes;%CLASSPATH%
if "%INSTALL_ROOT%" == "%INSTANCE_ROOT%" goto setClassPathWithOpenDJLoggerDone