/** * Description of the Method */ protected void expandFile( final File srcF, final File dir ) throws Exception { ZipInputStream zis = null; try { // code from WarExpand zis = new ZipInputStream( new FileInputStream( srcF ) ); for ( ZipEntry ze = zis.getNextEntry(); ze != null; ze = zis.getNextEntry() ) { extractFile( srcF, dir, zis, ze.getName(), new Date( ze.getTime() ), ze.isDirectory() ); } // log("expand complete", Project.MSG_VERBOSE); zis.close(); zis = null; } catch ( IOException ioe ) { throw new Exception( "Error while expanding " + srcF.getPath(), ioe ); } finally { IOUtil.close( zis ); } }
extractFile( srcF, dir, zis, ze.getName(),