org.apache.ivy.Ivy.getLoggerEngine()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(2.8k)|赞(0)|评价(0)|浏览(82)

本文整理了Java中org.apache.ivy.Ivy.getLoggerEngine()方法的一些代码示例,展示了Ivy.getLoggerEngine()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Ivy.getLoggerEngine()方法的具体详情如下:
包路径:org.apache.ivy.Ivy
类名称:Ivy
方法名:getLoggerEngine

Ivy.getLoggerEngine介绍

暂无

代码示例

代码示例来源:origin: org.apache.ivy/ivy

public MessageLogger getMessageLogger() {
  // calling getIvy() instead of peekIvy() is not possible here: it will initialize a default
  // Ivy instance, with default settings, but settings themselves may log messages and lead to
  // a call to this method. So we use the current Ivy instance if any, or the default Ivy
  // instance, or the default MessageLogger.
  Ivy ivy = peekIvy();
  if (ivy == null) {
    if (defaultIvy == null) {
      return Message.getDefaultLogger();
    } else {
      return defaultIvy.getLoggerEngine();
    }
  } else {
    return ivy.getLoggerEngine();
  }
}

代码示例来源:origin: org.apache.ivy/ivy

public void taskFinished(BuildEvent event) {
  // NB: There is somtimes task created by an other task
  // in that case, we should not uninit Message. The log should stay associated
  // with the initial task, except if it was an antcall, ant or subant target
  // NB2 : Testing the identity of the task is not enought, event.getTask() return
  // an instance of UnknownElement is wrapping the concrete instance
  stackDepth--;
  if (stackDepth == -1) {
    ivy.getLoggerEngine().popLogger();
    event.getProject().removeBuildListener(this);
  }
}

代码示例来源:origin: org.apache.ivy/ivy

private static void initMessage(CommandLine line, Ivy ivy) {
  if (line.hasOption("debug")) {
    ivy.getLoggerEngine().pushLogger(new DefaultMessageLogger(Message.MSG_DEBUG));
  } else if (line.hasOption("verbose")) {
    ivy.getLoggerEngine().pushLogger(new DefaultMessageLogger(Message.MSG_VERBOSE));
  } else if (line.hasOption("warn")) {
    ivy.getLoggerEngine().pushLogger(new DefaultMessageLogger(Message.MSG_WARN));
  } else if (line.hasOption("error")) {
    ivy.getLoggerEngine().pushLogger(new DefaultMessageLogger(Message.MSG_ERR));
  } else {
    ivy.getLoggerEngine().pushLogger(new DefaultMessageLogger(Message.MSG_INFO));
  }
}

代码示例来源:origin: org.jenkins-ci.plugins/ivytrigger

ivy.getLoggerEngine().pushLogger(new IvyTriggerResolverLog(log, debug));
for (Map.Entry<String, String> entry : variables.entrySet()) {
  ivy.setVariable(entry.getKey(), entry.getValue());

代码示例来源:origin: com.google.code.maven-play-plugin.org.playframework/play

ivy.getLoggerEngine().pushLogger(new DefaultMessageLogger(Message.MSG_DEBUG));
} else if (verbose) {
  ivy.getLoggerEngine().pushLogger(new DefaultMessageLogger(Message.MSG_INFO));
} else {
  ivy.getLoggerEngine().setDefaultLogger(this.logger);

代码示例来源:origin: org.apache.ivy/ivy

MessageLogger current = ivy.getLoggerEngine().peekLogger();
if (current instanceof AntMessageLogger && task instanceof Task
    && ((AntMessageLogger) current).task instanceof Task) {
ivy.getLoggerEngine().pushLogger(logger);
task.getProject().addBuildListener(new BuildListener() {
  private int stackDepth = 0;

代码示例来源:origin: org.apache.ivy/ivy

ivy.getLoggerEngine().popLogger();
ivy.popContext();

相关文章