You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Andrei Pozolotin <an...@gmail.com> on 2012/08/22 21:11:05 UTC
support recursive variable substitution in properties?
*Hi*
the following does not work, when placed in custom.properties:
org.osgi.framework.system.packages.extra =
org.apache.karaf.branding; ${org.osgi.framework.system.packages.extra}
I am curious if karaf should support recursive variable substitution?
Thank you,
Andrei
Re: support recursive variable substitution in properties?
Posted by Andrei Pozolotin <an...@gmail.com>.
Bengt
Thank you for picking this up - yes system property, same problem
with non-system property - works ok. I will try to dig into this.
Andrei
-------- Original Message --------
Subject: Re: support recursive variable substitution in properties?
From: Bengt Rodehav <be...@rodehav.com>
To: user@karaf.apache.org
Date: Fri 24 Aug 2012 01:17:25 AM CDT
> If the variable you are trying to use is a system property, then we
> have the same problem. I created a JIRA for this a while back:
>
> https://issues.apache.org/jira/browse/KARAF-1152
>
> I did however, believe that using already defined variables should
> work (provided that they have alredy been defined of course).
>
> /Bengt
>
>
> 2012/8/22 Jean-Baptiste Onofré <jb@nanthrax.net <ma...@nanthrax.net>>
>
> It depends where. If you take a look in jre.properties, you will
> see variables in.
>
> It should work. By "does not work", you mean that you have an
> exception, or the property doesn't include the variable value
> (maybe a order issue depending where you put the variable first) ?
>
> Regards
> JB
>
> On 08/22/2012 09:11 PM, Andrei Pozolotin wrote:
>
> *Hi*
>
>
> the following does not work, when placed in custom.properties:
>
> org.osgi.framework.system.packages.extra =
> org.apache.karaf.branding;
> ${org.osgi.framework.system.packages.extra}
>
> I am curious if karaf should support recursive variable
> substitution?
>
> Thank you,
>
> Andrei
>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org <ma...@apache.org>
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
>
Re: support recursive variable substitution in properties?
Posted by Bengt Rodehav <be...@rodehav.com>.
If the variable you are trying to use is a system property, then we have
the same problem. I created a JIRA for this a while back:
https://issues.apache.org/jira/browse/KARAF-1152
I did however, believe that using already defined variables should work
(provided that they have alredy been defined of course).
/Bengt
2012/8/22 Jean-Baptiste Onofré <jb...@nanthrax.net>
> It depends where. If you take a look in jre.properties, you will see
> variables in.
>
> It should work. By "does not work", you mean that you have an exception,
> or the property doesn't include the variable value (maybe a order issue
> depending where you put the variable first) ?
>
> Regards
> JB
>
> On 08/22/2012 09:11 PM, Andrei Pozolotin wrote:
>
>> *Hi*
>>
>>
>> the following does not work, when placed in custom.properties:
>>
>> org.osgi.framework.system.**packages.extra =
>> org.apache.karaf.branding; ${org.osgi.framework.system.**
>> packages.extra}
>>
>> I am curious if karaf should support recursive variable substitution?
>>
>> Thank you,
>>
>> Andrei
>>
>>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
Re: support recursive variable substitution in properties?
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
It depends where. If you take a look in jre.properties, you will see
variables in.
It should work. By "does not work", you mean that you have an exception,
or the property doesn't include the variable value (maybe a order issue
depending where you put the variable first) ?
Regards
JB
On 08/22/2012 09:11 PM, Andrei Pozolotin wrote:
> *Hi*
>
> the following does not work, when placed in custom.properties:
>
> org.osgi.framework.system.packages.extra =
> org.apache.karaf.branding; ${org.osgi.framework.system.packages.extra}
>
> I am curious if karaf should support recursive variable substitution?
>
> Thank you,
>
> Andrei
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com