You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@karaf.apache.org by jb...@apache.org on 2019/09/11 17:29:22 UTC

[karaf] branch karaf-4.2.x updated: [KARAF-6395] Create KARAF_LOG if it doesn't exist in karaf.bat

This is an automated email from the ASF dual-hosted git repository.

jbonofre pushed a commit to branch karaf-4.2.x
in repository https://gitbox.apache.org/repos/asf/karaf.git


The following commit(s) were added to refs/heads/karaf-4.2.x by this push:
     new 3a07dff  [KARAF-6395] Create KARAF_LOG if it doesn't exist in karaf.bat
3a07dff is described below

commit 3a07dff795d5801ec80f458e6efd25ba0da5a3ea
Author: Jean-Baptiste Onofré <jb...@apache.org>
AuthorDate: Sat Sep 7 14:11:32 2019 +0200

    [KARAF-6395] Create KARAF_LOG if it doesn't exist in karaf.bat
    
    (cherry picked from commit 3d68e894814f5223d81156175270be8566df5121)
---
 .../base/src/main/filtered-resources/resources/bin/karaf.bat         | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/assemblies/features/base/src/main/filtered-resources/resources/bin/karaf.bat b/assemblies/features/base/src/main/filtered-resources/resources/bin/karaf.bat
index 037cd02..96c24fe 100644
--- a/assemblies/features/base/src/main/filtered-resources/resources/bin/karaf.bat
+++ b/assemblies/features/base/src/main/filtered-resources/resources/bin/karaf.bat
@@ -104,6 +104,11 @@ if not "%KARAF_LOG%" == "" (
 if "%KARAF_LOG%" == "" (
     set "KARAF_LOG=%KARAF_DATA%\log"
 )
+if not exist "%KARAF_LOG%" (
+    call :warn KARAF_LOG doesn't exist: "%KARAF_LOG%"
+    call :warn Creating "%KARAF_LOG%"
+    mkdir "%KARAF_LOG%"
+)
 
 set LOCAL_CLASSPATH=%CLASSPATH%