public void writeEntry ( String path , ByteSource contents ) throws IOException { stream . putNextEntry ( new ZipEntry ( path ) ) ; contents . copyTo ( stream ) ; stream . closeEntry ( ) ; }
Writes a single entry to the jar .