Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 76 for PROPERTY (0.12 sec)

  1. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/MapPropertySpec.groovy

            given:
            property.set(notDefined())
            and:
            property.put('k1', 'v1')
            property.put('k2', Providers.of('v2'))
            property.putAll(['k3': 'v3'])
            property.putAll(Providers.of(['k4': 'v4']))
    
            expect:
            !property.present
            property.getOrNull() == null
            property.getOrElse(['kk': 'vv']) == ['kk': 'vv']
    
            when:
            property.get()
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:55 UTC 2024
    - 58.7K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/testFixtures/groovy/org/gradle/api/internal/provider/PropertySpec.groovy

            property.get() == someValue()
    
            property.set(someOtherValue())
            property.present
            property.get() == someOtherValue()
        }
    
        def "can use null convention value"() {
            def property = propertyWithNoValue()
            assert property.getOrNull() != someValue()
    
            expect:
            nullConvention(property)
    
            !property.present
            property.getOrNull() == null
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:55 UTC 2024
    - 87.8K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/CollectionPropertySpec.groovy

            given:
            def property = property()
            property.set(someValue())
            property.set((Iterable) null)
    
            expect:
            !property.present
            property.getOrNull() == null
            property.getOrElse(someValue()) == someValue()
            property.getOrElse(null) == null
        }
    
        def "can set null value to remove any added values"() {
            property.add("abc")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:55 UTC 2024
    - 49.7K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/instantiation/generator/AbstractClassGenerator.java

        }
    
        private static boolean isNameProperty(PropertyMetadata property) {
            // Property is read only, called "name", has type String and getter is abstract
            return property.isReadOnly() && "name".equals(property.getName()) && property.getType() == String.class && property.getMainGetter().isAbstract();
        }
    
        private static boolean hasPropertyType(PropertyMetadata property) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 06 21:54:37 UTC 2024
    - 63K bytes
    - Viewed (0)
  5. testing/architecture-test/src/changes/archunit-store/provider-task-properties.txt

    Method <org.gradle.api.plugins.antlr.AntlrTask.getMaxHeapSize()> does not have raw return type assignable to org.gradle.api.provider.Property in (AntlrTask.java:0)
    Method <org.gradle.api.plugins.antlr.AntlrTask.getOutputDirectory()> does not have raw return type assignable to org.gradle.api.provider.Property in (AntlrTask.java:0)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 13:33:20 UTC 2024
    - 51.8K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/parser/GradlePomModuleDescriptorParserProfileTest.groovy

        <profiles>
            <profile>
                <id>profile-1</id>
                <activation>
                    <property>
                        <name>!someProperty</name>
                    </property>
                </activation>
                <properties>
                    <some.group>group-one</some.group>
                    <some.artifact>artifact-one</some.artifact>
                    <some.version>version-one</some.version>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 49.8K bytes
    - Viewed (0)
  7. subprojects/core-api/src/main/java/org/gradle/api/Project.java

     *
     * </ul>
     *
     * <p>When reading a property, the project searches the above scopes in order, and returns the value from the first
     * scope it finds the property in. If not found, an exception is thrown. See {@link #property(String)} for more details.</p>
     *
     * <p>When writing a property, the project searches the above scopes in order, and sets the property in the first scope
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 04:56:22 UTC 2024
    - 74.3K bytes
    - Viewed (0)
  8. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/parser/PomReaderProfileTest.groovy

            then:
            pomReader.getDependencies().size() == 1
            assertResolvedPomDependency(key, 'version-three')
        }
    
        def "cannot use POM property to control profile property activation"() {
            setup:
            String customPropertyName = new UUIDGenerator().generateId()
            System.properties[customPropertyName] = 'BLUE'
    
            when:
            pomFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 79.4K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/manage/schema/extract/ManagedProxyClassGenerator.java

            WeaklyTypeReferencingMethod<?, ?> weakSetter = property.getAccessor(SETTER);
            // There is no setter for this property
            if (weakSetter == null) {
                return;
            }
            if (!(property.getSchema() instanceof ScalarValueSchema)) {
                return;
            }
    
            Class<?> propertyClass = property.getType().getConcreteClass();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 55.3K bytes
    - Viewed (0)
  10. subprojects/core/src/integTest/groovy/org/gradle/api/services/BuildServiceIntegrationTest.groovy

            failureDescriptionContains("- Type 'Consumer' property 'counter' doesn't have a configured value.")
            failureDescriptionContains("Reason: This property isn't marked as optional and no value has been configured.")
        }
    
        def "injection by name does not fail validation if service is not found but property marked as @Optional"() {
            given:
            serviceImplementation()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 06 19:15:46 UTC 2024
    - 61K bytes
    - Viewed (0)
Back to top