You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by CLEMENT Jean-Philippe <je...@fr.thalesgroup.com> on 2015/04/13 10:14:06 UTC
Environment variables and Blueprint
Dear Karaf-ers,
I would like to retrieve environment variables via Blueprint. Placeholder “persistent-id” is mandatory so it must point to a .properties file, so maybe it’s not through cm-placeholders.
Also, is there a way to replace expressions in .properties files?
Regards,
JP
[@@ OPEN @@]
Re: Environment variables and Blueprint
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Correct, env variables substitution are not directly supports by Aries
blueprint-ext.
Thanks for the Jira Guillaume !
Regards
JB
On 04/13/2015 02:20 PM, Guillaume Nodet wrote:
> Afaik, blueprint does not yet support that.
> However, latest file install should support ${env:xxx} substitution, so
> you could load those from a configuration file, have file install write
> them to configadmin and use blueprint for injection.
> Though, it should not be very difficult to enhance blueprint to support
> that directly : I've just raised
> https://issues.apache.org/jira/browse/ARIES-1311 for that.
>
> 2015-04-13 13:56 GMT+02:00 CLEMENT Jean-Philippe
> <jean-philippe.clement@fr.thalesgroup.com
> <ma...@fr.thalesgroup.com>>:
>
> I wasn't clear, sorry. I'm talking about Unix env variables.
>
> Is there a way to get them?
>
> JP
>
> [@@ OPEN @@]
>
>
> -----Message d'origine-----
> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net
> <ma...@nanthrax.net>]
> Envoyé : lundi 13 avril 2015 13:38
> À : user@karaf.apache.org <ma...@karaf.apache.org>
> Objet : Re: Environment variables and Blueprint
>
> Did you try:
>
> <ext:property-placeholder placeholder-prefix="$["
> placeholder-suffix="]"/>
>
> ?
>
> By system variables, do you mean JVM -Dkey=value or directly Unix
> env variables ?
>
> When I talk about system variables, it's -D args to the JVM. The
> later is env variable.
>
> Regards
> JB
>
> On 04/13/2015 01:17 PM, CLEMENT Jean-Philippe wrote:
> > Hi JB,
> >
> > We did try with ext but it did not work: ${TOTO} to retrieve the
> $TOTO variable.
> >
> > What is the naming convention?
> >
> > JP
> >
> > [@@ OPEN @@]
> >
> >
> > -----Message d'origine-----
> > De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net
> <ma...@nanthrax.net>] Envoyé : lundi 13
> > avril 2015 10:28 À : user@karaf.apache.org
> <ma...@karaf.apache.org> Objet : Re: Environment
> > variables and Blueprint
> >
> > Hi JP,
> >
> > you can use Aries blueprint-ext and directly use ${} where the
> key is the system variable.
> >
> > Regards
> > JB
> >
> > On 04/13/2015 10:14 AM, CLEMENT Jean-Philippe wrote:
> >> Dear Karaf-ers,
> >>
> >> I would like to retrieve environment variables via Blueprint.
> >> Placeholder “persistent-id” is mandatory so it must point to a
> >> .properties file, so maybe it’s not through cm-placeholders.
> >>
> >> Also, is there a way to replace expressions in .properties files?
> >>
> >> Regards,
> >>
> >> JP
> >>
> >> [@@ OPEN @@]
> >>
> >
> > --
> > Jean-Baptiste Onofré
> > jbonofre@apache.org <ma...@apache.org>
> > http://blog.nanthrax.net
> > Talend - http://www.talend.com
> >
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org <ma...@apache.org>
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: Environment variables and Blueprint
Posted by Guillaume Nodet <gn...@apache.org>.
Afaik, blueprint does not yet support that.
However, latest file install should support ${env:xxx} substitution, so you
could load those from a configuration file, have file install write them to
configadmin and use blueprint for injection.
Though, it should not be very difficult to enhance blueprint to support
that directly : I've just raised
https://issues.apache.org/jira/browse/ARIES-1311 for that.
2015-04-13 13:56 GMT+02:00 CLEMENT Jean-Philippe <
jean-philippe.clement@fr.thalesgroup.com>:
> I wasn't clear, sorry. I'm talking about Unix env variables.
>
> Is there a way to get them?
>
> JP
>
> [@@ OPEN @@]
>
>
> -----Message d'origine-----
> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net]
> Envoyé : lundi 13 avril 2015 13:38
> À : user@karaf.apache.org
> Objet : Re: Environment variables and Blueprint
>
> Did you try:
>
> <ext:property-placeholder placeholder-prefix="$[" placeholder-suffix="]"/>
>
> ?
>
> By system variables, do you mean JVM -Dkey=value or directly Unix env
> variables ?
>
> When I talk about system variables, it's -D args to the JVM. The later is
> env variable.
>
> Regards
> JB
>
> On 04/13/2015 01:17 PM, CLEMENT Jean-Philippe wrote:
> > Hi JB,
> >
> > We did try with ext but it did not work: ${TOTO} to retrieve the $TOTO
> variable.
> >
> > What is the naming convention?
> >
> > JP
> >
> > [@@ OPEN @@]
> >
> >
> > -----Message d'origine-----
> > De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : lundi 13
> > avril 2015 10:28 À : user@karaf.apache.org Objet : Re: Environment
> > variables and Blueprint
> >
> > Hi JP,
> >
> > you can use Aries blueprint-ext and directly use ${} where the key is
> the system variable.
> >
> > Regards
> > JB
> >
> > On 04/13/2015 10:14 AM, CLEMENT Jean-Philippe wrote:
> >> Dear Karaf-ers,
> >>
> >> I would like to retrieve environment variables via Blueprint.
> >> Placeholder “persistent-id” is mandatory so it must point to a
> >> .properties file, so maybe it’s not through cm-placeholders.
> >>
> >> Also, is there a way to replace expressions in .properties files?
> >>
> >> Regards,
> >>
> >> JP
> >>
> >> [@@ OPEN @@]
> >>
> >
> > --
> > Jean-Baptiste Onofré
> > jbonofre@apache.org
> > http://blog.nanthrax.net
> > Talend - http://www.talend.com
> >
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
RE: Environment variables and Blueprint
Posted by CLEMENT Jean-Philippe <je...@fr.thalesgroup.com>.
Ext placeholder does not seem to resolve variables set in the custom.properties file.
Is there anything to configure?
PS: thank you all for your answers! :)
JP
[@@ OPEN @@]
De : Guillaume Nodet [mailto:gnodet@apache.org]
Envoyé : lundi 13 avril 2015 15:21
À : user
Objet : Re: Environment variables and Blueprint
To use env variables in etc/custom.properties, you should be able to do
my.system.property = ${env:MY_ENV_VAR}
and then, you should be able to use ${my.system.property} in blueprint files.
2015-04-13 14:32 GMT+02:00 Jean-Baptiste Onofré <jb...@nanthrax.net>>:
In that case, you can also use etc/custom.properties
Regards
JB
On 04/13/2015 02:24 PM, Charlie Mordant wrote:
Hi Jean Philippe,
Just pass your Unix env variable as VM arguments when you start your
VM/Karaf!
./karaf -DmyVMKey=$MyUnixENVVar
There's also a Karaf file in the bin folder where you can put your VM
args (env file).
Regards,
2015-04-13 13:56 GMT+02:00 CLEMENT Jean-Philippe
<je...@fr.thalesgroup.com>
<ma...@fr.thalesgroup.com>>>:
I wasn't clear, sorry. I'm talking about Unix env variables.
Is there a way to get them?
JP
[@@ OPEN @@]
-----Message d'origine-----
De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net<ma...@nanthrax.net>
<ma...@nanthrax.net>>]
Envoyé : lundi 13 avril 2015 13:38
À : user@karaf.apache.org<ma...@karaf.apache.org> <ma...@karaf.apache.org>>
Objet : Re: Environment variables and Blueprint
Did you try:
<ext:property-placeholder placeholder-prefix="$["
placeholder-suffix="]"/>
?
By system variables, do you mean JVM -Dkey=value or directly Unix
env variables ?
When I talk about system variables, it's -D args to the JVM. The
later is env variable.
Regards
JB
On 04/13/2015 01:17 PM, CLEMENT Jean-Philippe wrote:
> Hi JB,
>
> We did try with ext but it did not work: ${TOTO} to retrieve the
$TOTO variable.
>
> What is the naming convention?
>
> JP
>
> [@@ OPEN @@]
>
>
> -----Message d'origine-----
> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net<ma...@nanthrax.net>
<ma...@nanthrax.net>>] Envoyé : lundi 13
> avril 2015 10:28 À : user@karaf.apache.org<ma...@karaf.apache.org>
<ma...@karaf.apache.org>> Objet : Re: Environment
> variables and Blueprint
>
> Hi JP,
>
> you can use Aries blueprint-ext and directly use ${} where the
key is the system variable.
>
> Regards
> JB
>
> On 04/13/2015 10:14 AM, CLEMENT Jean-Philippe wrote:
>> Dear Karaf-ers,
>>
>> I would like to retrieve environment variables via Blueprint.
>> Placeholder “persistent-id” is mandatory so it must point to a
>> .properties file, so maybe it’s not through cm-placeholders.
>>
>> Also, is there a way to replace expressions in .properties files?
>>
>> Regards,
>>
>> JP
>>
>> [@@ OPEN @@]
>>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org<ma...@apache.org> <ma...@apache.org>>
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
--
Jean-Baptiste Onofré
jbonofre@apache.org<ma...@apache.org> <ma...@apache.org>>
http://blog.nanthrax.net
Talend - http://www.talend.com
--
Charlie Mordant
Full OSGI/EE stack made with Karaf:
https://github.com/OsgiliathEnterprise/net.osgiliath.parent
--
Jean-Baptiste Onofré
jbonofre@apache.org<ma...@apache.org>
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: Environment variables and Blueprint
Posted by Guillaume Nodet <gn...@apache.org>.
To use env variables in etc/custom.properties, you should be able to do
my.system.property = ${env:MY_ENV_VAR}
and then, you should be able to use ${my.system.property} in blueprint
files.
2015-04-13 14:32 GMT+02:00 Jean-Baptiste Onofré <jb...@nanthrax.net>:
> In that case, you can also use etc/custom.properties
>
> Regards
> JB
>
> On 04/13/2015 02:24 PM, Charlie Mordant wrote:
>
>> Hi Jean Philippe,
>>
>> Just pass your Unix env variable as VM arguments when you start your
>> VM/Karaf!
>>
>> ./karaf -DmyVMKey=$MyUnixENVVar
>>
>> There's also a Karaf file in the bin folder where you can put your VM
>> args (env file).
>>
>> Regards,
>>
>> 2015-04-13 13:56 GMT+02:00 CLEMENT Jean-Philippe
>> <jean-philippe.clement@fr.thalesgroup.com
>> <ma...@fr.thalesgroup.com>>:
>>
>> I wasn't clear, sorry. I'm talking about Unix env variables.
>>
>> Is there a way to get them?
>>
>> JP
>>
>> [@@ OPEN @@]
>>
>>
>> -----Message d'origine-----
>> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net
>> <ma...@nanthrax.net>]
>> Envoyé : lundi 13 avril 2015 13:38
>> À : user@karaf.apache.org <ma...@karaf.apache.org>
>> Objet : Re: Environment variables and Blueprint
>>
>> Did you try:
>>
>> <ext:property-placeholder placeholder-prefix="$["
>> placeholder-suffix="]"/>
>>
>> ?
>>
>> By system variables, do you mean JVM -Dkey=value or directly Unix
>> env variables ?
>>
>> When I talk about system variables, it's -D args to the JVM. The
>> later is env variable.
>>
>> Regards
>> JB
>>
>> On 04/13/2015 01:17 PM, CLEMENT Jean-Philippe wrote:
>> > Hi JB,
>> >
>> > We did try with ext but it did not work: ${TOTO} to retrieve the
>> $TOTO variable.
>> >
>> > What is the naming convention?
>> >
>> > JP
>> >
>> > [@@ OPEN @@]
>> >
>> >
>> > -----Message d'origine-----
>> > De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net
>> <ma...@nanthrax.net>] Envoyé : lundi 13
>> > avril 2015 10:28 À : user@karaf.apache.org
>> <ma...@karaf.apache.org> Objet : Re: Environment
>> > variables and Blueprint
>> >
>> > Hi JP,
>> >
>> > you can use Aries blueprint-ext and directly use ${} where the
>> key is the system variable.
>> >
>> > Regards
>> > JB
>> >
>> > On 04/13/2015 10:14 AM, CLEMENT Jean-Philippe wrote:
>> >> Dear Karaf-ers,
>> >>
>> >> I would like to retrieve environment variables via Blueprint.
>> >> Placeholder “persistent-id” is mandatory so it must point to a
>> >> .properties file, so maybe it’s not through cm-placeholders.
>> >>
>> >> Also, is there a way to replace expressions in .properties files?
>> >>
>> >> Regards,
>> >>
>> >> JP
>> >>
>> >> [@@ OPEN @@]
>> >>
>> >
>> > --
>> > Jean-Baptiste Onofré
>> > jbonofre@apache.org <ma...@apache.org>
>> > http://blog.nanthrax.net
>> > Talend - http://www.talend.com
>> >
>>
>> --
>> Jean-Baptiste Onofré
>> jbonofre@apache.org <ma...@apache.org>
>> http://blog.nanthrax.net
>> Talend - http://www.talend.com
>>
>>
>>
>>
>> --
>> Charlie Mordant
>>
>> Full OSGI/EE stack made with Karaf:
>> https://github.com/OsgiliathEnterprise/net.osgiliath.parent
>>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
Re: Environment variables and Blueprint
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
In that case, you can also use etc/custom.properties
Regards
JB
On 04/13/2015 02:24 PM, Charlie Mordant wrote:
> Hi Jean Philippe,
>
> Just pass your Unix env variable as VM arguments when you start your
> VM/Karaf!
>
> ./karaf -DmyVMKey=$MyUnixENVVar
>
> There's also a Karaf file in the bin folder where you can put your VM
> args (env file).
>
> Regards,
>
> 2015-04-13 13:56 GMT+02:00 CLEMENT Jean-Philippe
> <jean-philippe.clement@fr.thalesgroup.com
> <ma...@fr.thalesgroup.com>>:
>
> I wasn't clear, sorry. I'm talking about Unix env variables.
>
> Is there a way to get them?
>
> JP
>
> [@@ OPEN @@]
>
>
> -----Message d'origine-----
> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net
> <ma...@nanthrax.net>]
> Envoyé : lundi 13 avril 2015 13:38
> À : user@karaf.apache.org <ma...@karaf.apache.org>
> Objet : Re: Environment variables and Blueprint
>
> Did you try:
>
> <ext:property-placeholder placeholder-prefix="$["
> placeholder-suffix="]"/>
>
> ?
>
> By system variables, do you mean JVM -Dkey=value or directly Unix
> env variables ?
>
> When I talk about system variables, it's -D args to the JVM. The
> later is env variable.
>
> Regards
> JB
>
> On 04/13/2015 01:17 PM, CLEMENT Jean-Philippe wrote:
> > Hi JB,
> >
> > We did try with ext but it did not work: ${TOTO} to retrieve the
> $TOTO variable.
> >
> > What is the naming convention?
> >
> > JP
> >
> > [@@ OPEN @@]
> >
> >
> > -----Message d'origine-----
> > De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net
> <ma...@nanthrax.net>] Envoyé : lundi 13
> > avril 2015 10:28 À : user@karaf.apache.org
> <ma...@karaf.apache.org> Objet : Re: Environment
> > variables and Blueprint
> >
> > Hi JP,
> >
> > you can use Aries blueprint-ext and directly use ${} where the
> key is the system variable.
> >
> > Regards
> > JB
> >
> > On 04/13/2015 10:14 AM, CLEMENT Jean-Philippe wrote:
> >> Dear Karaf-ers,
> >>
> >> I would like to retrieve environment variables via Blueprint.
> >> Placeholder “persistent-id” is mandatory so it must point to a
> >> .properties file, so maybe it’s not through cm-placeholders.
> >>
> >> Also, is there a way to replace expressions in .properties files?
> >>
> >> Regards,
> >>
> >> JP
> >>
> >> [@@ OPEN @@]
> >>
> >
> > --
> > Jean-Baptiste Onofré
> > jbonofre@apache.org <ma...@apache.org>
> > http://blog.nanthrax.net
> > Talend - http://www.talend.com
> >
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org <ma...@apache.org>
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
>
>
>
> --
> Charlie Mordant
>
> Full OSGI/EE stack made with Karaf:
> https://github.com/OsgiliathEnterprise/net.osgiliath.parent
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: Environment variables and Blueprint
Posted by Charlie Mordant <cm...@gmail.com>.
Hi Jean Philippe,
Just pass your Unix env variable as VM arguments when you start your
VM/Karaf!
./karaf -DmyVMKey=$MyUnixENVVar
There's also a Karaf file in the bin folder where you can put your VM args
(env file).
Regards,
2015-04-13 13:56 GMT+02:00 CLEMENT Jean-Philippe <
jean-philippe.clement@fr.thalesgroup.com>:
> I wasn't clear, sorry. I'm talking about Unix env variables.
>
> Is there a way to get them?
>
> JP
>
> [@@ OPEN @@]
>
>
> -----Message d'origine-----
> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net]
> Envoyé : lundi 13 avril 2015 13:38
> À : user@karaf.apache.org
> Objet : Re: Environment variables and Blueprint
>
> Did you try:
>
> <ext:property-placeholder placeholder-prefix="$[" placeholder-suffix="]"/>
>
> ?
>
> By system variables, do you mean JVM -Dkey=value or directly Unix env
> variables ?
>
> When I talk about system variables, it's -D args to the JVM. The later is
> env variable.
>
> Regards
> JB
>
> On 04/13/2015 01:17 PM, CLEMENT Jean-Philippe wrote:
> > Hi JB,
> >
> > We did try with ext but it did not work: ${TOTO} to retrieve the $TOTO
> variable.
> >
> > What is the naming convention?
> >
> > JP
> >
> > [@@ OPEN @@]
> >
> >
> > -----Message d'origine-----
> > De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : lundi 13
> > avril 2015 10:28 À : user@karaf.apache.org Objet : Re: Environment
> > variables and Blueprint
> >
> > Hi JP,
> >
> > you can use Aries blueprint-ext and directly use ${} where the key is
> the system variable.
> >
> > Regards
> > JB
> >
> > On 04/13/2015 10:14 AM, CLEMENT Jean-Philippe wrote:
> >> Dear Karaf-ers,
> >>
> >> I would like to retrieve environment variables via Blueprint.
> >> Placeholder “persistent-id” is mandatory so it must point to a
> >> .properties file, so maybe it’s not through cm-placeholders.
> >>
> >> Also, is there a way to replace expressions in .properties files?
> >>
> >> Regards,
> >>
> >> JP
> >>
> >> [@@ OPEN @@]
> >>
> >
> > --
> > Jean-Baptiste Onofré
> > jbonofre@apache.org
> > http://blog.nanthrax.net
> > Talend - http://www.talend.com
> >
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
--
Charlie Mordant
Full OSGI/EE stack made with Karaf:
https://github.com/OsgiliathEnterprise/net.osgiliath.parent
RE: Environment variables and Blueprint
Posted by CLEMENT Jean-Philippe <je...@fr.thalesgroup.com>.
I wasn't clear, sorry. I'm talking about Unix env variables.
Is there a way to get them?
JP
[@@ OPEN @@]
-----Message d'origine-----
De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net]
Envoyé : lundi 13 avril 2015 13:38
À : user@karaf.apache.org
Objet : Re: Environment variables and Blueprint
Did you try:
<ext:property-placeholder placeholder-prefix="$[" placeholder-suffix="]"/>
?
By system variables, do you mean JVM -Dkey=value or directly Unix env variables ?
When I talk about system variables, it's -D args to the JVM. The later is env variable.
Regards
JB
On 04/13/2015 01:17 PM, CLEMENT Jean-Philippe wrote:
> Hi JB,
>
> We did try with ext but it did not work: ${TOTO} to retrieve the $TOTO variable.
>
> What is the naming convention?
>
> JP
>
> [@@ OPEN @@]
>
>
> -----Message d'origine-----
> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net] Envoyé : lundi 13
> avril 2015 10:28 À : user@karaf.apache.org Objet : Re: Environment
> variables and Blueprint
>
> Hi JP,
>
> you can use Aries blueprint-ext and directly use ${} where the key is the system variable.
>
> Regards
> JB
>
> On 04/13/2015 10:14 AM, CLEMENT Jean-Philippe wrote:
>> Dear Karaf-ers,
>>
>> I would like to retrieve environment variables via Blueprint.
>> Placeholder “persistent-id” is mandatory so it must point to a
>> .properties file, so maybe it’s not through cm-placeholders.
>>
>> Also, is there a way to replace expressions in .properties files?
>>
>> Regards,
>>
>> JP
>>
>> [@@ OPEN @@]
>>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: Environment variables and Blueprint
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Did you try:
<ext:property-placeholder placeholder-prefix="$[" placeholder-suffix="]"/>
?
By system variables, do you mean JVM -Dkey=value or directly Unix env
variables ?
When I talk about system variables, it's -D args to the JVM. The later
is env variable.
Regards
JB
On 04/13/2015 01:17 PM, CLEMENT Jean-Philippe wrote:
> Hi JB,
>
> We did try with ext but it did not work: ${TOTO} to retrieve the $TOTO variable.
>
> What is the naming convention?
>
> JP
>
> [@@ OPEN @@]
>
>
> -----Message d'origine-----
> De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net]
> Envoyé : lundi 13 avril 2015 10:28
> À : user@karaf.apache.org
> Objet : Re: Environment variables and Blueprint
>
> Hi JP,
>
> you can use Aries blueprint-ext and directly use ${} where the key is the system variable.
>
> Regards
> JB
>
> On 04/13/2015 10:14 AM, CLEMENT Jean-Philippe wrote:
>> Dear Karaf-ers,
>>
>> I would like to retrieve environment variables via Blueprint.
>> Placeholder “persistent-id” is mandatory so it must point to a
>> .properties file, so maybe it’s not through cm-placeholders.
>>
>> Also, is there a way to replace expressions in .properties files?
>>
>> Regards,
>>
>> JP
>>
>> [@@ OPEN @@]
>>
>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
RE: Environment variables and Blueprint
Posted by CLEMENT Jean-Philippe <je...@fr.thalesgroup.com>.
Hi JB,
We did try with ext but it did not work: ${TOTO} to retrieve the $TOTO variable.
What is the naming convention?
JP
[@@ OPEN @@]
-----Message d'origine-----
De : Jean-Baptiste Onofré [mailto:jb@nanthrax.net]
Envoyé : lundi 13 avril 2015 10:28
À : user@karaf.apache.org
Objet : Re: Environment variables and Blueprint
Hi JP,
you can use Aries blueprint-ext and directly use ${} where the key is the system variable.
Regards
JB
On 04/13/2015 10:14 AM, CLEMENT Jean-Philippe wrote:
> Dear Karaf-ers,
>
> I would like to retrieve environment variables via Blueprint.
> Placeholder “persistent-id” is mandatory so it must point to a
> .properties file, so maybe it’s not through cm-placeholders.
>
> Also, is there a way to replace expressions in .properties files?
>
> Regards,
>
> JP
>
> [@@ OPEN @@]
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: Environment variables and Blueprint
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi JP,
you can use Aries blueprint-ext and directly use ${} where the key is
the system variable.
Regards
JB
On 04/13/2015 10:14 AM, CLEMENT Jean-Philippe wrote:
> Dear Karaf-ers,
>
> I would like to retrieve environment variables via Blueprint.
> Placeholder “persistent-id” is mandatory so it must point to a
> .properties file, so maybe it’s not through cm-placeholders.
>
> Also, is there a way to replace expressions in .properties files?
>
> Regards,
>
> JP
>
> [@@ OPEN @@]
>
--
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com