public class EarPluginConvention extends Object
Constructor and Description |
---|
EarPluginConvention(org.gradle.api.internal.file.FileResolver fileResolver,
org.gradle.internal.reflect.Instantiator instantiator)
Deprecated.
Creating instances of this class is deprecated. These should be created by the EAR plugin only.
|
EarPluginConvention(org.gradle.api.internal.file.FileResolver fileResolver,
ObjectFactory objectFactory)
Deprecated.
Creating instances of this class is deprecated. These should be created by the EAR plugin only.
|
Modifier and Type | Method and Description |
---|---|
void |
appDirName(String appDirName)
Allows changing the application directory.
|
EarPluginConvention |
deploymentDescriptor(Action<? super DeploymentDescriptor> configureAction)
Configures the deployment descriptor for this EAR archive.
|
EarPluginConvention |
deploymentDescriptor(Closure configureClosure)
Configures the deployment descriptor for this EAR archive.
|
String |
getAppDirName()
The name of the application directory, relative to the project directory.
|
DeploymentDescriptor |
getDeploymentDescriptor()
A custom deployment descriptor configuration.
|
String |
getLibDirName()
The name of the library directory in the EAR file.
|
void |
libDirName(String libDirName)
Allows changing the library directory in the EAR file.
|
void |
setAppDirName(String appDirName) |
void |
setDeploymentDescriptor(DeploymentDescriptor deploymentDescriptor) |
void |
setLibDirName(String libDirName) |
@Deprecated public EarPluginConvention(org.gradle.api.internal.file.FileResolver fileResolver, org.gradle.internal.reflect.Instantiator instantiator)
EarPluginConvention
using internal Instantiator
.@Inject @Deprecated public EarPluginConvention(org.gradle.api.internal.file.FileResolver fileResolver, ObjectFactory objectFactory)
EarPluginConvention
using public ObjectFactory
.public String getAppDirName()
public void setAppDirName(String appDirName)
public void appDirName(String appDirName)
public String getLibDirName()
public void setLibDirName(String libDirName)
public void libDirName(String libDirName)
public DeploymentDescriptor getDeploymentDescriptor()
public void setDeploymentDescriptor(DeploymentDescriptor deploymentDescriptor)
public EarPluginConvention deploymentDescriptor(Closure configureClosure)
The given closure is executed to configure the deployment descriptor.
The DeploymentDescriptor
is passed to the closure as its delegate.
configureClosure
- The closure.public EarPluginConvention deploymentDescriptor(Action<? super DeploymentDescriptor> configureAction)
The given action is executed to configure the deployment descriptor.
configureAction
- The action.