API Documentation: | EarPluginConvention |
---|
Note: This class is deprecated and will be removed in the next major version of Gradle.
Ear Plugin Convention.
Property | Description |
appDirName | The name of the application directory, relative to the project directory. Default is "src/main/application". |
deploymentDescriptor | A custom deployment descriptor configuration. Default is an "application.xml" with sensible defaults. |
generateDeploymentDescriptor | Specifies if the deploymentDescriptor should be generated if it does not exist. Default is true. |
libDirName | The name of the library directory in the EAR file. Default is "lib". |
Method | Description |
appDirName(appDirName) | Allows changing the application directory. Default is "src/main/application". |
deploymentDescriptor(configureAction) | Configures the deployment descriptor for this EAR archive. |
libDirName(libDirName) | Allows changing the library directory in the EAR file. Default is "lib". |
Block | Description |
deploymentDescriptor | Configures the deployment descriptor for this EAR archive. |
String
appDirName
The name of the application directory, relative to the project directory. Default is "src/main/application".
- Default with
ear
plugin: 'src/main/application'
DeploymentDescriptor
deploymentDescriptor
A custom deployment descriptor configuration. Default is an "application.xml" with sensible defaults.
- Default with
ear
plugin: - A deployment descriptor initialized with sensible defaults
Specifies if the deploymentDescriptor should be generated if it does not exist. Default is true.
- Default with
ear
plugin: true
String
libDirName
The name of the library directory in the EAR file. Default is "lib".
- Default with
ear
plugin: 'lib'
void
appDirName
(String
appDirName)
Allows changing the application directory. Default is "src/main/application".
EarPluginConvention
deploymentDescriptor
(Action
<? super DeploymentDescriptor
>
configureAction)
Action
<? super DeploymentDescriptor
>Configures the deployment descriptor for this EAR archive.
The given action is executed to configure the deployment descriptor.
void
libDirName
(String
libDirName)
Allows changing the library directory in the EAR file. Default is "lib".
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.
- Delegates to:
DeploymentDescriptor
fromdeploymentDescriptor