aQute.bnd.osgi.Builder.exception()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(2.4k)|赞(0)|评价(0)|浏览(106)

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

Builder.exception介绍

暂无

代码示例

代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib

public Resource process(String source) {
  Instructions make = getMakeHeader();
  logger.debug("make {}", source);
  for (Map.Entry<Instruction, Attrs> entry : make.entrySet()) {
    Instruction instr = entry.getKey();
    Matcher m = instr.getMatcher(source);
    if (m.matches() || instr.isNegated()) {
      Map<String, String> arguments = replace(m, entry.getValue());
      List<MakePlugin> plugins = builder.getPlugins(MakePlugin.class);
      for (MakePlugin plugin : plugins) {
        try {
          Resource resource = plugin.make(builder, source, arguments);
          if (resource != null) {
            logger.debug("Made {} from args {} with {}", source, arguments, plugin);
            return resource;
          }
        } catch (Exception e) {
          builder.exception(e, "Plugin %s generates error when use in making %s with args %s", plugin,
            source, arguments);
        }
      }
    }
  }
  return null;
}

代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd

public Resource process(String source) {
  Instructions make = getMakeHeader();
  logger.debug("make {}", source);
  for (Map.Entry<Instruction, Attrs> entry : make.entrySet()) {
    Instruction instr = entry.getKey();
    Matcher m = instr.getMatcher(source);
    if (m.matches() || instr.isNegated()) {
      Map<String, String> arguments = replace(m, entry.getValue());
      List<MakePlugin> plugins = builder.getPlugins(MakePlugin.class);
      for (MakePlugin plugin : plugins) {
        try {
          Resource resource = plugin.make(builder, source, arguments);
          if (resource != null) {
            logger.debug("Made {} from args {} with {}", source, arguments, plugin);
            return resource;
          }
        } catch (Exception e) {
          builder.exception(e, "Plugin %s generates error when use in making %s with args %s", plugin,
            source, arguments);
        }
      }
    }
  }
  return null;
}

代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib

doneBuild(builder);
} catch (Exception e) {
  builder.exception(e, "Exception Building %s", builder.getBsn());

代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd

doneBuild(builder);
} catch (Exception e) {
  builder.exception(e, "Exception Building %s", builder.getBsn());

代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib

manifest = new Manifest(in);
} catch (Exception e) {
  exception(e, "%s: exception while reading manifest file", MANIFEST);

代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd

manifest = new Manifest(in);
} catch (Exception e) {
  exception(e, "%s: exception while reading manifest file", MANIFEST);

相关文章

Builder类方法