com.eviware.loadui.launcher.util
Class BndUtils

java.lang.Object
  extended by com.eviware.loadui.launcher.util.BndUtils

public class BndUtils
extends Object

BND utility class. Provides functionality for wrapping jars into OSGi bundles.

Author:
predrag.vucetic

Constructor Summary
BndUtils()
           
 
Method Summary
static boolean wrap(File input, File output)
          Makes OSGi bundle from input file and saves it as output file.
static boolean wrap(File input, File output, File properties, File[] classpath, Map<String,String> additional, boolean pedantic)
          Makes OSGi bundle from input file and saves it as output file.
static void wrapAll(File sourceDir, File destDir)
          Takes all jar and ZIP files from folder specified by sourceDir parameter, makes OSGi from them and save them into folder specified by destDir parameter.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BndUtils

public BndUtils()
Method Detail

wrapAll

public static void wrapAll(File sourceDir,
                           File destDir)
Takes all jar and ZIP files from folder specified by sourceDir parameter, makes OSGi from them and save them into folder specified by destDir parameter.

Parameters:
sourceDir - Folder to look for java libraries (jar and ZIP).
destDir - Folder where to save created bundles.

wrap

public static boolean wrap(File input,
                           File output)
Makes OSGi bundle from input file and saves it as output file.

Parameters:
input - Java library to create bundle from.
output - Created bundle file.
Returns:
true on success, false otherwise.

wrap

public static boolean wrap(File input,
                           File output,
                           File properties,
                           File[] classpath,
                           Map<String,String> additional,
                           boolean pedantic)
Makes OSGi bundle from input file and saves it as output file.

Parameters:
input - Java library to create bundle from.
output - Created bundle file.
properties - New bundle properties file.
classpath -
additional -
pedantic -
Returns:
true on success, false otherwise.


Copyright © 2012. All Rights Reserved.