# file

val file: XmlFileContentMerger

open fun file(@DelegatesTo(value = XmlFileContentMerger::class) closure: Closure)

### Deprecated

Will be removed in Gradle 10.

Enables advanced configuration like tinkering with the output XML or affecting the way existing wtp component file content is merged with gradle build information

The object passed to whenMerged{} and beforeMerged{} closures is of type WtpComponent

For example see docs for EclipseWtpComponent

open fun file(action: Action<in XmlFileContentMerger>)

### Deprecated

Will be removed in Gradle 10.

Enables advanced configuration like tinkering with the output XML or affecting the way existing wtp component file content is merged with gradle build information.

For example see docs for EclipseWtpComponent

#### Since

3.5