Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 643 for PROPERTY (0.11 sec)

  1. 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)
  2. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/tasks/RuntimePluginValidationIntegrationTest.groovy

                error(missingAnnotationConfig { type('MyTask').property('tree.nonAnnotated').missingInputOrOutput() }, 'validation_problems', 'missing_annotation'),
                error(missingAnnotationConfig { type('MyTask').property('tree.left.nonAnnotated').missingInputOrOutput() }, 'validation_problems', 'missing_annotation'),
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 14:30:05 UTC 2024
    - 11.1K bytes
    - Viewed (0)
  3. platforms/core-runtime/internal-instrumentation-processor/src/test/groovy/org/gradle/internal/instrumentation/extensions/property/InstrumentedPropertiesResourceGeneratorTest.groovy

                    new UpgradedProperty("org.gradle.test.Task", "sourceCompatibility", "getSourceCompatibility", "()Lorg/gradle/api/provider/Property;", sourceCompatibilityAccessors),
                    new UpgradedProperty("org.gradle.test.Task", "targetCompatibility", "getTargetCompatibility", "()Lorg/gradle/api/provider/Property;", targetCompatibilityAccessors)
            ]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 23 08:40:36 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  4. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/tasks/AbstractPluginValidationIntegrationSpec.groovy

                error(missingAnnotationConfig { type('MyTask').property('badTime').missingInputOrOutput() }, 'validation_problems', 'missing_annotation'),
                error(missingAnnotationConfig { type('MyTask').property('oldThing').missingInputOrOutput() }, 'validation_problems', 'missing_annotation'),
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 40.7K bytes
    - Viewed (0)
  5. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheValueSourceIntegrationTest.groovy

                println("ValueSource result = \${vsResult.get()}")
                println("some.property = \${System.getProperty("some.property")}")
            """
    
            when:
            configurationCacheRun("-Dsome.property=1")
    
            then:
            configurationCache.assertStateStored()
            outputContains("some.property = 1")
            problems.assertResultHasProblems(result) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 20.6K bytes
    - Viewed (0)
  6. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/objectGraph/AssignmentResolver.kt

    
    class AssignmentResolver() {
        private
        val assignmentByNode = mutableMapOf<ResolutionNode.Property, GenerationResolutionNode>()
    
        private
        val assignmentMethodByProperty = mutableMapOf<ResolutionNode.Property, AssignmentMethod>()
    
        data class GenerationResolutionNode(
            val generationId: OperationGenerationId,
            val node: ResolutionNode
        )
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 30 12:25:46 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/ProviderConventionMappingIntegrationTest.groovy

            runAndFail 'mytask'
            expectDocumentedFailure()
        }
    
        def "convention mapping can be used with Property and an actual value"() {
            buildFile << """
                abstract class MyTask extends DefaultTask {
                    @Internal abstract Property<String> getFoo()
                    @Internal abstract Property<String> getBar()
    
                    @TaskAction
                    void useIt() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 12:27:37 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/snippets/providers/property/groovy/build.gradle

    plugins {
        id 'groovy'
    }
    
    repositories {
        mavenCentral()
    }
    
    // tag::set-prop[]
    // Setting a property
    def simpleMessageProperty = project.objects.property(String)
    simpleMessageProperty.set("Hello, World from a Property!")
    // Accessing a property
    println(simpleMessageProperty.get())
    // end::set-prop[]
    
    // tag::set-prov[]
    // Setting a provider
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 24 04:19:09 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  9. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/DelegatedGradlePropertiesExtensionsTest.kt

                }
            }
        }
    
        @Test
        fun `non-nullable delegated property access of non-existing gradle property throws`() {
    
            withMockForSettings(absent = "p") {
    
                val p: Any by settings
                try {
                    p.toString()
                    fail("InvalidUserCodeException not thrown")
                } catch (ex: InvalidUserCodeException) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 15:44:53 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/AbstractProperty.java

        /**
         * Creates a shallow copy of this property. Further changes to this property (via {@code set(...)}, or {@code convention(Object...)}) do not
         * change the copy. However, the copy still reflects changes to the underlying providers that constitute this property. Consider the following snippet:
         * <pre>
         *     def upstream = objects.property(String).value("foo")
         *     def property = objects.property(String).value(upstream)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 11:41:54 UTC 2024
    - 15.8K bytes
    - Viewed (0)
Back to top