Tabnine Logo
Analyzer.parseHeader
Code IndexAdd Tabnine to your IDE (free)

How to use
parseHeader
method
in
aQute.bnd.osgi.Analyzer

Best Java code snippets using aQute.bnd.osgi.Analyzer.parseHeader (Showing top 11 results out of 315)

origin: org.apache.felix/maven-bundle-plugin

Map bundleSymbolicNameHeader = analyzer.parseHeader( symbolicNameAttribute );
origin: biz.aQute.bnd/bnd

public boolean analyzeJar(Analyzer analyzer) throws Exception {
  Parameters map = analyzer.parseHeader(analyzer.getProperty(Constants.METATYPE));
  Jar jar = analyzer.getJar();
  for (String name : map.keySet()) {
    Collection<Clazz> metatypes = analyzer.getClasses("", QUERY.ANNOTATED.toString(), Meta.OCD.class.getName(), //
        QUERY.NAMED.toString(), name //
        );
    for (Clazz c : metatypes) {
      jar.putResource("OSGI-INF/metatype/" + c.getFQN() + ".xml", new MetaTypeReader(c, analyzer));
    }
  }
  return false;
}
@Override
origin: biz.aQute/bndlib

  public boolean analyzeJar(Analyzer analyzer) throws Exception {

    Parameters map = analyzer.parseHeader(analyzer.getProperty(Constants.METATYPE));

    Jar jar = analyzer.getJar();
    for (String name : map.keySet()) {
      Collection<Clazz> metatypes = analyzer.getClasses("", QUERY.ANNOTATED.toString(), Meta.OCD.class.getName(), //
          QUERY.NAMED.toString(), name //
          );
      for (Clazz c : metatypes) {
        jar.putResource("OSGI-INF/metatype/" + c.getFQN() + ".xml", new MetaTypeReader(c, analyzer));
      }
    }
    return false;
  }
}
origin: biz.aQute.bnd/bndlib

public boolean analyzeJar(Analyzer analyzer) throws Exception {
  Parameters map = analyzer.parseHeader(analyzer.getProperty(Constants.METATYPE));
  Jar jar = analyzer.getJar();
  for (String name : map.keySet()) {
    Collection<Clazz> metatypes = analyzer.getClasses("", QUERY.ANNOTATED.toString(), Meta.OCD.class.getName(), //
        QUERY.NAMED.toString(), name //
        );
    for (Clazz c : metatypes) {
      jar.putResource("OSGI-INF/metatype/" + c.getFQN() + ".xml", new MetaTypeReader(c, analyzer));
    }
  }
  return false;
}
@Override
origin: biz.aQute/bndlib

Parameters namesection = parseHeader(getProperties().getProperty(NAMESECTION));
Instructions instructions = new Instructions(namesection);
Set<String> resources = new HashSet<String>(dot.getResources().keySet());
origin: biz.aQute.bnd/biz.aQute.bndlib

Parameters namesection = parseHeader(getProperties().getProperty(NAMESECTION));
Instructions instructions = new Instructions(namesection);
Set<String> resources = new HashSet<>(dot.getResources()
origin: biz.aQute.bnd/bndlib

Parameters namesection = parseHeader(getProperties().getProperty(NAMESECTION));
Instructions instructions = new Instructions(namesection);
Set<String> resources = new HashSet<String>(dot.getResources().keySet());
origin: biz.aQute.bnd/bnd

Parameters namesection = parseHeader(getProperties().getProperty(NAMESECTION));
Instructions instructions = new Instructions(namesection);
Set<String> resources = new HashSet<String>(dot.getResources().keySet());
origin: biz.aQute.bnd/biz.aQute.bnd

Parameters namesection = parseHeader(getProperties().getProperty(NAMESECTION));
Instructions instructions = new Instructions(namesection);
Set<String> resources = new HashSet<>(dot.getResources()
origin: org.apache.felix/maven-bundle-plugin

    + project.getVersion() );
String exportHeader = osgiJar.getManifest().getMainAttributes().getValue( Analyzer.EXPORT_PACKAGE );
exportedPackages = analyzer.parseHeader( exportHeader ).keySet();
FileUtils.copyFile( project.getArtifact().getFile(), outputFile );
origin: org.apache.felix/maven-bundle-plugin

values = analyzer.parseHeader( importPackages );
aQute.bnd.osgiAnalyzerparseHeader

Popular methods of Analyzer

  • <init>
  • setProperty
  • calcManifest
    One of the main workhorses of this class. This will analyze the current setp and calculate a new man
  • getProperty
  • setJar
    Set the JAR file we are going to work in. This will read the JAR in memory.
  • getJar
  • setProperties
  • getReferred
  • analyze
    Calculates the data structures for generating a manifest.
  • error
  • findClass
    Find a clazz on the class path. This class has been parsed.
  • getBsn
    Clear the key part of a header. I.e. remove everything from the first ';'
  • findClass,
  • getBsn,
  • getClasses,
  • getClasspath,
  • getPackageRef,
  • getProperties,
  • getTypeRef,
  • setBundleSymbolicName,
  • setBundleVersion

Popular in Java

  • Running tasks concurrently on multiple threads
  • onCreateOptionsMenu (Activity)
  • compareTo (BigDecimal)
  • addToBackStack (FragmentTransaction)
  • HttpServer (com.sun.net.httpserver)
    This class implements a simple HTTP server. A HttpServer is bound to an IP address and port number a
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • SortedMap (java.util)
    A map that has its keys ordered. The sorting is according to either the natural ordering of its keys
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • IsNull (org.hamcrest.core)
    Is the value null?
  • Top plugins for WebStorm
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