# IdeaModuleIml

open class IdeaModuleIml : XmlFileContentMerger(source)

### Deprecated

Will be removed in Gradle 10.

Models the generation/parsing/merging capabilities of an IDEA module.

For examples, see docs for IdeaModule.

#### Since

1.0

## Constructors

IdeaModuleIml
Link copied to clipboard
constructor(xmlTransformer: XmlTransformer, generateTo: File)
Creates a new `IdeaModuleIml`.

## Properties

beforeMerged
Link copied to clipboard
open var beforeMerged: MutableActionSet
generateTo
Link copied to clipboard
open var generateTo: File
whenMerged
Link copied to clipboard
open var whenMerged: MutableActionSet
xmlTransformer
Link copied to clipboard
open var xmlTransformer: XmlTransformer

## Functions

beforeMerged
Link copied to clipboard
open fun beforeMerged(closure: Closure)
Adds a closure to be called after content is loaded from existing file but before gradle build information is merged.
open fun beforeMerged(action: Action<out Any>)
Adds an action to be called after content is loaded from existing file but before gradle build information is merged.
whenMerged
Link copied to clipboard
open fun whenMerged(closure: Closure)
Adds a closure to be called after content is loaded from existing file and after gradle build information is merged.
open fun whenMerged(action: Action<out Any>)
Adds an action to be called after content is loaded from existing file and after gradle build information is merged.
withXml
Link copied to clipboard
open fun withXml(@DelegatesTo(value = XmlProvider::class) closure: Closure)
Adds a closure to be called when the file has been created.
open fun withXml(action: Action<in XmlProvider>)
Adds an action to be called when the file has been created.