aQute.lib.osgi

Class Builder

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 )*
Constructor Summary
Builder(Processor parent)
Builder()
Method Summary
voidaddSourcepath(File cp)
voidanalyze()
Intercept the call to analyze and cleanup versions after we have analyzed the setup.
Jarbuild()
Jar[]builds()
Build Multiple jars.
voidcleanupVersion(Map<String,Map<String,String>> mapOfMap)
voidclose()
voiddoPom(Jar dot)
Create a POM reseource for Maven containing as much information as possible from the manifest.
protected StringgetImportPackages()
Collection<File>getSourcePath()
BuildergetSubBuilder()
booleanhasSources()
voidremoveBundleSpecificHeaders()
voidsetSourcepath(File[] files)
String_maven_version(String[] args)
A macro to convert a maven version to an OSGi version
String_permissions(String[] args)

Constructor Detail

Builder

public Builder(Processor parent)

Builder

public Builder()

Method Detail

addSourcepath

public void addSourcepath(File cp)

analyze

public void analyze()
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.

build

public Jar build()

builds

public Jar[] builds()
Build Multiple jars. If the -sub command is set, we filter the file with the given patterns.

Returns:

Throws: Exception

cleanupVersion

public void cleanupVersion(Map<String,Map<String,String>> mapOfMap)

close

public void close()

doPom

public void doPom(Jar dot)
Create a POM reseource for Maven containing as much information as possible from the manifest.

Parameters: output builder

Throws: FileNotFoundException IOException

getImportPackages

protected String getImportPackages()

getSourcePath

public Collection<File> getSourcePath()

getSubBuilder

public Builder getSubBuilder()

hasSources

public boolean hasSources()

removeBundleSpecificHeaders

public void removeBundleSpecificHeaders()

setSourcepath

public void setSourcepath(File[] files)

_maven_version

public String _maven_version(String[] args)
A macro to convert a maven version to an OSGi version

_permissions

public String _permissions(String[] args)