public class BundleUtil extends Object
| Constructor and Description |
|---|
BundleUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
convertFromJarToBundle(String sourcePath,
String outputPath)
Converts a specified non-OSGi JAR file to an OSGi bundle at the specified destination.
|
static List<Path> |
listFiles(Path directory)
Returns a
List of file paths of the child elements of the specified directory. |
public static void convertFromJarToBundle(String sourcePath, String outputPath)
sourcePath - the directory of the JAR file to be bundledoutputPath - the directory into which the created OSGi bundle needs to be placedpublic static List<Path> listFiles(Path directory) throws IOException
List of file paths of the child elements of the specified directory.directory - the directory whose child elements are to be returnedList of Path instances of the child elements of the specified directoryIOException - if an I/O error occursCopyright © 2019 WSO2. All rights reserved.