src/java/io/bazel/rulesscala/jar/JarHelper.java
/**
   * Writes a standard Java manifest entry into the JarOutputStream. This
   * includes the directory entry for the "META-INF" directory
   *
   * @param content the Manifest content to write to the manifest entry.
   * @throws IOException
   */
Writes a standard Java manifest entry into the JarOutputStream. This
includes the directory entry for the "META-INF" directory

@param content the Manifest content to write to the manifest entry.
Writes a standard Java manifest entry into the JarOutputStream . This includes the directory entry for the " META - INF " directory @param content the Manifest content to write to the manifest entry .
protected void writeManifestEntry(byte[] content) throws IOException {
    int oldStorageMethod = storageMethod;
    if (content.length < 256) {
      storageMethod = JarEntry.STORED;
    }
    try {
      writeEntry(out, MANIFEST_DIR, new byte[]{});
      writeEntry(out, MANIFEST_NAME, content);
    } finally {
      storageMethod = oldStorageMethod;
    }
  }
protected void writeManifestEntry ( byte [ ] content ) throws IOException { int oldStorageMethod = storageMethod ; if ( content . length < 256 ) { storageMethod = JarEntry . STORED ; } try { writeEntry ( out , MANIFEST_DIR , new byte [ ] { } ) ; writeEntry ( out , MANIFEST_NAME , content ) ; } finally { storageMethod = oldStorageMethod ; } }
Writes a standard Java manifest entry into the JarOutputStream.
Writes a standard Java manifest entry into the JarOutputStream .
// Do not compress small manifest files, the compressed one is frequently // larger than the original. The threshold of 256 bytes is somewhat arbitrary.