} else {
ServiceRegistryBuilder builder = new ServiceRegistryBuilder();
builder.applySettings(configuration.getProperties());
ServiceRegistry serviceRegistry = builder.buildServiceRegistry();
serviceRegistry.getService( JdbcServices.class );
SchemaExport export = new SchemaExport(serviceRegistry, configuration);
if (null != outputFileName) {
export.setOutputFile(new File(getOutputDirectory(),
outputFileName).toString());
}
if (null != delimiter) {
export.setDelimiter(delimiter);
}
export.setHaltOnError(haltOnError);
export.setFormat(format);
if (drop && create) {
// not just drop or create but both!
export.execute(scriptToConsole, exportToDatabase, false, false);
} else {
export.execute(scriptToConsole, exportToDatabase, drop, create);
}
}
}