Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 131 for prop4 (0.3 sec)

  1. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/PropertyIntegrationTest.groovy

    assert custom.prop.get() == "new value"
    
    tasks.create('t', SomeTask)
    tasks.t.prop = custom.prop
    assert tasks.t.prop.get() == "new value"
    
    custom.prop = "changed"
    assert custom.prop.get() == "changed"
    assert tasks.t.prop.get() == "changed"
    
    """
    
            expect:
            succeeds()
        }
    
        def "can set String property value using a GString"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 30.3K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/api/DynamicObjectIntegrationTest.groovy

                class Thing {
                    def prop1 = { it }
                }
                convention.plugins.thing = new Thing()
                ext.prop2 = { it / 2 }
    
                assert prop1(12) == 12
                assert prop2(12) == 6
            """
            file("child1/build.gradle") << """
                ext.prop3 = { it * 2 }
                assert prop1(12) == 12
                assert prop2(12) == 6
                assert prop3(12) == 24
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 13:27:33 UTC 2024
    - 32.7K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/instantiation/generator/AsmBackedClassGeneratedManagedStateTest.groovy

            expect:
            bean.prop.toString() == "property 'prop'"
            bean.prop.getOrNull() == defaultValue
            bean.prop.set(newValue)
            bean.prop.get() == newValue
    
            beanWithDisplayName.prop.toString() == "<display-name> property 'prop'"
    
            where:
            type                               | defaultValue | newValue
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 16.2K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/ManagedModelGroovyScalarConfigurationIntegrationTest.groovy

            output.contains 'prop theFloat     : 0.7182818'
            output.contains 'prop theint       : 3'
            output.contains 'prop theInteger   : 8'
            output.contains 'prop theLong      : 4294967294'
            output.contains 'prop thelong      : 6442450941'
            output.contains 'prop theshort     : 21'
            output.contains 'prop theShort     : 55'
            output.contains 'prop thebyte      : 55'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 19.7K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/test/groovy/org/gradle/api/internal/artifacts/ivyservice/ivyresolve/parser/PomReaderTest.groovy

        <groupId>\${groupId.prop}</groupId>
        <artifactId>\${artifactId.prop}</artifactId>
        <version>\${version.prop}</version>
        <name>Test Artifact One</name>
        <description>The first test artifact</description>
        <properties>
            <some.prop1>test1</some.prop1>
            <some.prop2>test2</some.prop2>
            <groupId.prop>group-one</groupId.prop>
            <artifactId.prop>artifact-one</artifactId.prop>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 15:53:23 UTC 2024
    - 39.1K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/snapshot/impl/DefaultValueSnapshotterTest.groovy

            snapshotter.snapshot([new Bean(prop: "value1"), new Bean(prop: "value2")], snapshot4).is(snapshot4)
            snapshotter.snapshot([new Bean(prop: "value1"), new Bean(prop: "value3")], snapshot4) != snapshot4
    
            def snapshot5 = snapshotter.snapshot(["abc", "123"])
            def snapshot6 = snapshotter.snapshot(["abc", "123", "xyz"], snapshot5)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 29.5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/cel/common/schemas.go

    		return s
    	}
    	result := *s
    	props := make(map[string]spec.Schema, len(s.Properties))
    	for k, prop := range s.Properties {
    		props[k] = prop
    	}
    	stringType := spec.StringProperty()
    	props["kind"] = *stringType
    	props["apiVersion"] = *stringType
    	props["metadata"] = spec.Schema{
    		SchemaProps: spec.SchemaProps{
    			Type: []string{"object"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 09 18:00:45 UTC 2023
    - 10.5K bytes
    - Viewed (0)
  8. JavadocStyleGuide.md

    ```java
    /**
     * <pre><code class="language-kotlin">
     * project.ext.prop1 = "foo"
     * task doStuff {
     *     ext.prop2 = "bar"
     * }
     * subprojects { ext.${prop3} = false }
     * </code></pre>
     */
    ```
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 06 15:43:07 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  9. maven-xml-impl/src/test/java/org/apache/maven/internal/xml/XmlNodeImplTest.java

         */
        @Test
        void testCombineId() throws Exception {
            String lhs = "<props>" + "<property combine.id='LHS-ONLY'><name>LHS-ONLY</name><value>LHS</value></property>"
                    + "<property combine.id='TOOVERWRITE'><name>TOOVERWRITE</name><value>LHS</value></property>"
                    + "</props>";
    
            String rhs = "<props>" + "<property combine.id='RHS-ONLY'><name>RHS-ONLY</name><value>RHS</value></property>"
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Mar 25 10:50:01 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/instantiation/generator/AsmBackedClassGeneratorDecoratedTest.groovy

            def beanWithDisplayName = create(FinalReadOnlyNonManagedPropertyBean, Describables.of("<display-name>"))
    
            expect:
            bean.prop.toString() == "property 'prop'"
            beanWithDisplayName.prop.toString() == "<display-name> property 'prop'"
        }
    
        def "can attach nested extensions to object"() {
            given:
            def bean = create(Bean)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 22K bytes
    - Viewed (0)
Back to top