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 <clim@exist.com>
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 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