[ 
https://issues.apache.org/jira/browse/KARAF-2060?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15323595#comment-15323595
 ] 

Phillip Rhodes commented on KARAF-2060:
---------------------------------------

Any chance of getting any movement on this?  Using ServiceMix, it would be nice 
to be able to specify the path to a feature repository using a variable like 
karaf.base or whatever, instead of having to plugin in the absolute path every 
time.   Also, FWIW, putting a variable in the file for something like a 
repository location not only doesn't work, it breaks something in how the file 
is processed, as even the other (correctly specified) repositories don't load 
(well, at least in ServiceMix 6.1.0. Not sure which version of Karaf that's 
based on).



> Variables cannot be used in org.apache.karaf.features.cfg
> ---------------------------------------------------------
>
>                 Key: KARAF-2060
>                 URL: https://issues.apache.org/jira/browse/KARAF-2060
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf-config
>    Affects Versions: 2.3.0
>         Environment: Windows 7
> Java 6
>            Reporter: Bengt Rodehav
>            Priority: Minor
>
> Normally, variables defined in custom.properties can be used in configuration 
> files handled by FileInstall. For some reason this does not seem to work in 
> org.apache.karaf.features.cfg.
> E g, this works:
> {quote}
> - Put the following line in custom.properties:
> logdir=data/log
> - Put the following line in org.ops4j.pax.logging.cfg:
> log4j.appender.info.file=$\{logdir\}/info.log
> {quote}
> But this does NOT work:
> {quote}
> - Put the following line in custom.properties:
> var = 
> mvn:org.apache.karaf.features/standard/3.0.0-SNAPSHOT/xml/features,mvn:org.apache.karaf.features/enterprise/3.0.0-SNAPSHOT/xml/features,mvn:org.apache.karaf.features/spring/3.0.0-SNAPSHOT/xml/features
> - Put the following line in org.apache.karaf.features.cfg:
> featuresRepositories = $\{var\}
> {quote}
> This has been discussed on the Karaf user list:
> http://karaf.922171.n3.nabble.com/Using-variables-in-org-apache-karaf-features-cfg-td4027053.html



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to