protected fun initFromJar(file: File) { val jar: JarFile var entry: JarEntry val enm: Enumeration<JarEntry> if (VERBOSE) { println("Analyzing jar: $file") } if (!file.exists()) { println("Jar does not exist: $file") return } try { jar = JarFile(file) enm = jar.entries() while (enm.hasMoreElements()) { entry = enm.nextElement() if (entry.getName().endsWith(".class")) { add(entry.getName()) } } initFromManifest(jar.getManifest()) } catch (e: Exception) { e.printStackTrace() } }
Fills the class cache with classes from the specified jar .