本文整理了Java中aQute.bnd.osgi.Analyzer.analyzeJar()
方法的一些代码示例,展示了Analyzer.analyzeJar()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Analyzer.analyzeJar()
方法的具体详情如下:
包路径:aQute.bnd.osgi.Analyzer
类名称:Analyzer
方法名:analyzeJar
[英]We traverse through all the classes that we can find and calculate the contained and referred set and uses. This method ignores the Bundle classpath.
[中]我们遍历所有可以找到并计算包含和引用的集合和使用的类。此方法忽略Bundle类路径。
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib
private void doConditionalPackages() throws Exception {
//
// We need to find out the contained packages
// again ... so we need to clear any visited
// packages otherwise new packages are not
// added to contained
//
packagesVisited.clear();
for (Jar extra = getExtra(); extra != null; extra = getExtra()) {
dot.addAll(extra);
analyzeJar(extra, "", true);
}
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd
private void doConditionalPackages() throws Exception {
//
// We need to find out the contained packages
// again ... so we need to clear any visited
// packages otherwise new packages are not
// added to contained
//
packagesVisited.clear();
for (Jar extra = getExtra(); extra != null; extra = getExtra()) {
dot.addAll(extra);
analyzeJar(extra, "", true);
}
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd
analyzeJar(dot, "", true);
} else {
boolean okToIncludeDirs = true;
analyzeJar(dot, "", okToIncludeDirs);
continue;
Jar jar = Jar.fromResource(path, resource);
addClose(jar);
analyzeJar(jar, "", true);
} catch (Exception e) {
warning("Invalid bundle classpath entry: %s: %s", path, e);
+ " uses a directory '%s' as well as '.'. This means bnd does not know if a directory is a package.",
path);
analyzeJar(dot, Processor.appendPath(path) + "/", true);
} else {
if (!"optional".equals(info.get(RESOLUTION_DIRECTIVE)))
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib
analyzeJar(dot, "", true);
} else {
boolean okToIncludeDirs = true;
analyzeJar(dot, "", okToIncludeDirs);
continue;
Jar jar = Jar.fromResource(path, resource);
addClose(jar);
analyzeJar(jar, "", true);
} catch (Exception e) {
warning("Invalid bundle classpath entry: %s: %s", path, e);
+ " uses a directory '%s' as well as '.'. This means bnd does not know if a directory is a package.",
path);
analyzeJar(dot, Processor.appendPath(path) + "/", true);
} else {
if (!"optional".equals(info.get(RESOLUTION_DIRECTIVE)))
代码示例来源:origin: biz.aQute.bnd/bndlib
analyzeJar(dot, "", true);
} else {
boolean okToIncludeDirs = true;
analyzeJar(dot, "", okToIncludeDirs);
continue;
addClose(jar);
EmbeddedResource.build(jar, resource);
analyzeJar(jar, "", true);
+ " uses a directory '%s' as well as '.'. This means bnd does not know if a directory is a package.",
path, path);
analyzeJar(dot, Processor.appendPath(path) + "/", true);
} else {
if (!"optional".equals(info.get(RESOLUTION_DIRECTIVE)))
代码示例来源:origin: biz.aQute/bndlib
analyzeJar(dot, "", true);
} else {
boolean okToIncludeDirs = true;
analyzeJar(dot, "", okToIncludeDirs);
continue;
addClose(jar);
EmbeddedResource.build(jar, resource);
analyzeJar(jar, "", true);
warning("Bundle-ClassPath uses a directory '%s' as well as '.'. This means bnd does not know if a directory is a package.",
path, path);
analyzeJar(dot, Processor.appendPath(path) + "/", true);
} else {
if (!"optional".equals(info.get(RESOLUTION_DIRECTIVE)))
代码示例来源:origin: biz.aQute.bnd/bnd
analyzeJar(dot, "", true);
} else {
boolean okToIncludeDirs = true;
analyzeJar(dot, "", okToIncludeDirs);
continue;
addClose(jar);
EmbeddedResource.build(jar, resource);
analyzeJar(jar, "", true);
+ " uses a directory '%s' as well as '.'. This means bnd does not know if a directory is a package.",
path, path);
analyzeJar(dot, Processor.appendPath(path) + "/", true);
} else {
if (!"optional".equals(info.get(RESOLUTION_DIRECTIVE)))
代码示例来源:origin: biz.aQute/bndlib
while (extra != null) {
dot.addAll(extra);
analyzeJar(extra, "", true);
extra = getExtra();
代码示例来源:origin: biz.aQute.bnd/bndlib
analyzeJar(extra, "", true);
extra = getExtra();
代码示例来源:origin: biz.aQute.bnd/bnd
analyzeJar(extra, "", true);
extra = getExtra();
内容来源于网络,如有侵权,请联系作者删除!