config parsing non-strict

This commit is contained in:
Tudor Malene 2018-03-12 11:55:24 +00:00 committed by tudor.malene@gmail.com
parent 46a5684762
commit 5de8b72ae2

View File

@ -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>) {
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))