Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 111 for PROPERTY (0.12 sec)

  1. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheGroovyClosureIntegrationTest.groovy

        def "from-cache build fails when task action closure reads a project property"() {
            given:
            buildFile << """
                tasks.register("some") {
                    doFirst {
                        println(name) // task property is ok
                        println($expression)
                    }
                }
            """
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheBuildSrcIntegrationTest.groovy

                import ${TaskAction.name};
                import ${Internal.name};
                import ${Property.name};
    
                public class CustomTask extends DefaultTask {
                    private final Property<String> greeting = getProject().getObjects().property(String.class);
    
                    @Internal
                    public Property<String> getGreeting() {
                        return greeting;
                    }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  3. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheTaskSerializationIntegrationTest.groovy

                    someTaskInputs.property = $reference
                }
            """
            when:
            configurationCacheRun "ok"
            configurationCacheRun "ok"
    
            then:
            outputContains("task.nested.property = $output")
    
            where:
            type                    | reference            | output
            "Property<String>"      | "'value'"            | "value"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 12.5K bytes
    - Viewed (0)
  4. platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/isolation/IsolatedActionSerializerTest.kt

        }
    
        interface Dsl {
            val property: Property<String>
        }
    
        @Test
        fun `can serialize Java lambda with Gradle model`() {
            val stored = newInstance<Dsl>().apply {
                property.set("42")
            }
            val loaded = valueCarriedBy(roundtripOf(isolatedActionLambdaWith(stored)))
            assertThat(
                loaded.property.get(),
                equalTo("42")
            )
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 6.4K bytes
    - Viewed (0)
  5. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheBuildOptionsIntegrationTest.groovy

            outputContains "$description property 'greeting' has changed"
    
            where:
            kind     | option | description | reportedInput
            'system' | 'D'    | 'system'    | "system property 'greeting'"
    //        'gradle' | 'P'    | 'Gradle'    | "Gradle property 'greeting'"
        }
    
        def "mapped system property used as task input"() {
    
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 28K bytes
    - Viewed (0)
  6. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/problems/KnownProblemIds.groovy

            'validation:property-validation:unexpected-input-file-type' : 'Unexpected input file type',
            'validation:property-validation:unsupported-notation' : 'Property has unsupported value',
            'validation:property-validation:unknown-implementation' : 'Unknown property implementation',
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:07:53 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  7. platforms/core-configuration/configuration-cache/src/test/kotlin/org/gradle/internal/cc/impl/problems/PropertyTraceTest.kt

        @Test
        fun `field of bean found in input property of task`() {
    
            val beanType = PropertyTraceTest::class.java
            val taskType = Task::class.java
    
            assertThat(
                PropertyTrace.Property(
                    PropertyKind.Field,
                    "f",
                    PropertyTrace.Bean(
                        beanType,
                        PropertyTrace.Property(
                            PropertyKind.InputProperty,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 1.8K bytes
    - Viewed (0)
  8. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/isolated/IsolatedProjectsAccessFromGroovyDslIntegrationTest.groovy

            where:
            kind       | setExpr         | expr
            "property" | "ext.foo = 1"   | "foo"
            "property" | "ext.foo = 1"   | "hasProperty('foo')"
            "property" | "ext.foo = 1"   | "property('foo')"
            "property" | "ext.foo = 1"   | "findProperty('foo')"
            "property" | "ext.foo = 1"   | "getProperty('foo')"
            "property" | "ext.foo = 1"   | "properties"
            "method"   | "def foo() { }" | "foo()"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 32.4K bytes
    - Viewed (0)
  9. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/references/KaFirPropertyDelegationMethodsReference.kt

            check(this is KaFirSession)
            val property = (expression.parent as? KtElement)?.getOrBuildFirSafe<FirProperty>(firResolveSession) ?: return emptyList()
            if (property.delegate == null) return emptyList()
            val getValueSymbol = (property.getter?.singleStatementOfType<FirReturnExpression>()?.result as? FirFunctionCall)?.getCalleeSymbol()
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Mon Jun 10 20:18:28 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  10. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheEnablementIntegrationTest.groovy

            then:
            fixture.assertStateLoaded()
    
            where:
            origin            | argument
            "long option"     | ENABLE_CLI_OPT
            "system property" | ENABLE_SYS_PROP
        }
    
        def "can enable with a property in root directory gradle.properties"() {
            given:
            file('gradle.properties') << """
                $ENABLE_GRADLE_PROP
            """
    
            when:
            run 'help'
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 5.8K bytes
    - Viewed (0)
Back to top