Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 30 for __elements (0.12 sec)

  1. build-logic/documentation/src/main/groovy/gradlebuild/docs/BuildableDOMCategory.groovy

            cl.delegate = builder
            cl.call()
            def parent = sibling.parentNode
            def next = sibling.nextSibling
            builder.elements.each { element ->
                parent.insertBefore(element, next)
            }
            return builder.elements.size() == 1 ? builder.elements[0] : builder.elements
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Aug 11 15:32:19 UTC 2022
    - 2.8K bytes
    - Viewed (0)
  2. platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/FileCollectionSpec.groovy

            def collection = containing()
            def elements = collection.elements
    
            expect:
            elements.present
            elements.get().empty
        }
    
        def canViewElementsAsProviderRetainingOrder() {
            def file1 = new File("f1")
            def file2 = new File("f2")
            def collection = containing(file1, file2, file1, file2)
            def elements = collection.elements
    
            expect:
            elements.present
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  3. platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/collections/DefaultConfigurableFileCollectionSpec.groovy

            !collection.explicit
        }
    
        def "elements provider tracks changes to content"() {
            given:
            def file1 = new File("1")
            def file2 = new File("2")
            def callable = Mock(Callable)
    
            collection.from(callable)
            def elements = collection.elements
    
            when:
            def f1 = elements.get()
    
            then:
            f1*.asFile == [file1, file2]
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 18 17:09:50 UTC 2024
    - 53K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/ModelSetIntegrationTest.groovy

            output.contains "display-name: ModelSet<Person> 'people'"
            output.contains "to-string: ModelSet<Person> 'people'"
        }
    
        def "rule can create a managed collection of interface backed managed model elements"() {
            when:
            buildScript '''
                @Managed
                interface Person {
                  String getName()
                  void setName(String string)
                }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 18.9K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/RuleSourceAppliedByRuleMethodIntegrationTest.groovy

                        }
                    }
                }
            '''
    
            when:
            run 'show'
    
            then:
            output.contains("p1 = default")
        }
    
        def "elements referenced by @RuleInput property are treated as implicit input of rules on RuleSource"() {
            buildFile << '''
                @Managed
                interface SomeThings {
                    Thing getThingA()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 18.7K bytes
    - Viewed (0)
  6. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheBuildServiceIntegrationTest.groovy

                    ${ finalize ? "countingService.finalizeValue()" : "" }
                    doLast {
                        assert countingService.get().increment() == 2
                        assert requiredServices.elements.size() == 1
                        assert altServiceProvider.get().increment() == 3
                    }
                }
            """
            def configurationCache = newConfigurationCacheFixture()
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jun 10 11:47:23 UTC 2024
    - 29.1K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/ManagedModelMapIntegrationTest.groovy

    @UnsupportedWithConfigurationCache(because = "software model")
    class ManagedModelMapIntegrationTest extends AbstractIntegrationSpec {
    
        def "rule can create a map of model elements"() {
            when:
            buildScript '''
                @Managed
                interface Thing extends Named {
                  void setValue(String value)
                  String getValue()
                }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 13.5K bytes
    - Viewed (0)
  8. build-logic/binary-compatibility/src/main/groovy/gradlebuild/EnrichedReportRenderer.groovy

                                return 1; 
                            } else {
                                return -1;
                            }
                        });
                        // Remove duplicates (equal adjacent elements) - a new, un@Incubating type will be here twice, as 2 errors are reported; use stringified JSON to compare
                        // Filtering an array is NOT in place
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 07 20:38:43 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  9. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheFileCollectionIntegrationTest.groovy

            "'contains=' + tree.contains(file1)"                                                            | "contains=false" | "contains=true"
        }
    
        def "elements of fixed file collection are not treated as build inputs"() {
            buildFile << """
                task report {
                    def files = files("file1", "file2")
                    def file1 = file("file1")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 9.4K bytes
    - Viewed (0)
  10. platforms/core-configuration/input-tracking/src/test/groovy/org/gradle/internal/configuration/inputs/AccessTrackingSetTest.groovy

            0 * listener._
        }
    
        def "containsAll of existing elements is tracked"() {
            when:
            def result = set.containsAll(Arrays.asList('existing', 'other'))
    
            then:
            result
            1 * listener.onAccess('existing')
            1 * listener.onAccess('other')
            0 * listener._
        }
    
        def "containsAll of missing elements is tracked"() {
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Nov 11 00:37:04 UTC 2023
    - 6K bytes
    - Viewed (0)
Back to top