private void addManifestEntry(ZipOutputStream output, Manifest manifest, Set<? super String> writtenPaths) throws IOException {
    ZipEntry manifestEntry = new ZipEntry(JarFile.MANIFEST_NAME);
    if (buildDateInMillis != null) {
      manifestEntry.setTime(buildDateInMillis);
    }
    output.putNextEntry(manifestEntry);
    manifest.write(new BufferedOutputStream(output));
    output.closeEntry();
    writtenPaths.add(JarFile.MANIFEST_NAME);
  }
private void addManifestEntry(ZipOutputStream output, Manifest manifest, Set<? super String> writtenPaths)