diff --git a/.idea/compiler.xml b/.idea/compiler.xml index 1bd2adab38..360c6ff7bd 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -71,6 +71,9 @@ + + + diff --git a/docs/source/changelog.rst b/docs/source/changelog.rst index e3be980710..480f187ce6 100644 --- a/docs/source/changelog.rst +++ b/docs/source/changelog.rst @@ -6,6 +6,8 @@ from the previous milestone release. UNRELEASED ---------- +* ``ConfigUtilities`` now read system properties for a node. This allow to specify data source properties at runtime. + * ``OpaqueBytes.bytes`` now returns a clone of its underlying ``ByteArray``, and has been redeclared as ``final``. This is a minor change to the public API, but is required to ensure that classes like ``SecureHash`` are immutable. diff --git a/node/src/main/kotlin/net/corda/node/services/config/ConfigUtilities.kt b/node/src/main/kotlin/net/corda/node/services/config/ConfigUtilities.kt index 0c02826cf6..b3cec7de64 100644 --- a/node/src/main/kotlin/net/corda/node/services/config/ConfigUtilities.kt +++ b/node/src/main/kotlin/net/corda/node/services/config/ConfigUtilities.kt @@ -29,6 +29,7 @@ object ConfigHelper { val appConfig = ConfigFactory.parseFile(configFile.toFile(), parseOptions.setAllowMissing(allowMissingConfig)) val finalConfig = configOverrides // Add substitution values here + .withFallback(ConfigFactory.systemProperties()) .withFallback( configOf("baseDirectory" to baseDirectory.toString())) .withFallback(appConfig) .withFallback(defaultConfig)