private void zipDirectory ( String zipFile , String dirToZip ) { File directory = new File ( dirToZip ) ; try ( ZipOutputStream stream = new ZipOutputStream ( new FileOutputStream ( zipFile ) ) ) { addDirectoryToZip ( directory , directory , stream ) ; } catch ( Exception e ) { throw new PlatformManagerException ( "Failed to zip module" , e ) ; } }
Zips up a directory .