You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by bb...@apache.org on 2020/11/17 16:12:17 UTC
[nifi-registry] branch main updated: NIFIREG-431 Fix the location
of the log directory in Windows (#312)
This is an automated email from the ASF dual-hosted git repository.
bbende pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi-registry.git
The following commit(s) were added to refs/heads/main by this push:
new 570119a NIFIREG-431 Fix the location of the log directory in Windows (#312)
570119a is described below
commit 570119ae11caf8cf70647fe9c7268afb5bf2c49f
Author: Chris Lim <ch...@gmail.com>
AuthorDate: Wed Nov 18 00:12:06 2020 +0800
NIFIREG-431 Fix the location of the log directory in Windows (#312)
- In Windows the log directory is at "org.apache.nifi.registry.bootstrap.config.log.dir_IS_UNDEFINED" because logback expects the value of "org.apache.nifi.registry.bootstrap.config.log.dir" to be available. This bug is somehow related to NIFIREG-250
Co-authored-by: Chris Lim <cl...@exist.com>
---
.../src/main/resources/bin/status-nifi-registry.bat | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/nifi-registry-core/nifi-registry-resources/src/main/resources/bin/status-nifi-registry.bat b/nifi-registry-core/nifi-registry-resources/src/main/resources/bin/status-nifi-registry.bat
index 30a29a0..209efde 100644
--- a/nifi-registry-core/nifi-registry-resources/src/main/resources/bin/status-nifi-registry.bat
+++ b/nifi-registry-core/nifi-registry-resources/src/main/resources/bin/status-nifi-registry.bat
@@ -37,9 +37,10 @@ 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 NIFI_REGISTRY_LOG_DIR=%NIFI_REGISTRY_ROOT%\logs
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% -Dorg.apache.nifi.registry.bootstrap.config.log.dir=%NIFI_REGISTRY_LOG_DIR%
set JAVA_PARAMS=-cp %LIB_DIR%\*;%SHARED_DIR%\*;%BOOTSTRAP_DIR%\* -Xms12m -Xmx24m %JAVA_ARGS% org.apache.nifi.registry.NiFiRegistry
set BOOTSTRAP_ACTION=status