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.

setWebXml

open fun setWebXml(@Nullable webXml: @Nullable File)(source)

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

Since

0.7

Parameters

webXml

The web.xml file. Maybe null.