|
|
|
Re: Java System Properties as variables in org.eclipse.core.variables [message #508570 is a reply to message #506456] |
Tue, 19 January 2010 12:56 |
Stefan Liebig Messages: 124 Registered: July 2009 |
Senior Member |
|
|
Hi Holger,
Fixed in HEAD!
With e.g. "java.system.property:user.dir" you will get the Java System
Property "user.dir".
As with the previous solution two additional (´synthetical´) properties
"riena.host.name" and "riena.host.address" are available.
Tschüß,
Stefan
On 07.01.2010 16:05, Stefan Liebig wrote:
> Hi Holger,
>
> You are right. This is definitely a better solution.
> I will fix that as soon as possible.
>
> Tschüß,
> Stefan
>
> On 07.01.2010 14:16, Holger Hoch wrote:
>> Hi Stefan,
>>
>> I think it would be better to use an o.e.c.i.v.DynamicVariable with an
>> o.e.c.v.IDynamicVariableResolver providing the system variable name as
>> variable argument (eg "java.lang.System:user.dir"). This makes pretty
>> clear what happes and does not require explicit intialization
>> o.ie.r.i.c.Activator.
>> The 'static' solution provides only a snapsot of the system property
>> values at bundle startup time, but some of the values may change during
>> runtime (eg the value of 'http.proxy').
>> I also think iterating all system variables and creating a new key and a
>> copy of their value while they are always accessible is somewhat of
>> wasting resources without any need. I'm completely aware this does not
>> contribute hours to system startup time, but may littles add up to a
>> lot... I personnaly think this should be avoided in the framework.
>>
>> cheers,
>> --holger
>
|
|
|
|
|
Re: Java System Properties as variables in org.eclipse.core.variables [message #584628 is a reply to message #506456] |
Tue, 19 January 2010 12:56 |
Stefan Liebig Messages: 124 Registered: July 2009 |
Senior Member |
|
|
Hi Holger,
Fixed in HEAD!
With e.g. "java.system.property:user.dir" you will get the Java System
Property "user.dir".
As with the previous solution two additional (´synthetical´) properties
"riena.host.name" and "riena.host.address" are available.
Tschüß,
Stefan
On 07.01.2010 16:05, Stefan Liebig wrote:
> Hi Holger,
>
> You are right. This is definitely a better solution.
> I will fix that as soon as possible.
>
> Tschüß,
> Stefan
>
> On 07.01.2010 14:16, Holger Hoch wrote:
>> Hi Stefan,
>>
>> I think it would be better to use an o.e.c.i.v.DynamicVariable with an
>> o.e.c.v.IDynamicVariableResolver providing the system variable name as
>> variable argument (eg "java.lang.System:user.dir"). This makes pretty
>> clear what happes and does not require explicit intialization
>> o.ie.r.i.c.Activator.
>> The 'static' solution provides only a snapsot of the system property
>> values at bundle startup time, but some of the values may change during
>> runtime (eg the value of 'http.proxy').
>> I also think iterating all system variables and creating a new key and a
>> copy of their value while they are always accessible is somewhat of
>> wasting resources without any need. I'm completely aware this does not
>> contribute hours to system startup time, but may littles add up to a
>> lot... I personnaly think this should be avoided in the framework.
>>
>> cheers,
>> --holger
>
|
|
|
Powered by
FUDForum. Page generated in 0.04987 seconds