Search in sources :

Example 1 with DefaultTransformDescriptor

use of org.gradle.internal.build.event.types.DefaultTransformDescriptor in project gradle by gradle.

the class TransformOperationMapper method createDescriptor.

@Override
public DefaultTransformDescriptor createDescriptor(ExecuteScheduledTransformationStepBuildOperationDetails details, BuildOperationDescriptor buildOperation, @Nullable OperationIdentifier parent) {
    OperationIdentifier id = buildOperation.getId();
    String displayName = buildOperation.getDisplayName();
    String transformerName = details.getTransformerName();
    String subjectName = details.getSubjectName();
    Set<InternalOperationDescriptor> dependencies = operationDependenciesResolver.resolveDependencies(details.getTransformationNode());
    DefaultTransformDescriptor descriptor = new DefaultTransformDescriptor(id, displayName, parent, transformerName, subjectName, dependencies);
    descriptors.put(details.getTransformationNode(), descriptor);
    return descriptor;
}
Also used : DefaultTransformDescriptor(org.gradle.internal.build.event.types.DefaultTransformDescriptor) InternalOperationDescriptor(org.gradle.tooling.internal.protocol.events.InternalOperationDescriptor) OperationIdentifier(org.gradle.internal.operations.OperationIdentifier)

Aggregations

DefaultTransformDescriptor (org.gradle.internal.build.event.types.DefaultTransformDescriptor)1 OperationIdentifier (org.gradle.internal.operations.OperationIdentifier)1 InternalOperationDescriptor (org.gradle.tooling.internal.protocol.events.InternalOperationDescriptor)1