public class BndHelper
extends java.lang.Object
| Constructor and Description |
|---|
BndHelper() |
| Modifier and Type | Method and Description |
|---|---|
static void |
buildAndClose(aQute.bnd.osgi.Builder b,
java.io.File target)
Build the bnd configuration present in the given builder and write the bundle
to the target file.
|
static aQute.bnd.osgi.Builder |
createBuilder()
Create a default builder.
|
static aQute.libg.tuple.Pair<java.lang.String,java.util.List<java.lang.String>> |
getSymbolicNameAndPackageImports(java.io.File bundle)
Creates a
Pair with the as
first value and a list of imported packages as second value of the given
bundle, but without meta data like version and others . |
static boolean |
wrap(java.io.File source,
java.util.Collection<java.io.File> classpath,
java.io.File target,
java.util.Map<java.lang.String,java.lang.String> properties,
boolean removeSignature)
Wrap a Jar as it is, only changing the manifest.
|
public static aQute.bnd.osgi.Builder createBuilder()
public static void buildAndClose(aQute.bnd.osgi.Builder b,
java.io.File target)
throws java.lang.Exception
b - the buildertarget - the target filejava.lang.Exception - if creating the bundle failspublic static boolean wrap(java.io.File source,
java.util.Collection<java.io.File> classpath,
java.io.File target,
java.util.Map<java.lang.String,java.lang.String> properties,
boolean removeSignature)
throws java.lang.Exception
source - the source jarclasspath - the class pathtarget - the target fileproperties - the bnd propertiesjava.lang.Exception - if wrapping the Jar failspublic static aQute.libg.tuple.Pair<java.lang.String,java.util.List<java.lang.String>> getSymbolicNameAndPackageImports(java.io.File bundle)
throws java.lang.Exception
Pair with the as
first value and a list of imported packages as second value of the given
bundle, but without meta data like version and others .bundle - File which is an OSGi bundlePair containing the bundle's Bundle-SymbolicName and a list
of imported packagesjava.lang.Exception