You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by fm...@apache.org on 2023/10/02 13:45:57 UTC

[camel] branch main updated: Fix jbang run execution on windows

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

fmariani pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new 355d71a8639 Fix jbang run execution on windows
355d71a8639 is described below

commit 355d71a86393b61a7adb30f8517f93c615f1d220
Author: Croway <fe...@gmail.com>
AuthorDate: Mon Oct 2 15:05:30 2023 +0200

    Fix jbang run execution on windows
---
 .../camel-jbang-core/src/main/resources/log4j2-background.properties    | 2 +-
 dsl/camel-jbang/camel-jbang-core/src/main/resources/log4j2.properties   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dsl/camel-jbang/camel-jbang-core/src/main/resources/log4j2-background.properties b/dsl/camel-jbang/camel-jbang-core/src/main/resources/log4j2-background.properties
index 5e700f81157..6dd65a811f3 100644
--- a/dsl/camel-jbang/camel-jbang-core/src/main/resources/log4j2-background.properties
+++ b/dsl/camel-jbang/camel-jbang-core/src/main/resources/log4j2-background.properties
@@ -18,7 +18,7 @@
 # file logger
 appender.file.type = File
 appender.file.name = file
-appender.file.fileName = ${sys:user.home}/.camel/${sys:pid}.log
+appender.file.fileName = ${sys:user.home}${sys:file.separator}.camel${sys:file.separator}${sys:pid}.log
 appender.file.createOnDemand = true
 appender.file.append = false
 appender.file.layout.type = PatternLayout
diff --git a/dsl/camel-jbang/camel-jbang-core/src/main/resources/log4j2.properties b/dsl/camel-jbang/camel-jbang-core/src/main/resources/log4j2.properties
index 5561cfee4a4..bfb1414eaff 100644
--- a/dsl/camel-jbang/camel-jbang-core/src/main/resources/log4j2.properties
+++ b/dsl/camel-jbang/camel-jbang-core/src/main/resources/log4j2.properties
@@ -25,7 +25,7 @@ appender.stdout.layout.pattern = %style{%d{yyyy-MM-dd HH:mm:ss.SSS}}{Dim} %highl
 # file logger
 appender.file.type = File
 appender.file.name = file
-appender.file.fileName = ${sys:user.home}/.camel/${sys:pid}.log
+appender.file.fileName = ${sys:user.home}${sys:file.separator}.camel${sys:file.separator}${sys:pid}.log
 appender.file.createOnDemand = true
 appender.file.append = false
 appender.file.layout.type = PatternLayout