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.

getAsBytes

abstract fun getAsBytes(): Provider<Array<Byte>>(source)

Gets a provider for the standard stream's content that returns it as a byte array.

The external process is executed only once and only when the value is requested for the first time.

If starting the process results in exception then the ensuing exception is permanently propagated to callers of get, getOrElse, getOrNull and isPresent.

Since

7.5