karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From karafman <mvangeert...@comcast.net>
Subject features.cfg issue
Date Wed, 22 Dec 2010 15:41:26 GMT

When adding custom features.xml documents to org.apache.karaf.features.cfg on
the featuresRepositories line using the "file:///" url, this works:
featuresRepositories=file:///home/myArea/karaf-apache-2.0.0/etc/myApp.features.cfg

But this does not:
featuresRepositories=file://${karaf.base}/etc/myApp.features.cfg

When running config:list, the following is seen:

featuresRepositories 
file:///home/myArea/karaf-apache-2.0.0/etc/myApp.features.cfg

The error in the log is:
Caused by: java.net.URISyntaxException: Illegal character in authority at
index 7: file://${karaf.base}/etc/myApp.features.cfg

Karaf should resolve variables in the file url prior to attempting to get a
file-handle, thus allowing users to specify a file url containing
${karaf.base} instead of hard-coding the file location.


-----
Karafman
Slayer of the JEE
Pounder of the Perl Programmer

-- 
View this message in context: http://karaf.922171.n3.nabble.com/features-cfg-issue-tp2131894p2131894.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Mime
View raw message