本文整理了Java中aQute.bnd.osgi.Jar.getManifest()
方法的一些代码示例,展示了Jar.getManifest()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Jar.getManifest()
方法的具体详情如下:
包路径:aQute.bnd.osgi.Jar
类名称:Jar
方法名:getManifest
暂无
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib
/**
* Make sure we have a manifest
*
* @throws Exception
*/
public void ensureManifest() throws Exception {
if (getManifest() != null)
return;
manifest = new Manifest();
}
代码示例来源:origin: biz.aQute/bndlib
/**
* Make sure we have a manifest
*
* @throws Exception
*/
public void ensureManifest() throws Exception {
if (getManifest() != null)
return;
manifest = new Manifest();
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd
/**
* Make sure we have a manifest
*
* @throws Exception
*/
public void ensureManifest() throws Exception {
if (getManifest() != null)
return;
manifest = new Manifest();
}
代码示例来源:origin: biz.aQute.bnd/bnd
/**
* Make sure we have a manifest
*
* @throws Exception
*/
public void ensureManifest() throws Exception {
if (getManifest() != null)
return;
manifest = new Manifest();
}
代码示例来源:origin: org.apache.felix/maven-bundle-plugin
private boolean isOsgi( Jar jar ) throws Exception
{
if ( jar.getManifest() != null )
{
return jar.getManifest().getMainAttributes().getValue( Analyzer.BUNDLE_NAME ) != null;
}
return false;
}
代码示例来源:origin: biz.aQute.bnd/bndlib
/**
* Make sure we have a manifest
*
* @throws Exception
*/
public void ensureManifest() throws Exception {
if (getManifest() != null)
return;
manifest = new Manifest();
}
代码示例来源:origin: biz.aQute/bndlib
public String getVersion() throws Exception {
check();
Manifest m = getManifest();
if (m == null)
return null;
String s = m.getMainAttributes().getValue(Constants.BUNDLE_VERSION);
if (s == null)
return null;
return s.trim();
}
代码示例来源:origin: biz.aQute/bndlib
private Parameters getExports(Jar jar) throws Exception {
Manifest m = jar.getManifest();
if (m == null)
return new Parameters();
return OSGiHeader.parseHeader(m.getMainAttributes().getValue(Constants.EXPORT_PACKAGE));
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib
private Parameters getExports(Jar jar) throws Exception {
Manifest m = jar.getManifest();
if (m == null)
return new Parameters();
return OSGiHeader.parseHeader(m.getMainAttributes()
.getValue(Constants.EXPORT_PACKAGE));
}
代码示例来源:origin: biz.aQute.bnd/bnd
private Parameters getExports(Jar jar) throws Exception {
Manifest m = jar.getManifest();
if (m == null)
return new Parameters();
return OSGiHeader.parseHeader(m.getMainAttributes().getValue(Constants.EXPORT_PACKAGE));
}
代码示例来源:origin: biz.aQute.bnd/bndlib
private Parameters getExports(Jar jar) throws Exception {
Manifest m = jar.getManifest();
if (m == null)
return new Parameters();
return OSGiHeader.parseHeader(m.getMainAttributes().getValue(Constants.EXPORT_PACKAGE));
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib
public Analyzer(Jar jar) throws Exception {
super();
this.dot = Objects.requireNonNull(jar);
Manifest manifest = dot.getManifest();
if (manifest != null)
copyFrom(Domain.domain(manifest));
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib
public Verifier(Analyzer analyzer) throws Exception {
super(analyzer);
this.analyzer = analyzer;
this.dot = analyzer.getJar();
this.manifest = dot.getManifest();
this.main = Domain.domain(manifest);
}
代码示例来源:origin: biz.aQute/bndlib
/**
* Cleanup the manifest for writing. Cleaning up consists of adding a space
* after any \n to prevent the manifest to see this newline as a delimiter.
*
* @param out
* Output
* @throws IOException
*/
public void writeManifest(OutputStream out) throws Exception {
check();
writeManifest(getManifest(), out);
}
代码示例来源:origin: biz.aQute/bndlib
public Verifier(Analyzer analyzer) throws Exception {
this.analyzer = analyzer;
this.dot = analyzer.getJar();
this.manifest = dot.getManifest();
this.main = Domain.domain(manifest);
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bnd
public Verifier(Analyzer analyzer) throws Exception {
super(analyzer);
this.analyzer = analyzer;
this.dot = analyzer.getJar();
this.manifest = dot.getManifest();
this.main = Domain.domain(manifest);
}
代码示例来源:origin: biz.aQute.bnd/bnd
/**
* Cleanup the manifest for writing. Cleaning up consists of adding a space
* after any \n to prevent the manifest to see this newline as a delimiter.
*
* @param out
* Output
* @throws IOException
*/
public void writeManifest(OutputStream out) throws Exception {
check();
writeManifest(getManifest(), out);
}
代码示例来源:origin: biz.aQute.bnd/bndlib
/**
* Cleanup the manifest for writing. Cleaning up consists of adding a space
* after any \n to prevent the manifest to see this newline as a delimiter.
*
* @param out
* Output
* @throws IOException
*/
public void writeManifest(OutputStream out) throws Exception {
check();
writeManifest(getManifest(), out);
}
代码示例来源:origin: biz.aQute.bnd/biz.aQute.bndlib
/**
* Cleanup the manifest for writing. Cleaning up consists of adding a space
* after any \n to prevent the manifest to see this newline as a delimiter.
*
* @param out Output
* @throws IOException
*/
public void writeManifest(OutputStream out) throws Exception {
check();
stripSignatures();
writeManifest(getManifest(), out);
}
代码示例来源:origin: reficio/p2-maven-plugin
@Test
public void isBundle_emptyManifest() throws Exception {
// given
Jar jar = mock(Jar.class, Mockito.RETURNS_DEEP_STUBS);
when(jar.getManifest().getMainAttributes()).thenReturn(null);
// when
boolean isBundle = utils.isBundle(jar);
// then
assertFalse(isBundle);
}
内容来源于网络,如有侵权,请联系作者删除!