Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 58 for PROPERTY (0.31 sec)

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

                                         "System.getProperties().get('some.property')",
                                         "getProperties().get('some.property')",
                                         "System.getProperty('some.property')",
                                         "System.getProperty(*['some.property'])",
                                         "getProperty('some.property')",
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  2. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/problems/JsonModelWriter.kt

                    property("kind", "SystemProperty")
                    comma()
                    property("name", trace.name)
                }
    
                is PropertyTrace.Task -> {
                    property("kind", "Task")
                    comma()
                    property("path", trace.path)
                    comma()
                    property("type", trace.type.name)
                }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheDirectoryPluginIntegrationTest.groovy

            configurationCacheRun("-Dfirst.property=first.value", "-Dsecond.property=second.value")
    
            then:
            outputContains("returned = first.value")
            outputContains("returned = second.value")
            result.assertHasPostBuildOutput("Configuration cache entry stored.")
            problems.assertResultHasProblems(result) {
                withInput("Plugin class 'FirstPlugin': system property 'first.property'")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  6. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/undeclared/SystemPropertyInstrumentationInKotlinIntegrationTest.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\")"                  | _
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  7. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/CrossProjectModelAccessTrackingParentDynamicObject.kt

            onAccess(MemberKind.PROPERTY, name)
            return delegate.hasProperty(name)
        }
    
        override fun tryGetProperty(name: String): DynamicInvokeResult {
            onAccess(MemberKind.PROPERTY, name)
            return delegate.tryGetProperty(name)
        }
    
        override fun trySetProperty(name: String, value: Any?): DynamicInvokeResult {
            onAccess(MemberKind.PROPERTY, name)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  8. 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)
  9. 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)
  10. 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)
Back to top