@@ -464,48 +464,48 @@ public void load(Properties props) {
464464 return ;
465465 }
466466 this .properties = props ;
467- dbUsername = getProperty ("username" , dbUsername );
468- dbPassword = getProperty ("password" , dbPassword );
469- dbUrl = getProperty ("url" , dbUrl );
470- dbSchema = getProperty ("schema" , dbSchema );
471- skipMigrationRun = getBool ("skipMigrationRun" , skipMigrationRun );
472- skipChecksum = getBool ("skipChecksum" , skipChecksum );
473- earlyChecksumMode = getBool ("earlyChecksumMode" , earlyChecksumMode );
474- createSchemaIfNotExists = getBool ("createSchemaIfNotExists" , createSchemaIfNotExists );
475- setCurrentSchema = getBool ("setCurrentSchema" , setCurrentSchema );
476- basePlatform = getProperty ("basePlatform" , basePlatform );
477- platform = getProperty ("platform" , getProperty ("platformName" , platform ));
478- metaTable = getProperty ("metaTable" , metaTable );
479- migrationPath = getProperty ("migrationPath" , migrationPath );
480- migrationInitPath = getProperty ("migrationInitPath" , migrationInitPath );
481- runPlaceholders = getProperty ("placeholders" , runPlaceholders );
482- minVersion = getProperty ("minVersion" , minVersion );
483- minVersionFailMessage = getProperty ("minVersionFailMessage" , minVersionFailMessage );
484-
485- String patchInsertOn = getProperty ("patchInsertOn" );
467+ dbUsername = property ("username" , dbUsername );
468+ dbPassword = property ("password" , dbPassword );
469+ dbUrl = property ("url" , dbUrl );
470+ dbSchema = property ("schema" , dbSchema );
471+ skipMigrationRun = property ("skipMigrationRun" , skipMigrationRun );
472+ skipChecksum = property ("skipChecksum" , skipChecksum );
473+ earlyChecksumMode = property ("earlyChecksumMode" , earlyChecksumMode );
474+ createSchemaIfNotExists = property ("createSchemaIfNotExists" , createSchemaIfNotExists );
475+ setCurrentSchema = property ("setCurrentSchema" , setCurrentSchema );
476+ basePlatform = property ("basePlatform" , basePlatform );
477+ platform = property ("platform" , property ("platformName" , platform ));
478+ metaTable = property ("metaTable" , metaTable );
479+ migrationPath = property ("migrationPath" , migrationPath );
480+ migrationInitPath = property ("migrationInitPath" , migrationInitPath );
481+ runPlaceholders = property ("placeholders" , runPlaceholders );
482+ minVersion = property ("minVersion" , minVersion );
483+ minVersionFailMessage = property ("minVersionFailMessage" , minVersionFailMessage );
484+
485+ String patchInsertOn = property ("patchInsertOn" );
486486 if (patchInsertOn != null ) {
487487 setPatchInsertOn (patchInsertOn );
488488 }
489- String patchResetChecksumOn = getProperty ("patchResetChecksumOn" );
489+ String patchResetChecksumOn = property ("patchResetChecksumOn" );
490490 if (patchResetChecksumOn != null ) {
491491 setPatchResetChecksumOn (patchResetChecksumOn );
492492 }
493- String runPlaceholders = getProperty ("runPlaceholders" );
493+ String runPlaceholders = property ("runPlaceholders" );
494494 if (runPlaceholders != null ) {
495495 setRunPlaceholders (runPlaceholders );
496496 }
497497 }
498498
499- private boolean getBool (String key , boolean value ) {
500- String val = getProperty (key );
499+ private boolean property (String key , boolean value ) {
500+ String val = property (key );
501501 return val != null ? Boolean .parseBoolean (val ) : value ;
502502 }
503503
504- private String getProperty (String key ) {
505- return getProperty (key , null );
504+ private String property (String key ) {
505+ return property (key , null );
506506 }
507507
508- private String getProperty (String key , String defaultVal ) {
508+ private String property (String key , String defaultVal ) {
509509 String val = properties .getProperty ("ebean." + name + ".migration." + key );
510510 if (val != null ) {
511511 return val ;
0 commit comments