try {
PortalShell.LOGGER.info("");
PortalShell.LOGGER.info("");
//DbLoader Script
final DbLoaderConfigBuilder dbLoaderConfig = new DbLoaderConfigBuilder();
dbLoaderConfig.setTablesFile(tablesFile);
dbLoaderConfig.setDataFile(dataFile);
if (StringUtils.isNotBlank(scriptFile)) {
dbLoaderConfig.setScriptFile(scriptFile);
}
dbLoaderConfig.setDropTables(dropTables);
dbLoaderConfig.setCreateTables(createTables);
dbLoaderConfig.setPopulateTables(populateTables);
PortalShell.LOGGER.info("Running DbLoader with: " + dbLoaderConfig);
dbLoader.process(dbLoaderConfig);
}
catch (Exception e) {
throw new RuntimeException(target + " for " + tablesFile + " and " + dataFile + " failed", e);