You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Fernando Ribeiro <fe...@upic.com.br> on 2013/12/23 03:53:55 UTC

Lists in Configuration

All,

It seems to me that a config:property-add command that added a new value to
a list automatically separated by commas would be better than the existing
config:property-append command, what do you think?

Regards,

-- 
Fernando Ribeiro

Re: Lists in Configuration

Posted by Fernando Ribeiro <fe...@upic.com.br>.
Hi JB,

On a second thought, never mind, config:property-append just does the trick.

Regards,


On Mon, Dec 23, 2013 at 11:10 AM, Fernando Ribeiro <
fernando.ribeiro@upic.com.br> wrote:

> Hi JB,
>
> I understand it, but was thinking of adding a command to allow users to
> add items to a list even more easily, something like
> config:property-list-add.
>
> Regards,
>
>
> On Mon, Dec 23, 2013 at 4:29 AM, Jean-Baptiste Onofré <jb...@nanthrax.net>wrote:
>
>> Hi Fernando,
>>
>> config:property-append is to append a String at the end of an existing
>> one, where config:property-set completely override the property (in the
>> past, we provided only property-set, I added property-append to be easier).
>>
>> config:property-append ",foo" does the trick for list, and can be used in
>> other context like config:property-append "1" to add 1 at the end of a
>> string (like port number).
>>
>> Regards
>> JB
>>
>>
>> On 12/23/2013 03:53 AM, Fernando Ribeiro wrote:
>>
>>> All,
>>>
>>> It seems to me that a config:property-add command that added a new value
>>> to a list automatically separated by commas would be better than the
>>> existing config:property-append command, what do you think?
>>>
>>> Regards,
>>>
>>> --
>>> Fernando Ribeiro
>>>
>>
>> --
>> Jean-Baptiste Onofré
>> jbonofre@apache.org
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>
>
>
> --
> Fernando Ribeiro
>



-- 
Fernando Ribeiro

Re: Lists in Configuration

Posted by Fernando Ribeiro <fe...@upic.com.br>.
Hi JB,

I understand it, but was thinking of adding a command to allow users to add
items to a list even more easily, something like config:property-list-add.

Regards,


On Mon, Dec 23, 2013 at 4:29 AM, Jean-Baptiste Onofré <jb...@nanthrax.net>wrote:

> Hi Fernando,
>
> config:property-append is to append a String at the end of an existing
> one, where config:property-set completely override the property (in the
> past, we provided only property-set, I added property-append to be easier).
>
> config:property-append ",foo" does the trick for list, and can be used in
> other context like config:property-append "1" to add 1 at the end of a
> string (like port number).
>
> Regards
> JB
>
>
> On 12/23/2013 03:53 AM, Fernando Ribeiro wrote:
>
>> All,
>>
>> It seems to me that a config:property-add command that added a new value
>> to a list automatically separated by commas would be better than the
>> existing config:property-append command, what do you think?
>>
>> Regards,
>>
>> --
>> Fernando Ribeiro
>>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>



-- 
Fernando Ribeiro

Re: Lists in Configuration

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Fernando,

config:property-append is to append a String at the end of an existing 
one, where config:property-set completely override the property (in the 
past, we provided only property-set, I added property-append to be easier).

config:property-append ",foo" does the trick for list, and can be used 
in other context like config:property-append "1" to add 1 at the end of 
a string (like port number).

Regards
JB

On 12/23/2013 03:53 AM, Fernando Ribeiro wrote:
> All,
>
> It seems to me that a config:property-add command that added a new value
> to a list automatically separated by commas would be better than the
> existing config:property-append command, what do you think?
>
> Regards,
>
> --
> Fernando Ribeiro

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com