You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Per Hermansson <he...@bredband.net> on 2009/01/14 21:06:09 UTC

Standard Launcher Main.copySystemProperties

Hi,
The documentation isn't clear about this but when copying system 
properties from the command line
the default launcher only copies properties starting with felix and 
org.osgi.framework.
Wouldn't it be better to copy all properties instead?
Or at least override a configuration property which is also set as a 
system property?

/Per

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Standard Launcher Main.copySystemProperties

Posted by Per Hermansson <he...@bredband.net>.
Richard S. Hall skrev:
> Felix only uses configuration properties started with org.osgi or 
> felix, so there is no point in copying in other properties since Felix 
> will never look at them.
>
> As for bundles, BundleContext.getProperty() is backed by system 
> properties, so it is not necessary to do any copying for bundles.
>
> The main use case for copying the system properties was to allow 
> people to override the configured values in config.properties on the 
> command line (i.e., "-D").
>
> -> richard
>
Ok thanks that explains it
> Per Hermansson wrote:
>> Hi,
>> The documentation isn't clear about this but when copying system 
>> properties from the command line
>> the default launcher only copies properties starting with felix and 
>> org.osgi.framework.
>> Wouldn't it be better to copy all properties instead?
>> Or at least override a configuration property which is also set as a 
>> system property?
>>
>> /Per
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
>> For additional commands, e-mail: users-help@felix.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org


Re: Standard Launcher Main.copySystemProperties

Posted by "Richard S. Hall" <he...@ungoverned.org>.
Felix only uses configuration properties started with org.osgi or felix, 
so there is no point in copying in other properties since Felix will 
never look at them.

As for bundles, BundleContext.getProperty() is backed by system 
properties, so it is not necessary to do any copying for bundles.

The main use case for copying the system properties was to allow people 
to override the configured values in config.properties on the command 
line (i.e., "-D").

-> richard

Per Hermansson wrote:
> Hi,
> The documentation isn't clear about this but when copying system 
> properties from the command line
> the default launcher only copies properties starting with felix and 
> org.osgi.framework.
> Wouldn't it be better to copy all properties instead?
> Or at least override a configuration property which is also set as a 
> system property?
>
> /Per
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org