OxalisCommunity / oxalis

Oxalis - PEPPOL Access Point open source implementation - Core component
Other
129 stars 91 forks source link

Support substitutions in the configuration file #439

Closed darklajid closed 4 years ago

darklajid commented 4 years ago

The underlying library supports substitutions with a syntax like ${User} to reference to a dynamic value. ConfigFactory.parseFile() explicitly does NOT expand/resolve those values though.

Adding a simple Config.resolve() makes sure that all values in the oxalis.conf can use the ${VariableName} syntax and those will be correctly taken from the various supported sources.

Fixes #437