[ 
https://issues.apache.org/jira/browse/KARAF-5326?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Johannes Utzig updated KARAF-5326:
----------------------------------
    Description: 
When starting karaf 4.1.2 it automatically expands all variables in cfg files 
and stores the expanded value.
As an example, org.ops4j.pax.logging.cfg contains:

    log4j2.appender.rolling.fileName = ${karaf.data}/log/karaf.log

After starting karaf this becomes

    log4j2.appender.rolling.fileName = 
C:\\Users\\username\\Downloads\\apache-karaf-4.1.2\\apache-karaf-4.1.2\\data/log/karaf.log

The same worked fine with karaf 4.1.1, there the variables stay variables even 
if the file is manually modified.

  was:
When starting karaf 4.1.2 it automatically expands all variables in cfg files 
and stores the expanded value.
As an example, org.ops4j.pax.logging.cfg contains:
{{log4j2.appender.rolling.fileName = ${karaf.data}/log/karaf.log}}

After starting karaf this becomes

{{log4j2.appender.rolling.fileName = 
C:\\Users\\username\\Downloads\\apache-karaf-4.1.2\\apache-karaf-4.1.2\\data/log/karaf.log}}

The same worked fine with karaf 4.1.1, there the variables stay variables even 
if the file is manually modified.


> variables in cfg files are expanded
> -----------------------------------
>
>                 Key: KARAF-5326
>                 URL: https://issues.apache.org/jira/browse/KARAF-5326
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-config
>    Affects Versions: 4.1.2
>            Reporter: Johannes Utzig
>
> When starting karaf 4.1.2 it automatically expands all variables in cfg files 
> and stores the expanded value.
> As an example, org.ops4j.pax.logging.cfg contains:
>     log4j2.appender.rolling.fileName = ${karaf.data}/log/karaf.log
> After starting karaf this becomes
>     log4j2.appender.rolling.fileName = 
> C:\\Users\\username\\Downloads\\apache-karaf-4.1.2\\apache-karaf-4.1.2\\data/log/karaf.log
> The same worked fine with karaf 4.1.1, there the variables stay variables 
> even if the file is manually modified.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to