Search in sources :

Example 1 with CustomManifestInternalWrapper

use of org.gradle.api.java.archives.internal.CustomManifestInternalWrapper in project gradle by gradle.

the class Jar method computeManifest.

private ManifestInternal computeManifest() {
    Manifest manifest = getManifest();
    if (manifest == null) {
        manifest = new DefaultManifest(null);
    }
    ManifestInternal manifestInternal;
    if (manifest instanceof ManifestInternal) {
        manifestInternal = (ManifestInternal) manifest;
    } else {
        manifestInternal = new CustomManifestInternalWrapper(manifest);
    }
    manifestInternal.setContentCharset(manifestContentCharset);
    return manifestInternal;
}
Also used : DefaultManifest(org.gradle.api.java.archives.internal.DefaultManifest) CustomManifestInternalWrapper(org.gradle.api.java.archives.internal.CustomManifestInternalWrapper) ManifestInternal(org.gradle.api.java.archives.internal.ManifestInternal) DefaultManifest(org.gradle.api.java.archives.internal.DefaultManifest) Manifest(org.gradle.api.java.archives.Manifest)

Aggregations

Manifest (org.gradle.api.java.archives.Manifest)1 CustomManifestInternalWrapper (org.gradle.api.java.archives.internal.CustomManifestInternalWrapper)1 DefaultManifest (org.gradle.api.java.archives.internal.DefaultManifest)1 ManifestInternal (org.gradle.api.java.archives.internal.ManifestInternal)1