org.ow2.jonas.extension.loader
Class Bnd
java.lang.Object
org.ow2.jonas.extension.loader.Bnd
public class Bnd
- extends Object
Perform the wrap operation of the bnd tool, force the
DynamicImport-Package
header to '*'.
- Author:
- Guillaume Sauthier
Constructor Summary |
Bnd()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Bnd
public Bnd()
wrap
public boolean wrap(File source,
File output)
throws Exception
- Wrap (using bnd) a jar file into an OSGi bundle
- Parameters:
source
- original jar fileoutput
- target bundle created by this operation
- Returns:
- the numbers of errors encountered during this bundle creation
- Throws:
Exception
- if some file handling errors occurs.
getErrors
public List<String> getErrors()
Copyright © 2010 OW2 Consortium. All Rights Reserved.