本文整理了Java中aQute.bnd.osgi.Builder.exception()
方法的一些代码示例,展示了Builder.exception()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Builder.exception()
方法的具体详情如下:
包路径:aQute.bnd.osgi.Builder
类名称: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);
内容来源于网络,如有侵权,请联系作者删除!