Class ModuleExtractor

java.lang.Object
org.glassfish.uberjar.osgimain.ModuleExtractor

public class ModuleExtractor extends Object
Author:
bhavanishankar@dev.java.net
  • Constructor Details

    • ModuleExtractor

      public ModuleExtractor()
  • Method Details

    • extractModules

      public static Iterable<OSGIModule> extractModules(File modulesJarFile)
      Extracts the OSGI Modules from the Jar file.
      Parameters:
      modulesJarFile - Jar file containing the modules.
      Returns:
      Iterable list of OSGIModule
    • getModule

      public static OSGIModule getModule(String modulePath, JarFile modulesJar) throws IOException
      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

      public static void main(String[] args) throws Exception
      Throws:
      Exception