api / org.gradle.plugins.ear / EarPluginConvention

EarPluginConvention

open class EarPluginConvention

Ear Plugin Convention.

Constructors

<init>

EarPluginConvention(fileResolver: FileResolver, instantiator: Instantiator)

Construct an EarPluginConvention using internal Instantiator.

EarPluginConvention(fileResolver: FileResolver, objectFactory: ObjectFactory)

Construct an EarPluginConvention using public ObjectFactory.

Functions

appDirName

open fun appDirName(appDirName: String): Unit

Allows changing the application directory. Default is "src/main/application".

deploymentDescriptor

open fun deploymentDescriptor(configureClosure: Closure<Any>): EarPluginConvention

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.

open fun deploymentDescriptor(configureAction: Action<in DeploymentDescriptor>): EarPluginConvention

Configures the deployment descriptor for this EAR archive.

The given action is executed to configure the deployment descriptor.

getAppDirName

open fun getAppDirName(): String

The name of the application directory, relative to the project directory. Default is "src/main/application".

getDeploymentDescriptor

open fun getDeploymentDescriptor(): DeploymentDescriptor

A custom deployment descriptor configuration. Default is an "application.xml" with sensible defaults.

getLibDirName

open fun getLibDirName(): String

The name of the library directory in the EAR file. Default is "lib".

libDirName

open fun libDirName(libDirName: String): Unit

Allows changing the library directory in the EAR file. Default is "lib".

setAppDirName

open fun setAppDirName(appDirName: String): Unit

setDeploymentDescriptor

open fun setDeploymentDescriptor(deploymentDescriptor: DeploymentDescriptor): Unit

setLibDirName

open fun setLibDirName(libDirName: String): Unit

Extension Properties

ext

val EarPluginConvention.ext: ExtraPropertiesExtension

Retrieves the ext extension.

Extension Functions

ext

fun EarPluginConvention.ext(configure: ExtraPropertiesExtension.() -> Unit): Unit

Configures the ext extension.