api / org.gradle.api.artifacts.repositories / RepositoryResourceAccessor / withResource

withResource

abstract fun withResource(relativePath: String, action: Action<in InputStream>): Unit

Perform an action on the contents of a remote resource.

Parameters

relativePath - path to the resource, relative to the base URI of the repository

action - action to execute on the resource