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.

Action

Performs some action against objects of type T.

Since

0.7

Parameters

<T>

The type of object which this action accepts.

Inheritors

Functions

Link copied to clipboard
abstract fun execute(t: T)
Performs this action against the given object.
Link copied to clipboard
operator fun <T : Any> Action<in T>.invoke(target: T)

Enables function invocation syntax on Action references.