Schnittstelle RepositoryResourceAccessor
public interface RepositoryResourceAccessor
Provides access to resources on an artifact repository. Gradle takes care of caching
the resources locally. The scope of the cache may depend on the accessor: users should
refer to the javadocs of the methods providing an accessor to determine the scope.
- Seit:
- 4.0
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidwithResource(String relativePath, Action<? super InputStream> action) Perform an action on the contents of a remote resource.
-
Methodendetails
-
withResource
Perform an action on the contents of a remote resource.- Parameter:
relativePath- path to the resource, relative to the base URI of the repositoryaction- action to execute on the resource
-