Properties with substitution using $properties defined in naws

  2 posts   Feedicon  
Replies: 1 - Last Post: May 04, 2009 16:55
by: sauhler
showing 1 - 2 of 2
 
Posted: May 03, 2009 21:15 by digitalrinaldo
Suppose I import a file at startup with properties like this.

a=one
b=two
c=three

d=${a} ${c} ${root}

where a, c were just defined and root is the naws root property. Will this work.
 
Posted: May 04, 2009 16:55 by sauhler
You can use the "-S" flag when using main to launch the server, as in:

java -jar brazil.jar -c cfg1 -c cfg2 -S -c cfg3 ...


Will cause properties in the config files "cfg1" and "cfg2" to be read in. Then
the "-S" flag will cause the ${...} interpolation to happen on those properties. The properties in "cfg3" will not be interpolated, but will be part of the initial server configuration.

S
Replies: 1 - Last Post: May 04, 2009 16:55
by: sauhler
  • Mysql
  • Glassfish
  • Jruby
  • Rails
  • Nblogo
Terms of Use; Privacy Policy;
© 2010, Oracle Corporation and/or its affiliates
(revision 20120127.ac94057)
 
 
Close
loading
Please Confirm
Close