Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 665 for PROPERTY (0.29 sec)

  1. platforms/core-configuration/model-core/src/test/groovy/org/gradle/api/internal/provider/DefaultPropertyTest.groovy

            def property = property()
            property.set(someValue())
            property.set((String) null)
    
            expect:
            !property.present
            property.getOrNull() == null
            property.getOrElse(someValue()) == someValue()
            property.getOrElse(null) == null
        }
    
        def "can't set null provider to discard value"() {
            given:
            def property = property()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 18 17:09:50 UTC 2024
    - 11.5K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/reflect/validation/ValidationMessageCheckerTest.groovy

            when:
            render mutableSetter {
                property('someProperty')
                propertyType('Property<String>')
                includeLink()
            }
    
            then:
            outputEquals """
    Property 'someProperty' of mutable type 'Property<String>' is writable.
    
    Reason: Properties of type 'Property<String>' are already mutable.
    
    Possible solution: Remove the 'setSomeProperty' method.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 25.5K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/PropertyLifecycleIntegrationTest.groovy

                def property = objects.property(Integer)
                property.set(provider)
    
                assert property.get() == 1
                assert property.get() == 2
    
                property.finalizeValueOnRead()
    
                assert counter == 2 // is lazy
                assert property.get() == 3
    
                counter = 45
                assert property.get() == 3
    
                property.set(12)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 04 14:00:52 UTC 2024
    - 15K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/reflect/JavaPropertyReflectionUtilTest.groovy

            when:
            def property = writeableProperty(JavaTestSubject, "myProperty3", Arrays.asList("foo", "bar").class)
    
            then:
            property.type == Collection.class
    
            when:
            property = writeableProperty(JavaTestSubject, "myProperty3", "bar".class)
    
            then:
            property.type == CharSequence.class
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/api/provider/CollectionPropertyIntegrationTest.groovy

        def "can finalize the value of a property using API"() {
            given:
            buildFile """
    Integer counter = 0
    def provider = providers.provider { [++counter, ++counter] }
    
    def property = objects.listProperty(Integer)
    property.set(provider)
    
    assert property.get() == [1, 2]
    assert property.get() == [3, 4]
    property.finalizeValue()
    assert property.get() == [5, 6]
    assert property.get() == [5, 6]
    
    property.set([1])
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 12 19:57:00 UTC 2024
    - 15K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/docs/userguide/authoring-builds/gradle-properties/properties_providers.adoc

    ====
    include::sample[dir="snippets/providers/property/kotlin",files="build.gradle.kts[tags=set-prop]"]
    include::sample[dir="snippets/providers/property/groovy",files="build.gradle[tags=set-prop]"]
    ====
    
    Properties:
    
    * Properties with these types are configurable.
    * `Property` extends the `Provider` interface.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 24 04:19:09 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  7. 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)
  8. src/main/java/jcifs/Configuration.java

         * 
         * @return share to connect to during authentication, if unset connect to IPC$
         */
        String getLogonShare ();
    
    
        /**
         * 
         * 
         * Property <tt>jcifs.smb.client.domain</tt>
         * 
         * @return default credentials, domain name
         */
        String getDefaultDomain ();
    
    
        /**
         * 
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Thu Jan 05 13:06:39 UTC 2023
    - 18K bytes
    - Viewed (0)
  9. src/main/webapp/WEB-INF/view/admin/general/admin_general.jsp

                                        <div class="form-inline col-sm-9">
                                            <la:errors property="webApiJson"/>
                                            <div class="form-check">
                                                <la:checkbox styleId="webApiJson" styleClass="form-check-input" property="webApiJson"/>
                                                <label for="webApiJson" class="form-check-label">
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Mon Jan 16 12:54:35 UTC 2023
    - 39.4K bytes
    - Viewed (0)
  10. 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)
Back to top