本文整理了Java中aQute.bnd.osgi.Builder.getJarsFromName()
方法的一些代码示例,展示了Builder.getJarsFromName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Builder.getJarsFromName()
方法的具体详情如下:
包路径:aQute.bnd.osgi.Builder
类名称:Builder
方法名:getJarsFromName
暂无
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib
List<Jar> sub = getJarsFromName(source, "extract from jar");
if (sub.isEmpty()) {
if (absentIsOk)
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd
List<Jar> sub = getJarsFromName(source, "extract from jar");
if (sub.isEmpty()) {
if (absentIsOk)
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib
private void noSuchFile(Jar jar, String clause, Map<String, String> extra, String source, String destinationPath)
throws Exception {
List<Jar> src = getJarsFromName(source, Constants.INCLUDE_RESOURCE + " " + source);
if (!src.isEmpty()) {
for (Jar j : src) {
String quoted = j.getSource() != null ? j.getSource()
.getName() : j.getName();
// Do not touch the manifest so this also
// works for signed files.
j.setDoNotTouchManifest();
JarResource jarResource = new JarResource(j);
String path = destinationPath.replace(source, quoted);
logger.debug("copy d={} s={} path={}", jar, j, path);
copy(jar, path, jarResource, extra);
}
} else {
Resource lastChance = make.process(source);
if (lastChance != null) {
String x = extra.get("extra");
if (x != null)
lastChance.setExtra(x);
copy(jar, destinationPath, lastChance, extra);
} else
error("Input file does not exist: %s", source).header(source)
.context(clause);
}
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd
private void noSuchFile(Jar jar, String clause, Map<String, String> extra, String source, String destinationPath)
throws Exception {
List<Jar> src = getJarsFromName(source, Constants.INCLUDE_RESOURCE + " " + source);
if (!src.isEmpty()) {
for (Jar j : src) {
String quoted = j.getSource() != null ? j.getSource()
.getName() : j.getName();
// Do not touch the manifest so this also
// works for signed files.
j.setDoNotTouchManifest();
JarResource jarResource = new JarResource(j);
String path = destinationPath.replace(source, quoted);
logger.debug("copy d={} s={} path={}", jar, j, path);
copy(jar, path, jarResource, extra);
}
} else {
Resource lastChance = make.process(source);
if (lastChance != null) {
String x = extra.get("extra");
if (x != null)
lastChance.setExtra(x);
copy(jar, destinationPath, lastChance, extra);
} else
error("Input file does not exist: %s", source).header(source)
.context(clause);
}
}
内容来源于网络,如有侵权,请联系作者删除!