Hi Kerry, I'm not sure I follow the "template" logic here. with the <configfile> property you can add any kind of configuration file. One Use-Case for example is to place the needed jetty.xml file along the installation of the pax-web feature. So I'm not sure I see something missing at this point, so please could you elaborate a bit more on this point, about what you are missing here :-)
regards, Achim 2017-02-26 10:08 GMT+01:00 JT <karaf-u...@avionicengineers.com>: > Hi JB, > > Thanks for the update. Good to know you are adding that functionality. > > One other thing I wondered about. If there is a need to add a > configuration file as part of a feature, currently the only way to do this > is to make a 'template' feature file including the <configfile> property. > It would be nice if rather than creating a template, the config file to be > included could be specified in the karaf tooling plugin. Would that be > feasible? I don't require that myself right now but would be willing to > take a look and submit a pull-request if I come up with a solution. > > Kerry > > > On 26/02/17 08:47, Jean-Baptiste Onofré wrote: > >> Hi Kerry, >> >> you can install a cfg file dropping in the etc folder. >> >> For a command, I created a Jira some weeks ago about a config:install >> command. It's already possible using tac| "command" but not obvious. >> >> config:install command (and MBean) will be available in 4.0.9 and 4.1.1. >> You will be able to do: >> >> config:install mvn:groupId/artifactId/version/cfg >> >> Regards >> JB >> >> On 02/26/2017 08:56 AM, JT wrote: >> >>> Hi All, >>> >>> I've seen how I can deploy a config file as part of a Karaf 'feature' >>> using Christian's tutorial >>> (http://www.liquid-reality.de/display/liquid/2011/09/23/Kara >>> f+Tutorial+Part+2+-+Using+the+Configuration+Admin+Service?src=contextnav >>> ). >>> >>> >>> Is it possible to deploy a config file without the need to include in a >>> features file? i.e. I would like to install it standalone with an >>> install command such as 'install mvn:<maven-coordinates>/cfg/config' >>> >>> many thanks >>> >>> Kerry >>> >>> >> > -- Apache Member Apache Karaf <http://karaf.apache.org/> Committer & PMC OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & Project Lead blog <http://notizblog.nierbeck.de/> Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS> Software Architect / Project Manager / Scrum Master