Just use file:./etc/myApp.features.cfg The current directory is always ${karaf.base} But I think it should work anyway as FileInstall do use System properties to interpolate the values. Actually, we use it in etc/org.ops4j.pax.url.mvn.cfg, so ther emust be something wrong with your config.
On Wed, Dec 22, 2010 at 16:41, karafman <mvangeert...@comcast.net> wrote: > > 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. > -- Cheers, Guillaume Nodet ------------------------ Blog: http://gnodet.blogspot.com/ ------------------------ Open Source SOA http://fusesource.com