Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for CustomComponent (0.2 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/api/internal/component/DefaultSoftwareComponentContainerIntegrationTest.groovy

                    assert(components.named<CustomComponent>("second").get().name == "second")
                    assert(components.named<CustomComponent>("second").get().value.get() == 2)
                    assert(components.named<CustomComponent>("second").get() is DefaultCustomComponent)
                }
            """
    
            expect:
            succeeds "verify"
        }
    
        def "can configure multiple elements in Groovy DSL"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 14 22:59:22 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  2. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/ComponentModelIntegrationTest.groovy

            """
            then:
            succeeds "tasks"
    
            and:
            output.contains """beforeEach CustomComponent 'main'
    afterEach CustomComponent 'main'
    beforeEach CustomComponent 'newComponent'
    creating CustomComponent 'newComponent'
    afterEach CustomComponent 'newComponent'"""
    
        }
    
        def "plugin can configure component with given type "() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 20.4K bytes
    - Viewed (0)
  3. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/ComponentSourcesIntegrationTest.groovy

                            }
                        }
                        test(CustomComponent) {
                            sources {
                                test(CustomLanguageSourceSet)
                            }
                        }
                        foo(CustomComponent) {
                            sources {
                                bar(CustomLanguageSourceSet)
                            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  4. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/AbstractComponentModelIntegrationTest.groovy

        /**
         * Registers CustomComponent type
         */
        void withCustomComponentType() {
            buildFile << """
                @Managed interface CustomComponent extends GeneralComponentSpec {}
    
                class ComponentTypeRules extends RuleSource {
                    @ComponentType
                    void registerCustomComponentType(TypeBuilder<CustomComponent> builder) {}
                }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  5. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/ComponentBinariesIntegrationTest.groovy

        def setup() {
            withCustomComponentType()
            withCustomBinaryType()
            withCustomLanguageType()
    
            buildFile << '''
    model {
        components {
            mylib(CustomComponent) {
                binaries {
                    main(CustomBinary)
                    test(CustomBinary)
                }
            }
        }
    }
    '''
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 5.2K bytes
    - Viewed (0)
  6. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/ComponentBinarySourcesIntegrationTest.groovy

        def setup() {
            withCustomComponentType()
            withCustomBinaryType()
            withCustomLanguageType()
    
            buildFile << '''
    model {
        components {
            mylib(CustomComponent) {
                binaries {
                    main(CustomBinary)
                    test(CustomBinary)
                }
            }
        }
    }
    '''
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 9.7K bytes
    - Viewed (0)
Back to top