public void extractResources ( ) throws IOException { if ( ! cacheDir . isDirectory ( ) ) { if ( ! cacheDir . mkdirs ( ) ) { //debug("Failed to create cachedJar dir for dependent resources: " + cachedir); } } if ( null != resourcesList ) { //debug("jar manifest lists resources: " + resourcesList + " for file: " + pluginJar); extractJarContents ( resourcesList , cacheDir ) ; for ( final String s : resourcesList ) { File libFile = new File ( cacheDir , s ) ; libFile . deleteOnExit ( ) ; } } else { //debug("using resources dir: " + resDir + " for file: " + pluginJar); ZipUtil . extractZip ( zipFile . getAbsolutePath ( ) , cacheDir , resourcesBasedir , resourcesBasedir ) ; } }
Extract resources return the extracted files