api / org.gradle.api.tasks.bundling / War / webInf

webInf

open fun webInf(configureClosure: Closure<Any>): CopySpec

Adds some content to the WEB-INF directory for this WAR archive.

The given closure is executed to configure a CopySpec. The CopySpec is passed to the closure as its delegate.

Parameters

configureClosure - The closure to execute

Return
The newly created CopySpec.

open fun webInf(configureAction: Action<in CopySpec>): CopySpec

Adds some content to the WEB-INF directory for this WAR archive.

The given action is executed to configure a CopySpec.

Parameters

configureAction - The action to execute

Return
The newly created CopySpec.

Since
3.5