Class EarPluginConvention
java.lang.Object
org.gradle.plugins.ear.EarPluginConvention
Ear Plugin Convention.
-
Constructor Summary
ConstructorsConstructorDescriptionEarPluginConvention(org.gradle.api.internal.file.FileResolver fileResolver, ObjectFactory objectFactory) Construct an EarPluginConvention using publicObjectFactory.EarPluginConvention(org.gradle.api.internal.file.FileResolver fileResolver, org.gradle.internal.reflect.Instantiator instantiator) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionvoidappDirName(String appDirName) Allows changing the application directory.deploymentDescriptor(Closure configureClosure) Configures the deployment descriptor for this EAR archive.deploymentDescriptor(Action<? super DeploymentDescriptor> configureAction) Configures the deployment descriptor for this EAR archive.The name of the application directory, relative to the project directory.A custom deployment descriptor configuration.The name of the library directory in the EAR file.voidlibDirName(String libDirName) Allows changing the library directory in the EAR file.voidsetAppDirName(String appDirName) voidsetDeploymentDescriptor(DeploymentDescriptor deploymentDescriptor) voidsetLibDirName(String libDirName)
-
Constructor Details
-
EarPluginConvention
@Deprecated public EarPluginConvention(org.gradle.api.internal.file.FileResolver fileResolver, org.gradle.internal.reflect.Instantiator instantiator) Deprecated.Use publicObjectFactoryconstructor instead of this one using internalInstantiator.Construct an EarPluginConvention using internalInstantiator. -
EarPluginConvention
@Inject public EarPluginConvention(org.gradle.api.internal.file.FileResolver fileResolver, ObjectFactory objectFactory) Construct an EarPluginConvention using publicObjectFactory.- Since:
- 4.2
-
-
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 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
-
ObjectFactoryconstructor instead of this one using internalInstantiator.