From 5de8b72ae2c38d3095b887c49549e19271586ca0 Mon Sep 17 00:00:00 2001 From: Tudor Malene Date: Mon, 12 Mar 2018 11:55:24 +0000 Subject: [PATCH] config parsing non-strict --- .../src/main/kotlin/com/r3/corda/dbmigration/Launcher.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/dbmigration/src/main/kotlin/com/r3/corda/dbmigration/Launcher.kt b/tools/dbmigration/src/main/kotlin/com/r3/corda/dbmigration/Launcher.kt index 306b527a3d..e6a3d08a2d 100644 --- a/tools/dbmigration/src/main/kotlin/com/r3/corda/dbmigration/Launcher.kt +++ b/tools/dbmigration/src/main/kotlin/com/r3/corda/dbmigration/Launcher.kt @@ -139,7 +139,7 @@ private fun runCommand(options: OptionSet, parser: OptionParser) { } private fun handleCommand(options: OptionSet, baseDirectory: Path, configFile: Path, mode: Mode, classLoader: ClassLoader, schemas: Set) { - val config = ConfigFactory.parseFile(configFile.toFile()).resolve().parseAs(Configuration::class) + val config = ConfigFactory.parseFile(configFile.toFile()).resolve().parseAs(Configuration::class, false) fun runMigrationCommand(withMigration: (SchemaMigration) -> Unit): Unit = runWithDataSource(config) { dataSource -> withMigration(SchemaMigration(schemas, dataSource, true, config.database, classLoader))