NIFIREG-140: Fix classpath for Windows
This closes #114. Signed-off-by: Bryan Bende <bbende@apache.org>
This commit is contained in:
Родитель
c01f79a294
Коммит
e8c6497f3f
|
@ -33,13 +33,15 @@ goto startNiFiRegistry
|
||||||
:startNiFiRegistry
|
:startNiFiRegistry
|
||||||
set NIFI_REGISTRY_ROOT=%~dp0..\
|
set NIFI_REGISTRY_ROOT=%~dp0..\
|
||||||
pushd "%NIFI_REGISTRY%"
|
pushd "%NIFI_REGISTRY%"
|
||||||
set LIB_DIR=lib\bootstrap
|
set LIB_DIR=%NIFI_REGISTRY_ROOT%\lib
|
||||||
|
set SHARED_DIR=%NIFI_REGISTRY_ROOT%\lib\shared
|
||||||
|
set BOOTSTRAP_DIR=%NIFI_REGISTRY_ROOT%\lib\bootstrap
|
||||||
set CONF_DIR=conf
|
set CONF_DIR=conf
|
||||||
|
|
||||||
set BOOTSTRAP_CONF_FILE=%CONF_DIR%\bootstrap.conf
|
set BOOTSTRAP_CONF_FILE=%CONF_DIR%\bootstrap.conf
|
||||||
set JAVA_ARGS=-Dorg.apache.nifi.registry.bootstrap.config.file=%BOOTSTRAP_CONF_FILE%
|
set JAVA_ARGS=-Dorg.apache.nifi.registry.bootstrap.config.file=%BOOTSTRAP_CONF_FILE%
|
||||||
|
|
||||||
SET JAVA_PARAMS=-cp %CONF_DIR%;%LIB_DIR%\* -Xms12m -Xmx24m %JAVA_ARGS% org.apache.nifi.registry.NiFiRegistry
|
SET JAVA_PARAMS=-cp %CONF_DIR%;%LIB_DIR%\*;%SHARED_DIR%\*;%BOOTSTRAP_DIR%\* -Xms12m -Xmx24m %JAVA_ARGS% org.apache.nifi.registry.NiFiRegistry
|
||||||
set BOOTSTRAP_ACTION=dump
|
set BOOTSTRAP_ACTION=dump
|
||||||
|
|
||||||
cmd.exe /C "%JAVA_EXE%" %JAVA_PARAMS% %BOOTSTRAP_ACTION%
|
cmd.exe /C "%JAVA_EXE%" %JAVA_PARAMS% %BOOTSTRAP_ACTION%
|
||||||
|
|
|
@ -34,12 +34,14 @@ goto startNiFiRegistry
|
||||||
set NIFI_REGISTRY_ROOT=%~dp0..
|
set NIFI_REGISTRY_ROOT=%~dp0..
|
||||||
pushd "%NIFI_REGISTRY_ROOT%\"
|
pushd "%NIFI_REGISTRY_ROOT%\"
|
||||||
set LIB_DIR=%NIFI_REGISTRY_ROOT%\lib
|
set LIB_DIR=%NIFI_REGISTRY_ROOT%\lib
|
||||||
|
set SHARED_DIR=%NIFI_REGISTRY_ROOT%\lib\shared
|
||||||
|
set BOOTSTRAP_DIR=%NIFI_REGISTRY_ROOT%\lib\bootstrap
|
||||||
set CONF_DIR=%NIFI_REGISTRY_ROOT%\conf
|
set CONF_DIR=%NIFI_REGISTRY_ROOT%\conf
|
||||||
|
|
||||||
set BOOTSTRAP_CONF_FILE=%CONF_DIR%\bootstrap.conf
|
set BOOTSTRAP_CONF_FILE=%CONF_DIR%\bootstrap.conf
|
||||||
set JAVA_ARGS=-Dorg.apache.nifi.registry.bootstrap.config.file=%BOOTSTRAP_CONF_FILE%
|
set JAVA_ARGS=-Dorg.apache.nifi.registry.bootstrap.config.file=%BOOTSTRAP_CONF_FILE%
|
||||||
|
|
||||||
SET JAVA_PARAMS=-cp %CONF_DIR%;%LIB_DIR%\* -Xms512m -Xmx1024m %JAVA_ARGS% org.apache.nifi.registry.NiFiRegistry
|
SET JAVA_PARAMS=-cp %CONF_DIR%;%LIB_DIR%\*;%SHARED_DIR%\*;%BOOTSTRAP_DIR%\* -Xms512m -Xmx1024m %JAVA_ARGS% org.apache.nifi.registry.NiFiRegistry
|
||||||
set BOOTSTRAP_ACTION=run
|
set BOOTSTRAP_ACTION=run
|
||||||
|
|
||||||
echo cmd.exe /C "%JAVA_EXE%" %JAVA_PARAMS% %BOOTSTRAP_ACTION%
|
echo cmd.exe /C "%JAVA_EXE%" %JAVA_PARAMS% %BOOTSTRAP_ACTION%
|
||||||
|
|
|
@ -33,15 +33,17 @@ goto startNiFiRegistry
|
||||||
:startNiFiRegistry
|
:startNiFiRegistry
|
||||||
set NIFI_REGISTRY_ROOT=%~dp0..\
|
set NIFI_REGISTRY_ROOT=%~dp0..\
|
||||||
pushd "%NIFI_REGISTRY_ROOT%"
|
pushd "%NIFI_REGISTRY_ROOT%"
|
||||||
set LIB_DIR=lib\bootstrap
|
set LIB_DIR=%NIFI_REGISTRY_ROOT%\lib
|
||||||
|
set SHARED_DIR=%NIFI_REGISTRY_ROOT%\lib\shared
|
||||||
|
set BOOTSTRAP_DIR=%NIFI_REGISTRY_ROOT%\lib\bootstrap
|
||||||
set CONF_DIR=conf
|
set CONF_DIR=conf
|
||||||
|
|
||||||
set BOOTSTRAP_CONF_FILE=%CONF_DIR%\bootstrap.conf
|
set BOOTSTRAP_CONF_FILE=%CONF_DIR%\bootstrap.conf
|
||||||
set JAVA_ARGS=-Dorg.apache.nifi.registry.bootstrap.config.file=%BOOTSTRAP_CONF_FILE%
|
set JAVA_ARGS=-Dorg.apache.nifi.registry.bootstrap.config.file=%BOOTSTRAP_CONF_FILE%
|
||||||
|
|
||||||
set JAVA_PARAMS=-cp %LIB_DIR%\* -Xms12m -Xmx24m %JAVA_ARGS% org.apache.nifi.registry.NiFiRegistry
|
set JAVA_PARAMS=-cp %LIB_DIR%\*;%SHARED_DIR%\*;%BOOTSTRAP_DIR%\* -Xms12m -Xmx24m %JAVA_ARGS% org.apache.nifi.registry.NiFiRegistry
|
||||||
set BOOTSTRAP_ACTION=status
|
set BOOTSTRAP_ACTION=status
|
||||||
|
|
||||||
cmd.exe /C "%JAVA_EXE%" %JAVA_PARAMS% %BOOTSTRAP_ACTION%
|
cmd.exe /C "%JAVA_EXE%" %JAVA_PARAMS% %BOOTSTRAP_ACTION%
|
||||||
|
|
||||||
popd
|
popd
|
||||||
|
|
Загрузка…
Ссылка в новой задаче