Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for addTasks1 (0.14 sec)

  1. subprojects/core/src/integTest/groovy/org/gradle/execution/taskgraph/RuleTaskCreationIntegrationTest.groovy

            fails "tasks"
    
            then:
            failure.assertHasCause("Exception thrown while executing model rule: MyPlugin#addTasks2(ModelMap<Task>, MyModel)")
            failure.assertHasCause("Cannot create 'tasks.a' using creation rule 'MyPlugin#addTasks2(ModelMap<Task>, MyModel) > create(a)' as the rule 'MyPlugin#addTasks1(ModelMap<Task>, MyModel) > create(a)' is already registered to create this model element.")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Aug 18 22:50:47 UTC 2020
    - 16.9K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/execution/taskgraph/RuleTaskBridgingIntegrationTest.groovy

            given:
            buildFile << """
                ${ruleBasedTasks()}
    
                class MyPlugin extends RuleSource {
                    @Mutate
                    void addTasks(ModelMap<EchoTask> tasks) {
                        tasks.create("foo") {
                            message = "foo message"
                        }
                    }
                }
    
                apply type: MyPlugin
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 12:57:53 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/RuleSourceAppliedAsProjectPluginIntegrationTest.groovy

                        @Model
                        List<String> strings() {
                          []
                        }
    
                        @Mutate
                        void addTasks(ModelMap<Task> tasks, List<String> strings) {
                            tasks.create("value") {
                                it.doLast {
                                    println "value: $strings"
                                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 11.7K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/ModelRuleBindingFailureIntegrationTest.groovy

                        @Mutate
                        void addTasks(@Path("tasks") Integer s1) {
    
                        }
                    }
                }
    
                apply type: Plugin1
            """
    
            when:
            fails "tasks"
    
            then:
            failure.assertHasCause("There is a problem with model rule Plugin1.Rules#addTasks(Integer).")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-groovy/src/integTest/groovy/org/gradle/model/dsl/internal/transform/ModelDslRuleInputDetectionIntegrationSpec.groovy

            given:
            buildScript '''
                class MyPlugin {
                    static class Rules extends RuleSource {
                        @Mutate
                        void addTasks(ModelMap<Task> tasks) {
                            tasks.create("foobar")
                            tasks.create("raboof")
                        }
                    }
                }
    
                apply type: MyPlugin
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 13.3K bytes
    - Viewed (0)
Back to top