Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for withAnnotationType (0.19 sec)

  1. platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/steps/ValidateStepTest.groovy

            }
            _ * work.validate(_ as WorkValidationContext) >> { WorkValidationContext validationContext ->
                validationContext.forType(JobType, true).visitTypeProblem {
                    it
                        .withAnnotationType(Object)
                        .id("test-problem", "Validation error", GradleCoreProblemGroup.validation())
                        .documentedAt(userManual("id", "section"))
                        .details("Test")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 06 13:35:05 UTC 2024
    - 9K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/reflect/validation/TypeAwareProblemBuilder.java

    import org.gradle.api.problems.internal.InternalProblemSpec;
    
    import javax.annotation.Nullable;
    
    @NonNullApi
    public interface TypeAwareProblemBuilder extends InternalProblemSpec {
        TypeAwareProblemBuilder withAnnotationType(@Nullable Class<?> classWithAnnotationAttached);
    
        TypeAwareProblemBuilder forProperty(String propertyName);
    
        TypeAwareProblemBuilder parentProperty(@Nullable String parentProperty);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 1.1K bytes
    - Viewed (0)
  3. subprojects/core/src/main/java/org/gradle/api/internal/plugins/SoftwareTypeRegistrationPluginTarget.java

                .sorted()
                .collect(Collectors.toList());
    
            if (exposedSoftwareTypes.isEmpty()) {
                typeValidationContext.visitTypeProblem(problem ->
                    problem.withAnnotationType(softwareTypePluginImplClass)
                        .id("missing-software-type", "Missing software type annotation", GradleCoreProblemGroup.validation().type())
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 03 16:02:28 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/reflect/validation/DefaultTypeAwareProblemBuilder.java

        public DefaultTypeAwareProblemBuilder(InternalProblemBuilder problemBuilder) {
            super(problemBuilder);
        }
    
        @Override
        public TypeAwareProblemBuilder withAnnotationType(@Nullable Class<?> classWithAnnotationAttached) {
            if (classWithAnnotationAttached != null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/properties/annotations/AbstractTypeAnnotationHandler.java

            TypeValidationContext visitor,
            Class<? extends Annotation> annotationType,
            Class<?>... appliesOnlyTo
        ) {
            visitor.visitTypeProblem(problem ->
                problem.withAnnotationType(classWithAnnotationAttached)
                    .id("invalid-use-of-type-annotation", "Incorrect use of type annotation", GradleCoreProblemGroup.validation().type())
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 09:10:37 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/reflect/ProblemRecordingTypeValidationContext.java

        public void visitPropertyProblem(Action<? super TypeAwareProblemBuilder> problemSpec) {
            DefaultTypeAwareProblemBuilder problemBuilder = getDefaultTypeAwareProblemBuilder(problemSpec);
            problemBuilder.withAnnotationType(rootType);
            pluginId()
                .map(PluginId::getId)
                .ifPresent(id -> problemBuilder.additionalData(TypeValidationDataSpec.class, data -> data.pluginId(id)));
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 04 08:30:15 UTC 2024
    - 2.8K bytes
    - Viewed (0)
Back to top