Idiom for setting a property from an environment variable, or default?

Erik Hatcher

Remember, properties are immutable:

  <property environment="env"/>
  <property name="env.FOO_HOME" location="c:/foo"/>
  <property name="foo.home" location="${env.FOO_HOME}"/>
That last line is not needed if you want to use ${env.FOO_HOME}, but its nicer to have a ${foo.home} property.
0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact