[
https://issues.apache.org/jira/browse/CAMEL-19938?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17771061#comment-17771061
]
Federico Mariani commented on CAMEL-19938:
------------------------------------------
We can try replacing _appender.file.fileName =
${sys:user.home}/.camel/${sys:pid}.log_ with _appender.file.fileName =
${sys:user.home}${sys:file.separator}.camel${sys:file.separator}${sys:pid}.log_
> JBang camel CLI not working when using "run" option on Windows environments
> ---------------------------------------------------------------------------
>
> Key: CAMEL-19938
> URL: https://issues.apache.org/jira/browse/CAMEL-19938
> Project: Camel
> Issue Type: Bug
> Components: camel-jbang
> Affects Versions: 4.0.0
> Environment: +_Steps to reproduce:_+
> jbang app uninstall camel && jbang app install camel@apache/camel
> camel config set
> deps=org.apache.camel.springboot:camel-timer-starter,camel:management,camel:cli-connector
> camel config set runtime=spring-boot
> camel config set gav=com.foo:acme:1.0-SNAPSHOT
> camel init test.yaml
> camel run test.yaml
> Reporter: Salvatore Mongiardo
> Priority: Minor
> Fix For: 4.x
>
> Attachments: camel-jbang-logger-exception.log
>
>
>
> During the execution of `{_}camel run ...{_} ` in Windows environments (e.g.
> tested on Win 2019) we get the exception reported in the attached file,
> basically:
>
> {code:java}
> ERROR StatusConsoleListener FileManager
> (C:\Users\hudson/.camel/${sys:pid}.log) java.io.IOException: The filename,
> directory name, or volume label syntax is incorrect {code}
> It sounds like a logging configuration issue in resolving *${sys:pid}*
> placeholder coded in log4j properties
> [file|https://github.com/apache/camel/blob/main/dsl/camel-jbang/camel-jbang-core/src/main/resources/log4j2.properties#L28]
>
>
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)