Package org.glassfish.uberjar.osgimain
Class ModuleExtractor
java.lang.Object
org.glassfish.uberjar.osgimain.ModuleExtractor
- Author:
- bhavanishankar@dev.java.net
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Iterable<OSGIModule> extractModules(File modulesJarFile) Extracts the OSGI Modules from the Jar file.static OSGIModuleExtracts a specified module from the modulesJarstatic void
-
Constructor Details
-
ModuleExtractor
public ModuleExtractor()
-
-
Method Details
-
extractModules
Extracts the OSGI Modules from the Jar file.- Parameters:
modulesJarFile- Jar file containing the modules.- Returns:
- Iterable list of OSGIModule
-
getModule
Extracts a specified module from the modulesJar- Parameters:
modulePath- Path of the module to be extracted eg., modules/module_1/modulesJar- Jar file containing the modules.- Returns:
- Extracted OSGIModule.
- Throws:
IOException- if an I/O error has occurred
-
main
- Throws:
Exception
-