Tabnine Logo
Jar.getManifest
Code IndexAdd Tabnine to your IDE (free)

How to use
getManifest
method
in
aQute.bnd.osgi.Jar

Best Java code snippets using aQute.bnd.osgi.Jar.getManifest (Showing top 20 results out of 315)

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);
}
aQute.bnd.osgiJargetManifest

Popular methods of Jar

  • <init>
  • write
  • setManifest
  • close
  • getResource
  • putResource
  • getVersion
    Get the jar version from the Constants#BUNDLE_VERSION manifest header.
  • getResources
  • ensureManifest
    Make sure we have a manifest
  • getBsn
    Get the jar bsn from the Constants#BUNDLE_SYMBOLICNAME manifest header.
  • getDirectories
  • getName
    Make the JAR file name the project name if we get a src or bin directory.
  • getDirectories,
  • getName,
  • getSource,
  • setDoNotTouchManifest,
  • setName,
  • writeManifest,
  • addAll,
  • addDirectory,
  • attributes

Popular in Java

  • Making http requests using okhttp
  • onRequestPermissionsResult (Fragment)
  • getApplicationContext (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Component (java.awt)
    A component is an object having a graphical representation that can be displayed on the screen and t
  • FileNotFoundException (java.io)
    Thrown when a file specified by a program cannot be found.
  • RandomAccessFile (java.io)
    Allows reading from and writing to a file in a random-access manner. This is different from the uni-
  • Hashtable (java.util)
    A plug-in replacement for JDK1.5 java.util.Hashtable. This version is based on org.cliffc.high_scale
  • Manifest (java.util.jar)
    The Manifest class is used to obtain attribute information for a JarFile and its entries.
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • Github Copilot alternatives
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now