org.ow2.jonas.extension.loader
Class Bnd

java.lang.Object
  extended by 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()
           
 
Method Summary
 List<String> getErrors()
           
 boolean wrap(File source, File output)
          Wrap (using bnd) a jar file into an OSGi bundle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Bnd

public Bnd()
Method Detail

wrap

public boolean wrap(File source,
                    File output)
             throws Exception
Wrap (using bnd) a jar file into an OSGi bundle

Parameters:
source - original jar file
output - 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.