aQute.lib.osgi
Class Builder

java.lang.Object
  extended by aQute.lib.osgi.Processor
      extended by aQute.lib.osgi.Analyzer
          extended by aQute.lib.osgi.Builder
All Implemented Interfaces:
aQute.lib.reporter.Reporter

public class Builder
extends Analyzer

Include-Resource: ( [name '=' ] file )+ Private-Package: package-decl ( ',' package-decl )* Export-Package: package-decl ( ',' package-decl )* Import-Package: package-decl ( ',' package-decl )*


Field Summary
 
Fields inherited from class aQute.lib.osgi.Analyzer
BND_LASTMODIFIED, BUNDLE_ACTIVATOR, BUNDLE_CLASSPATH, BUNDLE_CONTACTADDRESS, BUNDLE_COPYRIGHT, BUNDLE_DESCRIPTION, BUNDLE_DOCURL, BUNDLE_LICENSE, BUNDLE_LOCALIZATION, BUNDLE_MANIFESTVERSION, BUNDLE_NAME, BUNDLE_NATIVECODE, BUNDLE_REQUIREDEXECUTIONENVIRONMENT, BUNDLE_SYMBOLICNAME, BUNDLE_VENDOR, BUNDLE_VERSION, CLASSPATH, componentDirectives, CONDITIONAL_PACKAGE, CREATED_BY, directives, DONOTCOPY, DYNAMICIMPORT_PACKAGE, EXPORT_CONTENTS, EXPORT_PACKAGE, EXPORT_SERVICE, FAIL_OK, FRAGMENT_HOST, headers, IGNORE_PACKAGE, IMPORT_PACKAGE, IMPORT_SERVICE, INCLUDE, INCLUDE_RESOURCE, NO_IMPORT_DIRECTIVE, NOEXTRAHEADERS, options, PEDANTIC, POM, PRIVATE_PACKAGE, REMOVE_HEADERS, REQUIRE_BUNDLE, SERVICE_COMPONENT, SOURCES, SPLIT_PACKAGE_DIRECTIVE, TOOL
 
Fields inherited from class aQute.lib.osgi.Processor
DEFAULT_BAR_EXTENSION, DEFAULT_BND_EXTENSION, DEFAULT_JAR_EXTENSION
 
Constructor Summary
Builder()
           
 
Method Summary
 void analyze()
          Intercept the call to analyze and cleanup versions after we have analyzed the setup.
 Jar build()
           
 void cleanupVersion(java.util.Map mapOfMap)
           
static java.lang.String cleanupVersion(java.lang.String version)
           
 void close()
           
 void doPom(Jar dot)
          Create a POM reseource for Maven containing as much information as possible from the manifest.
 void setSourcepath(java.io.File[] files)
           
 
Methods inherited from class aQute.lib.osgi.Analyzer
_findname, _findpath, calcManifest, calculateExportsFromContents, doServiceComponent, getBndLastModified, getBndManifest, getBundleClasspath, getClasspath, getContained, getExports, getImports, getJar, getManifest, getProperties, getProperty, getProperty, getReferred, getUnreachable, getUses, getVersion, lastModified, mergeManifest, mergeProperties, mergeProperties, putAll, setBase, setClasspath, setClasspath, setClasspath, setJar, setJar, setProperties, setProperties, setProperty, unsetProperty, updateModified
 
Methods inherited from class aQute.lib.osgi.Processor
analyzeBundleClasspath, error, error, format, getErrors, getFile, getInfo, getPackage, getWarnings, isPedantic, parseHeader, parseHeader, progress, report, setPedantic, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Builder

public Builder()
Method Detail

build

public Jar build()
          throws java.lang.Exception
Throws:
java.lang.Exception

analyze

public void analyze()
             throws java.io.IOException
Intercept the call to analyze and cleanup versions after we have analyzed the setup. We do not want to cleanup if we are going to verify.

Overrides:
analyze in class Analyzer
Throws:
java.io.IOException

cleanupVersion

public void cleanupVersion(java.util.Map mapOfMap)

cleanupVersion

public static java.lang.String cleanupVersion(java.lang.String version)

setSourcepath

public void setSourcepath(java.io.File[] files)

doPom

public void doPom(Jar dot)
           throws java.io.FileNotFoundException,
                  java.io.IOException
Create a POM reseource for Maven containing as much information as possible from the manifest.

Parameters:
output -
builder -
Throws:
java.io.FileNotFoundException
java.io.IOException

close

public void close()
Overrides:
close in class Analyzer