Re: Karaf console

2013-12-03 Thread Patryk Kucharz
Thank you for your help. Regards, PK 2013/12/2 Jean-Baptiste Onofré j...@nanthrax.net Hi Patryk, You don't have to create command, just create an alias that execute what you want. For condition check, looping, etc, you can use shell:if, shell:while, etc. You can find some details here:

Re: Karaf console

2013-12-03 Thread Guillaume Nodet
As an alternative (if you need), you can also use the session.execute() method. Look at the admin:connect commands if you want: https://github.com/apache/karaf/blob/karaf-2.x/admin/command/src/main/java/=

Re: Karaf console

2013-12-03 Thread Patryk Kucharz
Thank you Guillaume. At first sight, this is what I wanted to use to develop my own command. I appreciate all your help very much. Regards, PK 2013/12/3 Guillaume Nodet gno...@apache.org As an alternative (if you need), you can also use the session.execute() method. Look at the

Config in features.xml to config file

2013-12-03 Thread Marco
Hello everyone, I would like to ask if is it possible to have the configuration parameters specified in the features XML file to be written into /etc folder automatically. For example: ?xml version=1.0 encoding=UTF-8? features feature name=example-1 config name=org.company.example

Re: Config in features.xml to config file

2013-12-03 Thread vmalladi
Did you try below one? configfile finalname=etc/myconfig.cfg override=truemyconfig.cfg/configfile Thanks Vamsi On Wed, Dec 4, 2013 at 1:29 AM, Marco [via Karaf] ml-node+s922171n4030504...@n3.nabble.com wrote: Hello everyone, I would like to ask if is it possible to have the configuration