Class EarPluginConvention
java.lang.Object
org.gradle.plugins.ear.EarPluginConvention
Ear Plugin Convention.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract voidappDirName(String appDirName) Allows changing the application directory.abstract EarPluginConventiondeploymentDescriptor(Closure configureClosure) Configures the deployment descriptor for this EAR archive.abstract EarPluginConventiondeploymentDescriptor(Action<? super DeploymentDescriptor> configureAction) Configures the deployment descriptor for this EAR archive.abstract StringThe name of the application directory, relative to the project directory.abstract DeploymentDescriptorA custom deployment descriptor configuration.abstract StringThe name of the library directory in the EAR file.abstract voidlibDirName(String libDirName) Allows changing the library directory in the EAR file.abstract voidsetAppDirName(String appDirName) abstract voidsetDeploymentDescriptor(DeploymentDescriptor deploymentDescriptor) abstract voidsetLibDirName(String libDirName)
-
Constructor Details
-
EarPluginConvention
public EarPluginConvention()
-
-
Method Details
-
getAppDirName
The name of the application directory, relative to the project directory. Default is "src/main/application". -
setAppDirName
-
appDirName
Allows changing the application directory. Default is "src/main/application". -
getLibDirName
The name of the library directory in the EAR file. Default is "lib". -
setLibDirName
-
libDirName
Allows changing the library directory in the EAR file. Default is "lib". -
getDeploymentDescriptor
A custom deployment descriptor configuration. Default is an "application.xml" with sensible defaults. -
setDeploymentDescriptor
-
deploymentDescriptor
Configures the deployment descriptor for this EAR archive.The given closure is executed to configure the deployment descriptor. The
DeploymentDescriptoris passed to the closure as its delegate.- Parameters:
configureClosure- The closure.- Returns:
- This.
-
deploymentDescriptor
public abstract EarPluginConvention 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
-