mirror of
https://github.com/corda/corda.git
synced 2024-12-28 00:38:55 +00:00
config parsing non-strict
This commit is contained in:
parent
46a5684762
commit
5de8b72ae2
@ -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<MappedSchema>) {
|
private fun handleCommand(options: OptionSet, baseDirectory: Path, configFile: Path, mode: Mode, classLoader: ClassLoader, schemas: Set<MappedSchema>) {
|
||||||
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 ->
|
fun runMigrationCommand(withMigration: (SchemaMigration) -> Unit): Unit = runWithDataSource(config) { dataSource ->
|
||||||
withMigration(SchemaMigration(schemas, dataSource, true, config.database, classLoader))
|
withMigration(SchemaMigration(schemas, dataSource, true, config.database, classLoader))
|
||||||
|
Loading…
Reference in New Issue
Block a user