Search in sources :

Example 1 with DownloadBuildOperationDescriptor

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;
}
Also used : DownloadBuildOperationDescriptor(org.gradle.internal.resource.transfer.DownloadBuildOperationDescriptor) BuildOperationDetails(org.gradle.internal.progress.BuildOperationDetails) ExternalResourceMetaData(org.gradle.internal.resource.metadata.ExternalResourceMetaData)

Aggregations

BuildOperationDetails (org.gradle.internal.progress.BuildOperationDetails)1 ExternalResourceMetaData (org.gradle.internal.resource.metadata.ExternalResourceMetaData)1 DownloadBuildOperationDescriptor (org.gradle.internal.resource.transfer.DownloadBuildOperationDescriptor)1