# getAsText

abstract fun getAsText(): Provider<String>

Gets a provider for the standard stream's content that returns it as a String. The output is decoded using the default encoding of the JVM running the build.

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.