Search in sources :

Example 6 with ModuleSpec

use of com.shulie.instrument.simulator.api.ModuleSpec in project LinkAgent by shulieTech.

the class ModuleSpecUtils method loadModuleSpec.

public static ModuleSpec loadModuleSpec(File file, boolean isSystemModule) {
    if (file == null || file.isHidden()) {
        return null;
    }
    ModuleSpec moduleSpec = getModuleInfo(file);
    if (moduleSpec == null) {
        return null;
    }
    moduleSpec.setSystemModule(isSystemModule);
    return moduleSpec;
}
Also used : ModuleSpec(com.shulie.instrument.simulator.api.ModuleSpec)

Aggregations

ModuleSpec (com.shulie.instrument.simulator.api.ModuleSpec)6 JarFile (java.util.jar.JarFile)2 ExtensionModule (com.shulie.instrument.simulator.api.ExtensionModule)1 ModuleInfo (com.shulie.instrument.simulator.api.ModuleInfo)1 File (java.io.File)1 IOException (java.io.IOException)1 InputStream (java.io.InputStream)1 HashSet (java.util.HashSet)1 ZipEntry (java.util.zip.ZipEntry)1