本文整理了Java中aQute.bnd.osgi.Jar.ensureManifest()
方法的一些代码示例,展示了Jar.ensureManifest()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Jar.ensureManifest()
方法的具体详情如下:
包路径:aQute.bnd.osgi.Jar
类名称:Jar
方法名:ensureManifest
[英]Make sure we have a manifest
[中]确保我们有舱单
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd
private Jar getSources(Tool tool, Processor context, String path) throws Exception {
Jar jar = toJar(context, path);
if (jar == null) {
jar = tool.doSource();
}
jar.ensureManifest();
jar.setName("sources"); // set jar name to classifier
tool.addClose(jar);
return jar;
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd
private Jar getJavadoc(Tool tool, Processor context, String path, Map<String, String> options, boolean exports)
throws Exception {
Jar jar = toJar(context, path);
if (jar == null) {
jar = tool.doJavadoc(options, exports);
}
jar.ensureManifest();
jar.setName("javadoc"); // set jar name to classifier
tool.addClose(jar);
return jar;
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.repository
private Jar getSources(Tool tool, Processor context, String path) throws Exception {
Jar jar = toJar(context, path);
if (jar == null) {
jar = tool.doSource();
}
jar.ensureManifest();
jar.setName("sources"); // set jar name to classifier
tool.addClose(jar);
return jar;
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.repository
private Jar getJavadoc(Tool tool, Processor context, String path, Map<String, String> options, boolean exports)
throws Exception {
Jar jar = toJar(context, path);
if (jar == null) {
jar = tool.doJavadoc(options, exports);
}
jar.ensureManifest();
jar.setName("javadoc"); // set jar name to classifier
tool.addClose(jar);
return jar;
}
代码示例来源:origin: biz.aQute/bndlib
private void copyInfo(Jar source, Jar dest, String type) throws Exception {
source.ensureManifest();
dest.ensureManifest();
copyInfoResource(source, dest, "LICENSE");
copyInfoResource(source, dest, "LICENSE.html");
copyInfoResource(source, dest, "about.html");
Manifest sm = source.getManifest();
Manifest dm = dest.getManifest();
copyInfoHeader(sm, dm, "Bundle-Description", "");
copyInfoHeader(sm, dm, "Bundle-Vendor", "");
copyInfoHeader(sm, dm, "Bundle-Copyright", "");
copyInfoHeader(sm, dm, "Bundle-DocURL", "");
copyInfoHeader(sm, dm, "Bundle-License", "");
copyInfoHeader(sm, dm, "Bundle-Name", " " + type);
copyInfoHeader(sm, dm, "Bundle-SymbolicName", "." + type);
copyInfoHeader(sm, dm, "Bundle-Version", "");
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib
private void copyInfo(Jar source, Jar dest, String type) throws Exception {
source.ensureManifest();
dest.ensureManifest();
copyInfoResource(source, dest, "LICENSE");
copyInfoResource(source, dest, "LICENSE.html");
copyInfoResource(source, dest, "about.html");
Manifest sm = source.getManifest();
Manifest dm = dest.getManifest();
copyInfoHeader(sm, dm, Constants.BUNDLE_DESCRIPTION, "");
copyInfoHeader(sm, dm, Constants.BUNDLE_VENDOR, "");
copyInfoHeader(sm, dm, Constants.BUNDLE_COPYRIGHT, "");
copyInfoHeader(sm, dm, Constants.BUNDLE_DOCURL, "");
copyInfoHeader(sm, dm, Constants.BUNDLE_LICENSE, "");
copyInfoHeader(sm, dm, Constants.BUNDLE_NAME, " " + type);
copyInfoHeader(sm, dm, Constants.BUNDLE_SYMBOLICNAME, "." + type);
copyInfoHeader(sm, dm, Constants.BUNDLE_VERSION, "");
}
代码示例来源:origin: biz.aQute.bnd/bndlib
private void copyInfo(Jar source, Jar dest, String type) throws Exception {
source.ensureManifest();
dest.ensureManifest();
copyInfoResource(source, dest, "LICENSE");
copyInfoResource(source, dest, "LICENSE.html");
copyInfoResource(source, dest, "about.html");
Manifest sm = source.getManifest();
Manifest dm = dest.getManifest();
copyInfoHeader(sm, dm, Constants.BUNDLE_DESCRIPTION, "");
copyInfoHeader(sm, dm, Constants.BUNDLE_VENDOR, "");
copyInfoHeader(sm, dm, Constants.BUNDLE_COPYRIGHT, "");
copyInfoHeader(sm, dm, Constants.BUNDLE_DOCURL, "");
copyInfoHeader(sm, dm, Constants.BUNDLE_LICENSE, "");
copyInfoHeader(sm, dm, Constants.BUNDLE_NAME, " " + type);
copyInfoHeader(sm, dm, Constants.BUNDLE_SYMBOLICNAME, "." + type);
copyInfoHeader(sm, dm, Constants.BUNDLE_VERSION, "");
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd
private void copyInfo(Jar source, Jar dest, String type) throws Exception {
source.ensureManifest();
dest.ensureManifest();
copyInfoResource(source, dest, "LICENSE");
copyInfoResource(source, dest, "LICENSE.html");
copyInfoResource(source, dest, "about.html");
Manifest sm = source.getManifest();
Manifest dm = dest.getManifest();
copyInfoHeader(sm, dm, Constants.BUNDLE_DESCRIPTION, "");
copyInfoHeader(sm, dm, Constants.BUNDLE_VENDOR, "");
copyInfoHeader(sm, dm, Constants.BUNDLE_COPYRIGHT, "");
copyInfoHeader(sm, dm, Constants.BUNDLE_DOCURL, "");
copyInfoHeader(sm, dm, Constants.BUNDLE_LICENSE, "");
copyInfoHeader(sm, dm, Constants.BUNDLE_NAME, " " + type);
copyInfoHeader(sm, dm, Constants.BUNDLE_SYMBOLICNAME, "." + type);
copyInfoHeader(sm, dm, Constants.BUNDLE_VERSION, "");
}
代码示例来源:origin: biz.aQute.bnd/bnd
private void copyInfo(Jar source, Jar dest, String type) throws Exception {
source.ensureManifest();
dest.ensureManifest();
copyInfoResource(source, dest, "LICENSE");
copyInfoResource(source, dest, "LICENSE.html");
copyInfoResource(source, dest, "about.html");
Manifest sm = source.getManifest();
Manifest dm = dest.getManifest();
copyInfoHeader(sm, dm, Constants.BUNDLE_DESCRIPTION, "");
copyInfoHeader(sm, dm, Constants.BUNDLE_VENDOR, "");
copyInfoHeader(sm, dm, Constants.BUNDLE_COPYRIGHT, "");
copyInfoHeader(sm, dm, Constants.BUNDLE_DOCURL, "");
copyInfoHeader(sm, dm, Constants.BUNDLE_LICENSE, "");
copyInfoHeader(sm, dm, Constants.BUNDLE_NAME, " " + type);
copyInfoHeader(sm, dm, Constants.BUNDLE_SYMBOLICNAME, "." + type);
copyInfoHeader(sm, dm, Constants.BUNDLE_VERSION, "");
}
内容来源于网络,如有侵权,请联系作者删除!