use of org.gradle.internal.resource.transfer.DownloadBuildOperationDescriptor in project gradle by gradle.
the class BuildOperationExternalResource method createBuildOperationDetails.
private BuildOperationDetails createBuildOperationDetails() {
ExternalResourceMetaData metaData = getMetaData();
DownloadBuildOperationDescriptor downloadBuildOperationDescriptor = new DownloadBuildOperationDescriptor(metaData.getLocation(), metaData.getContentLength(), metaData.getContentType());
BuildOperationDetails buildOperationDetails = BuildOperationDetails.displayName("Download " + metaData.getLocation().toString()).parent(buildOperationExecutor.getCurrentOperation()).operationDescriptor(downloadBuildOperationDescriptor).build();
return buildOperationDetails;
}
Aggregations