Package: org.gradle.plugins.ear

## [Groovy] Class Ear

- org.gradle.plugins.ear.Ear

- Assembles an EAR archive.

- - ### Field Summary

    Fields
    Modifiers | Name | Description
    --- | --- | ---
    `static String` | `EAR_EXTENSION` |

  - Inherited fields
    Fields inherited from class | Fields
    --- | ---
    `class Jar` | `DEFAULT_EXTENSION`
    `class Zip` | `ZIP_EXTENSION`

  - ### Properties Summary

    Properties
    Type | Name and description
    --- | ---
    `DeploymentDescriptor` | `deploymentDescriptor` The deployment descriptor configuration.
    `String` | `libDirName` The name of the library directory in the EAR file.

  - ### Constructor Summary

    Constructors
    Constructor and description
    `Ear ()`

  - ### Methods Summary

    Methods
    Type | Name and description
    --- | ---
    `Ear` | `deploymentDescriptor(Closure configureClosure)` Configures the deployment descriptor for this EAR archive.
    `protected Instantiator` | `getInstantiator()`
    `CopySpec` | `getLib()` A location for dependency libraries to include in the 'lib' directory of the EAR archive.
    `CopySpec` | `lib(Closure configureClosure)` Adds dependency libraries to include in the 'lib' directory of the EAR archive.

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class Jar` | `getManifest, getMetaInf, manifest, metaInf, setManifest`
    `class Zip` | `createCopyAction, getCompressor, getEntryCompression, isZip64, setEntryCompression, setZip64`
    `class AbstractArchiveTask` | `getAppendix, getArchiveName, getArchivePath, getBaseName, getClassifier, getDestinationDir, getExtension, getVersion, into, into, setAppendix, setArchiveName, setBaseName, setClassifier, setDestinationDir, setExtension, setVersion`
    `class AbstractCopyTask` | `copy, createCopyAction, createRootSpec, eachFile, eachFile, exclude, exclude, exclude, exclude, expand, filesMatching, filesNotMatching, filter, filter, filter, from, from, getDirMode, getDuplicatesStrategy, getExcludes, getFileLookup, getFileMode, getFileResolver, getFileSystem, getIncludeEmptyDirs, getIncludes, getInstantiator, getMainSpec, getRootSpec, getSource, include, include, include, include, into, into, isCaseSensitive, rename, rename, rename, setCaseSensitive, setDirMode, setDuplicatesStrategy, setExcludes, setFileMode, setIncludeEmptyDirs, setIncludes, with`

- - ### Field Detail

    - #### public static final String EAR_EXTENSION

  - ### Property Detail

    - #### DeploymentDescriptor deploymentDescriptor

      The deployment descriptor configuration.

    - #### String libDirName

      The name of the library directory in the EAR file. Default is "lib".

  - ### Constructor Detail

    - #### Ear()

  - ### Method Detail

    - #### Ear deploymentDescriptor(Closure configureClosure)

      Configures the deployment descriptor for this EAR archive.

      The given closure is executed to configure the deployment descriptor. The DeploymentDescriptor is passed to the closure as its delegate.

      Parameters:
        `configureClosure` - The closure.
      Returns:
        This.

    - #### @Inject protected Instantiator getInstantiator()

    - #### CopySpec getLib()

      A location for dependency libraries to include in the 'lib' directory of the EAR archive.

    - #### CopySpec lib(Closure configureClosure)

      Adds dependency libraries to include in the 'lib' directory of the EAR archive.

      The given closure is executed to configure a `CopySpec`. The CopySpec is passed to the closure as its delegate.

      Parameters:
        `configureClosure` - The closure.
      Returns:
        The created `CopySpec`