Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 9 of 9 for modelElement (0.4 sec)

  1. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/CustomComponentIntegrationTest.groovy

                        tasks.create("validate") {
                            assert components*.name == ["sampleLib"]
                            assert components.withType(ModelElement)*.name == ["sampleLib"]
                            assert components.withType(ComponentSpec)*.name == ["sampleLib"]
                            assert components.withType($componentSpecType)*.name == ["sampleLib"]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 25.1K bytes
    - Viewed (0)
  2. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/CustomBinaryIntegrationTest.groovy

            succeeds "checkModel"
        }
    
        def "custom binary type can viewed as ModelElement"() {
            when:
            buildWithCustomBinaryPlugin()
    
            and:
            buildFile << '''
                class Rules extends RuleSource {
                    @Mutate
                    void tasks(ModelMap<Task> tasks, @Path("binaries.sampleBinary") ModelElement binary) {
                        tasks.create("checkModel") {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 11K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/ScalarTypesInManagedModelIntegrationTest.groovy

                    void types(PrimitiveTypes primitiveTypes) {
                    }
    
                    @Mutate
                    void addCheckTask(ModelMap<Task> tasks, @Path("types.intProp") ModelElement intProp, @Path("types.longProp") ModelElement longProp) {
                        tasks.create("check") {
                            doLast {
                                println "intProp: $intProp"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 27.1K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/InterfaceBackedManagedTypeIntegrationTest.groovy

            '''
    
            then:
            succeeds "echo"
    
            and:
            output.contains("person: Person 'someone'")
            output.contains("name: foo")
        }
    
        def "can view a managed element as ModelElement"() {
            when:
            buildScript '''
                @Managed
                interface Person {
                    String getName()
                    void setName(String name)
                }
    
    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/model/ModelMapIntegrationTest.groovy

            and:
            output.contains "name: things"
            output.contains "display-name: ModelMap<Thing> 'things'"
            output.contains "to-string: ModelMap<Thing> 'things'"
        }
    
        def "can view as ModelElement"() {
            when:
            buildScript '''
                @Managed
                interface Thing {
                }
    
                class Rules extends RuleSource {
                  @Model
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 11.1K bytes
    - Viewed (0)
  6. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/FunctionalSourceSetIntegrationTest.groovy

        }
    
        def "can view a functional source set as a ModelElement"() {
            buildScript """
            apply plugin: 'language-base'
    
            class Rules extends RuleSource {
                @Model
                void fss(FunctionalSourceSet sources) {
                }
    
                @Mutate void printTask(ModelMap<Task> tasks, @Path("fss") ModelElement sources) {
                    tasks.create("printTask") {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 13.1K bytes
    - Viewed (0)
  7. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/ModelSetIntegrationTest.groovy

            and:
            output.contains "name: people"
            output.contains "display-name: ModelSet<Person> 'people'"
            output.contains "to-string: ModelSet<Person> 'people'"
        }
    
        def "can view as ModelElement"() {
            when:
            buildScript '''
                @Managed
                interface Person {
                }
    
                class Rules extends RuleSource {
                  @Model
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 18.9K bytes
    - Viewed (0)
  8. subprojects/core/src/integTest/groovy/org/gradle/execution/taskgraph/RuleTaskBridgingIntegrationTest.groovy

                        println "as container: $tasks"
                        assert tasks.getByName("tasks") != null
                    }
                    @Mutate
                    void applyMessages(@Path("tasks") ModelElement tasks) {
                        println "as model element: $tasks"
                        println "name: $tasks.name"
                    }
                }
    
                apply type: MyPlugin
            '''
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 12:57:53 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  9. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/NodeBackedModelMapSpec.groovy

    This element was created by testrule > create(item) and can be mutated as the following types:
      - ${fullyQualifiedNameOf(itemClass)} (or assignment compatible type thereof)
      - ${ModelElement.name} (or assignment compatible type thereof)"""
        }
    
        static class NamedRules extends RuleSource {}
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 38.3K bytes
    - Viewed (0)
Back to top