Bengt Rodehav created KARAF-2060:
------------------------------------
Summary: 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 is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira