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