Re: Setting java system properties in Configuration

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: Setting java system properties in Configuration

Fred Eisele
Is it possible to set default values for properties?
Clearly global default properties can be set via the Properties element.
 1.  <Properties>
 2.  <Property name="name1">value</property>
 3.  <Property name="name2" value="value2"/>
 4.  </Properties>

But I am referring to the java system properties.
 sys ->   System properties. The formats are ${sys:some.property} and
${sys:some.property:-default_value}.

The default value can be set locally as ${sys:some.property:-default_value}
but I am wondering if it can be done globally.
I have tried following approach and it does seem to not work.

<Properties>
 <Property name="sys:some.property">default-value</property>
</Properties>