本文整理了Java中liquibase.Liquibase.reportStatus()
方法的一些代码示例,展示了Liquibase.reportStatus()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Liquibase.reportStatus()
方法的具体详情如下:
包路径:liquibase.Liquibase
类名称:Liquibase
方法名:reportStatus
暂无
代码示例来源:origin: dropwizard/dropwizard
@Override
@SuppressWarnings("UseOfSystemOutOrSystemErr")
public void run(Namespace namespace, Liquibase liquibase) throws Exception {
final Boolean verbose = namespace.getBoolean("verbose");
liquibase.reportStatus(verbose == null ? false : verbose,
getContext(namespace),
new OutputStreamWriter(outputStream, StandardCharsets.UTF_8));
}
代码示例来源:origin: signalapp/Signal-Server
@Override
@SuppressWarnings("UseOfSystemOutOrSystemErr")
public void run(Namespace namespace, Liquibase liquibase) throws Exception {
liquibase.reportStatus(namespace.getBoolean("verbose"),
getContext(namespace),
new OutputStreamWriter(System.out, Charsets.UTF_8));
}
代码示例来源:origin: com.expanset.utils/utils-dbmigration
@Override
protected void doComandInternal(CommandLine commandLine, Liquibase liquidbase)
throws Exception {
final String context = commandLine.getOptionValue(CONTEXT_PROPERTY, null);
liquidbase.reportStatus(true, context, dbMaintenance.createConsoleOutput());
}
}
代码示例来源:origin: io.dropwizard/dropwizard-migrations
@Override
@SuppressWarnings("UseOfSystemOutOrSystemErr")
public void run(Namespace namespace, Liquibase liquibase) throws Exception {
liquibase.reportStatus(MoreObjects.firstNonNull(namespace.getBoolean("verbose"), false),
getContext(namespace),
new OutputStreamWriter(outputStream, StandardCharsets.UTF_8));
}
代码示例来源:origin: org.liquibase/liquibase-maven-plugin
@Override
protected void performLiquibaseTask(Liquibase liquibase)
throws LiquibaseException {
try {
liquibase.reportStatus(true, new Contexts(contexts), new LabelExpression(labels), new OutputStreamWriter(System.out, LiquibaseConfiguration.getInstance().getConfiguration(GlobalConfiguration.class).getOutputEncoding()));
} catch (UnsupportedEncodingException e) {
throw new UnexpectedLiquibaseException(e);
}
}
内容来源于网络,如有侵权,请联系作者删除!