Class Ear

    • Constructor Detail

      • Ear

        public Ear()
    • Method Detail

      • deploymentDescriptor

        public Ear deploymentDescriptor​(Action<? super DeploymentDescriptor> configureAction)
        Configures the deployment descriptor for this EAR archive.

        The given action is executed to configure the deployment descriptor.

        Parameters:
        configureAction - The action.
        Returns:
        This.
        Since:
        3.5
      • getLib

        @Internal
        public CopySpec getLib()
        A location for dependency libraries to include in the 'lib' directory of the EAR archive.
      • lib

        public CopySpec lib​(@DelegatesTo(value=CopySpec.class,strategy=1)
                            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
      • lib

        public CopySpec lib​(Action<? super CopySpec> configureAction)
        Adds dependency libraries to include in the 'lib' directory of the EAR archive.

        The given action is executed to configure a CopySpec.

        Parameters:
        configureAction - The action.
        Returns:
        The created CopySpec
        Since:
        3.5
      • getLibDirName

        @Optional
        @Input
        public String getLibDirName()
        The name of the library directory in the EAR file. Default is "lib".
      • setLibDirName

        public void setLibDirName​(String libDirName)
      • setDeploymentDescriptor

        public void setDeploymentDescriptor​(DeploymentDescriptor deploymentDescriptor)