private void mapFilesInZip ( String fileName ) { File file = new File ( fileName ) ; fileCreationTimes . put ( file , new Long ( file . lastModified ( ) ) ) ; ZipFile zipfile ; try { zipfile = new ZipFile ( fileName ) ; } catch ( IOException ioe ) { throw new NoClassDefFoundError ( "class location '" + fileName + "' can not be accessed by classloader: " + ioe ) ; } Enumeration < ? extends ZipEntry > e = zipfile . entries ( ) ; while ( e . hasMoreElements ( ) ) { ZipEntry entry = e . nextElement ( ) ; if ( ! entry . isDirectory ( ) ) { mapClassResourceEntry ( entry . getName ( ) , fileName ) ; } } try { zipfile . close ( ) ; } catch ( IOException ioe ) { throw new NoClassDefFoundError ( "class fileName '" + fileName + "' can not be accessed by classloader: " + ioe ) ; } }
Creates a mapping to locate files in a zip file .