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.

getWebXml

@ReplacedBy(value = "webXmlFile")
@Nullable
open fun getWebXml(): @Nullable File(source)

Returns the web.xml file to include in the WAR archive. When null, no web.xml file is included in the WAR.

Return

The web.xml file.

Since

0.7