# getWebAppDirectory

@Internal
abstract fun getWebAppDirectory(): DirectoryProperty(source)

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