use of org.gradle.internal.build.event.types.DefaultTaskDescriptor in project gradle by gradle.
the class TaskOperationMapper method createDescriptor.
@Override
public DefaultTaskDescriptor createDescriptor(ExecuteTaskBuildOperationDetails details, BuildOperationDescriptor buildOperation, @Nullable OperationIdentifier parent) {
OperationIdentifier id = buildOperation.getId();
String taskIdentityPath = buildOperation.getName();
String displayName = buildOperation.getDisplayName();
String taskPath = details.getTask().getIdentityPath().getPath();
Set<InternalOperationDescriptor> dependencies = operationDependenciesResolver.resolveDependencies(details.getTaskNode());
InternalPluginIdentifier originPlugin = taskOriginTracker.getOriginPlugin(details.getTask().getTaskIdentity());
DefaultTaskDescriptor descriptor = new DefaultTaskDescriptor(id, taskIdentityPath, taskPath, displayName, parent, dependencies, originPlugin);
descriptors.put(details.getTask().getTaskIdentity(), descriptor);
return descriptor;
}
Aggregations