Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 1,577 for propertyOf (0.17 sec)

  1. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/inspect/StructNodeInitializer.java

                    }
                    if (property.isDeclaredAsHavingUnmanagedType()) {
                        throw new UnmanagedPropertyMissingSetterException(property.getName());
                    }
                }
            } else if (!shouldHaveANodeInitializer(property, propertySchema) && !property.isWritable() && !isNamePropertyOfANamedType(property)) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 9.7K bytes
    - Viewed (0)
  2. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/dom/operations/overlay/DocumentOverlayTest.kt

                    * property(a, literal(33)) -> ShadowedProperty(underlayProperty=property(a, literal(3)), overlayProperty=property(a, literal(33)))
                        - literal(33) -> FromOverlay(documentNode=property(a, literal(33)))
                    * property(b, literal(6)) -> FromOverlay(documentNode=property(b, literal(6)))
                        - literal(6) -> FromOverlay(documentNode=property(b, literal(6)))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 31 13:47:10 UTC 2024
    - 17.6K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/FilteringProviderTest.groovy

            def owner = Stub(ModelObject)
            _ * owner.taskThatOwnsThisObject >> task
            def property = TestUtil.objectFactory().property(String)
            property.attachOwner(owner, Describables.of("<prop>"))
            property.attachProducer(owner)
            property.set("12")
            return property
        }
    
        Property<String> propertyWithCompletedProducer() {
            def task = Mock(Task)
            def state = Mock(TaskState)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Dec 15 20:21:32 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  4. platforms/core-runtime/build-option/src/main/java/org/gradle/internal/buildoption/AbstractBuildOption.java

        }
    
        public AbstractBuildOption(String property, V... commandLineOptionConfiguration) {
            this(property, null, commandLineOptionConfiguration != null ? Arrays.asList(commandLineOptionConfiguration) : Collections.<V>emptyList());
        }
    
        private AbstractBuildOption(String property, String deprecatedProperty, List<V> commandLineOptionConfigurations) {
            this.property = property;
            this.deprecatedProperty = deprecatedProperty;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Apr 28 21:41:57 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  5. platforms/documentation/docs/src/snippets/providers/propertyConvention/groovy/build.gradle

    tasks.register("show") {
        def property = objects.property(String)
    
        // Set a convention
        property.convention("convention 1")
    
        println("value = " + property.get())
    
        // Can replace the convention
        property.convention("convention 2")
        println("value = " + property.get())
    
        property.set("explicit value")
    
        // Once a value is set, the convention is ignored
        property.convention("ignored convention")
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 540 bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/snippets/providers/propertyConvention/kotlin/build.gradle.kts

    tasks.register("show") {
        val property = objects.property(String::class)
    
        // Set a convention
        property.convention("convention 1")
    
        println("value = " + property.get())
    
        // Can replace the convention
        property.convention("convention 2")
        println("value = " + property.get())
    
        property.set("explicit value")
    
        // Once a value is set, the convention is ignored
        property.convention("ignored convention")
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 547 bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskPropertiesIntegrationTest.groovy

                tasks.create("thing", MyTask) {
                    println("property = \$count")
                    count = 12
                }
            """
    
            when:
            succeeds("thing")
    
            then:
            outputContains("property = task ':thing' property 'count'")
            outputContains("count = 12")
        }
    
        def "reports failure to query managed Property<T> with no value"() {
            given:
            buildFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  8. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/undeclared/SystemPropertyInstrumentationInStaticGroovyIntegrationTest.groovy

            "System.properties['some.property']"                   | _
            "System.getProperties().get('some.property')"          | _
            "getProperties().get('some.property')"                 | _
            "System.getProperty('some.property')"                  | _
            "getProperty('some.property')"                         | _
            "System.getProperty('some.property', 'default.value')" | _
            "getProperty('some.property', 'default.value')"        | _
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  9. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/undeclared/SystemPropertyInstrumentationInJavaIntegrationTest.groovy

            "System.getProperties().get(\"some.property\")"            | _
            "System.getProperty(\"some.property\")"                    | _
            "System.getProperty(\"some.property\", \"default.value\")" | _
            "System.setProperty(\"some.property\", \"new.value\")"     | _
            "System.clearProperty(\"some.property\")"                  | _
        }
    
        def "setProperties is instrumented in Java"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  10. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/undeclared/UndeclaredBuildInputsIntegrationTest.groovy

            when:
            configurationCacheRun("-Dsome.property.1=1", "-Dsome.property.2=2", "print")
    
            then:
            configurationCache.assertStateStored()
            outputContains("Configuration: some.property.1 = 0")
            outputContains("Configuration: some.property.2 = 2")
    
            when:
            configurationCacheRun("-Dsome.property.1=-1", "-Dsome.property.2=2", "print")
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 36K bytes
    - Viewed (0)
Back to top