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.

getWebAppDirectory

Returns the app directory of the task. Added to the output web archive by default.

The war plugin sets the default value for all War tasks to src/main/webapp and adds it as a task input.

Note, that if the war plugin is not applied then this property is ignored. In that case, clients can manually set an app directory as a task input.

Return

The app directory.

Since

7.1