For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

file

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

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

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

For example see docs for EclipseWtpFacet

Since

1.0


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

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

For example see docs for EclipseWtpFacet

Since

3.5