# DeploymentDescriptor

interface DeploymentDescriptor(source)

A deployment descriptor such as application.xml.

## Functions

getApplicationName
Link copied to clipboard
abstract fun getApplicationName(): Property<String>
The application name.
getDescription
Link copied to clipboard
abstract fun getDescription(): Property<String>
The application description.
getDisplayName
Link copied to clipboard
abstract fun getDisplayName(): Property<String>
The application display name.
getFileName
Link copied to clipboard
abstract fun getFileName(): String
The name of the descriptor file, typically "application.
getInitializeInOrder
Link copied to clipboard
abstract fun getInitializeInOrder(): Property<Boolean>
Whether to initialize modules in the order they appear in the descriptor, with the exception of client modules.
getLibraryDirectory
Link copied to clipboard
abstract fun getLibraryDirectory(): Property<String>
The name of the directory to look for libraries in.
getModules
Link copied to clipboard
abstract fun getModules(): SetProperty<EarModule>
List of module descriptors.
getModuleTypeMappings
Link copied to clipboard
abstract fun getModuleTypeMappings(): MapProperty<String, String>
Mapping of module paths to module types.
getSecurityRoles
Link copied to clipboard
abstract fun getSecurityRoles(): SetProperty<EarSecurityRole>
List of security roles.
getVersion
Link copied to clipboard
abstract fun getVersion(): Property<String>
The version of application.xml.
module
Link copied to clipboard
abstract fun module(path: String, type: String): DeploymentDescriptor
abstract fun module(module: EarModule, type: String): DeploymentDescriptor
Add a module to the deployment descriptor.
readFrom
Link copied to clipboard
abstract fun readFrom(reader: Reader): DeploymentDescriptor
Reads the deployment descriptor from a reader.
abstract fun readFrom(path: Any): Boolean
Reads the deployment descriptor from a file.
securityRole
Link copied to clipboard
abstract fun securityRole(role: String): DeploymentDescriptor
abstract fun securityRole(role: EarSecurityRole): DeploymentDescriptor
Add a security role to the deployment descriptor.
abstract fun securityRole(action: Action<in EarSecurityRole>): DeploymentDescriptor
Add a security role to the deployment descriptor after configuring it with the given action.
setFileName
Link copied to clipboard
abstract fun setFileName(fileName: String)
webModule
Link copied to clipboard
abstract fun webModule(path: String, contextRoot: String): DeploymentDescriptor
Add a web module to the deployment descriptor.
withXml
Link copied to clipboard
abstract fun withXml(@DelegatesTo(value = XmlProvider::class) closure: Closure): DeploymentDescriptor
Adds a closure to be called when the XML document has been created.
abstract fun withXml(action: Action<in XmlProvider>): DeploymentDescriptor
Adds an action to be called when the XML document has been created.
writeTo
Link copied to clipboard
abstract fun writeTo(writer: Writer): DeploymentDescriptor
Writes the deployment descriptor into a writer.
abstract fun writeTo(path: Any): DeploymentDescriptor
Writes the deployment descriptor into a file.