Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 35 for forProperty (0.21 sec)

  1. subprojects/core/src/main/java/org/gradle/api/internal/tasks/properties/ValidationActions.java

            context.visitPropertyProblem(problem -> {
                String lowerKind = kind.toLowerCase();
                problem
                    .forProperty(propertyName)
                    .id(TextUtil.screamingSnakeToKebabCase(INPUT_FILE_DOES_NOT_EXIST), "Input file does not exist", GradleCoreProblemGroup.validation().property())
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 11:49:03 UTC 2024
    - 16.5K bytes
    - Viewed (0)
  2. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/model/annotations/InputPropertyAnnotationHandler.java

            if (valueType.isPrimitive() && propertyMetadata.isAnnotationPresent(Optional.class)) {
                validationContext.visitPropertyProblem(problem ->
                    problem
                        .forProperty(propertyMetadata.getPropertyName())
                        .id(TextUtil.screamingSnakeToKebabCase(CANNOT_USE_OPTIONAL_ON_PRIMITIVE_TYPES), "Property should be annotated with @Optional", GradleCoreProblemGroup.validation().property())
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 16:02:33 UTC 2024
    - 8.4K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/inspect/StructNodeInitializer.java

    import java.util.Arrays;
    import java.util.List;
    
    import static org.gradle.model.internal.core.ModelViews.getInstance;
    import static org.gradle.model.internal.core.NodeInitializerContext.forProperty;
    
    public class StructNodeInitializer<T> implements NodeInitializer {
    
        protected final StructBindings<T> bindings;
    
        public StructNodeInitializer(StructBindings<T> bindings) {
            this.bindings = bindings;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/reflect/validation/TypeAwareProblemBuilder.java

    @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)
  5. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/properties/annotations/NestedValidationUtil.java

            Class<?> beanType
        ) {
            getUnsupportedReason(beanType).ifPresent(reason ->
                validationContext.visitPropertyProblem(problem ->
                    problem
                        .forProperty(propertyName)
                        .id("nested-type-unsupported", "Nested type unsupported", GradleCoreProblemGroup.validation().property())
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 09:10:37 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  6. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/validation/ValidationProblemPropertyAnnotationHandler.java

        @Override
        public void validatePropertyMetadata(PropertyMetadata propertyMetadata, TypeValidationContext validationContext) {
            validationContext.visitPropertyProblem(problem ->
                problem
                    .forProperty(propertyMetadata.getPropertyName())
                    .id("test-problem", "test problem", new DefaultProblemGroup("root", "root"))
                    .documentedAt(Documentation.userManual("id", "section"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/properties/annotations/DefaultTypeMetadataStore.java

                if (annotationHandler == null) {
                    validationContext.visitPropertyProblem(problem ->
                        problem
                            .forProperty(propertyAnnotationMetadata.getPropertyName())
                            .id(TextUtil.screamingSnakeToKebabCase(ANNOTATION_INVALID_IN_CONTEXT), "Invalid annotation in context", GradleCoreProblemGroup.validation().property())
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 06 21:54:36 UTC 2024
    - 14.9K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/properties/annotations/MissingPropertyAnnotationHandler.java

            final String missingAnnotation = "MISSING_ANNOTATION";
            problem
                .forProperty(annotationMetadata.getPropertyName())
                .id(TextUtil.screamingSnakeToKebabCase(missingAnnotation), "Missing annotation", GradleCoreProblemGroup.validation().property())
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 06 21:54:36 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  9. platforms/extensibility/plugin-use/src/main/java/org/gradle/plugin/software/internal/SoftwareTypeAnnotationHandler.java

                if (publicType != Void.class && !publicType.isAssignableFrom(valueType)) {
                    validationContext.visitPropertyProblem(problem ->
                        problem
                            .forProperty(propertyMetadata.getPropertyName())
                            .id("mismatched-types-for-software-type", "has @SoftwareType annotation used on property", GradleCoreProblemGroup.validation().property())
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 10 19:19:32 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/reflect/validation/DefaultTypeAwareProblemBuilder.java

            }
            return this;
        }
    
        @Override
        public TypeAwareProblemBuilder forProperty(String propertyName) {
            additionalData(TypeValidationDataSpec.class, data -> data.propertyName(propertyName));
            return this;
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 5.7K bytes
    - Viewed (0)
Back to top