本文整理了Java中aQute.bnd.osgi.Analyzer.close()
方法的一些代码示例,展示了Analyzer.close()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Analyzer.close()
方法的具体详情如下:
包路径:aQute.bnd.osgi.Analyzer
类名称:Analyzer
方法名:close
暂无
代码示例来源:origin: biz.aQute.bnd/bnd
@Override
public void close() {
super.close();
}
代码示例来源:origin: biz.aQute/bndlib
@Override
public void close() {
super.close();
}
代码示例来源:origin: biz.aQute.bnd/bndlib
@Override
public void close() {
super.close();
}
代码示例来源:origin: biz.aQute/bndlib
/**
* Specifically for Maven
*
* @param properties
* the properties
*/
public static Properties getManifest(File dirOrJar) throws Exception {
Analyzer analyzer = new Analyzer();
try {
analyzer.setJar(dirOrJar);
Properties properties = new Properties();
properties.put(IMPORT_PACKAGE, "*");
properties.put(EXPORT_PACKAGE, "*");
analyzer.setProperties(properties);
Manifest m = analyzer.calcManifest();
Properties result = new Properties();
for (Iterator<Object> i = m.getMainAttributes().keySet().iterator(); i.hasNext();) {
Attributes.Name name = (Attributes.Name) i.next();
result.put(name.toString(), m.getMainAttributes().getValue(name));
}
return result;
}
finally {
analyzer.close();
}
}
代码示例来源:origin: biz.aQute.bnd/bnd
Analyzer a = new Analyzer();
out.println(a.getBndVersion());
a.close();
return;
代码示例来源:origin: biz.aQute.bnd/bnd
/**
* Specifically for Maven
*
* @param properties
* the properties
*/
public static Properties getManifest(File dirOrJar) throws Exception {
Analyzer analyzer = new Analyzer();
try {
analyzer.setJar(dirOrJar);
Properties properties = new UTF8Properties();
properties.put(IMPORT_PACKAGE, "*");
properties.put(EXPORT_PACKAGE, "*");
analyzer.setProperties(properties);
Manifest m = analyzer.calcManifest();
Properties result = new UTF8Properties();
for (Iterator<Object> i = m.getMainAttributes().keySet().iterator(); i.hasNext();) {
Attributes.Name name = (Attributes.Name) i.next();
result.put(name.toString(), m.getMainAttributes().getValue(name));
}
return result;
}
finally {
analyzer.close();
}
}
代码示例来源:origin: biz.aQute.bnd/bndlib
/**
* Specifically for Maven
*
* @param properties
* the properties
*/
public static Properties getManifest(File dirOrJar) throws Exception {
Analyzer analyzer = new Analyzer();
try {
analyzer.setJar(dirOrJar);
Properties properties = new UTF8Properties();
properties.put(IMPORT_PACKAGE, "*");
properties.put(EXPORT_PACKAGE, "*");
analyzer.setProperties(properties);
Manifest m = analyzer.calcManifest();
Properties result = new UTF8Properties();
for (Iterator<Object> i = m.getMainAttributes().keySet().iterator(); i.hasNext();) {
Attributes.Name name = (Attributes.Name) i.next();
result.put(name.toString(), m.getMainAttributes().getValue(name));
}
return result;
}
finally {
analyzer.close();
}
}
代码示例来源:origin: biz.aQute/bndlib
/**
* @see aQute.bnd.service.diff.Differ#diff(aQute.lib.resource.Jar,
* aQute.lib.resource.Jar)
*/
public Tree tree(Jar newer) throws Exception {
Analyzer anewer = new Analyzer();
try {
anewer.setJar(newer);
return tree(anewer);
}
finally {
anewer.setJar((Jar) null);
anewer.close();
}
}
代码示例来源:origin: biz.aQute.bnd/bndlib
/**
* @see aQute.bnd.service.diff.Differ#diff(aQute.lib.resource.Jar,
* aQute.lib.resource.Jar)
*/
public Tree tree(Jar newer) throws Exception {
Analyzer anewer = new Analyzer();
try {
anewer.setJar(newer);
return tree(anewer);
}
finally {
anewer.setJar((Jar) null);
anewer.close();
}
}
代码示例来源:origin: org.apache.felix/maven-bundle-plugin
analyzer.close();
代码示例来源:origin: biz.aQute.bnd/bnd
/**
* @see aQute.bnd.service.diff.Differ#diff(aQute.lib.resource.Jar,
* aQute.lib.resource.Jar)
*/
public Tree tree(Jar newer) throws Exception {
Analyzer anewer = new Analyzer();
try {
anewer.setJar(newer);
return tree(anewer);
}
finally {
anewer.setJar((Jar) null);
anewer.close();
}
}
代码示例来源:origin: org.apache.felix/maven-bundle-plugin
analyzer.close();
osgiJar.close();
代码示例来源:origin: org.apache.felix/maven-bundle-plugin
public Manifest getManifest( MavenProject project, DependencyNode dependencyGraph, Map<String, String> instructions, Properties properties, Jar[] classpath,
BuildContext buildContext) throws IOException, MojoFailureException, MojoExecutionException, Exception
{
Analyzer analyzer = getAnalyzer(project, dependencyGraph, instructions, properties, classpath);
Jar jar = analyzer.getJar();
Manifest manifest = jar.getManifest();
if (exportScr)
{
exportScr(analyzer, jar, scrLocation, buildContext, getLog() );
}
// cleanup...
analyzer.close();
return manifest;
}
代码示例来源:origin: reficio/p2-maven-plugin
private void handleVanillaJarWrap(ArtifactBundlerRequest request, ArtifactBundlerInstructions instructions) throws Exception {
Analyzer analyzer = AquteHelper.buildAnalyzer(request, instructions, pedantic);
try {
populateJar(analyzer, request.getBinaryOutputFile());
bundleUtils.reportErrors(analyzer);
removeSignature(request.getBinaryOutputFile());
} finally {
analyzer.close();
}
}
代码示例来源:origin: biz.aQute.bnd/bnd
/**
* Visit each class on the class path.
*
* @param visitor
* the visitor
*/
public void visit(ClassVisitor visitor) throws Exception {
Analyzer analyzer = new Analyzer();
try {
for (File f : entries) {
Jar jar = new Jar(f);
try {
for (String path : jar.getResources().keySet()) {
if (path.endsWith(".class")) {
Resource r = jar.getResource(path);
Clazz c = new Clazz(analyzer, path, r);
c.parseClassFile();
visitor.visit(c);
}
}
}
finally {
jar.close();
}
}
}
finally {
analyzer.close();
}
}
代码示例来源:origin: biz.aQute.bnd/bndlib
/**
* Visit each class on the class path.
*
* @param visitor
* the visitor
*/
public void visit(ClassVisitor visitor) throws Exception {
Analyzer analyzer = new Analyzer();
try {
for (File f : entries) {
Jar jar = new Jar(f);
try {
for (String path : jar.getResources().keySet()) {
if (path.endsWith(".class")) {
Resource r = jar.getResource(path);
Clazz c = new Clazz(analyzer, path, r);
c.parseClassFile();
visitor.visit(c);
}
}
}
finally {
jar.close();
}
}
}
finally {
analyzer.close();
}
}
代码示例来源:origin: biz.aQute.bnd/bnd
@Description("Show the Execution Environments of a JAR")
public void _ees(EEOptions options) throws Exception {
for (String path : options._()) {
File f = getFile(path);
if (!f.isFile()) {
error("Not a file");
} else {
Jar jar = new Jar(f);
Analyzer a = new Analyzer(this);
try {
a.setJar(jar);
a.analyze();
out.printf("%s %s%n", jar.getName(), a.getEEs());
}
finally {
a.close();
}
}
}
}
代码示例来源:origin: biz.aQute.bnd/bnd
analyzer.close();
代码示例来源:origin: biz.aQute.bnd/bnd
wrapper.close();
代码示例来源:origin: biz.aQute.bnd/bnd
getInfo(w);
w.setJar((Jar) null);
w.close();
内容来源于网络,如有侵权,请联系作者删除!