Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for modelMapTask (0.09 sec)

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

    task standardTask
    
    model {
      tasks {
        newModelTask(Task) {}
      }
    }
    
    class MyPlugin extends RuleSource {
        @Mutate
        void addTasks(ModelMap<Task> tasks) {
            tasks.create('modelMapTask') {}
        }
    }
    apply type: MyPlugin
    """
    
            when:
            succeeds("model")
    
            then:
            def tasksNode = ModelReportOutput.from(output).modelNode.tasks
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Aug 18 22:50:47 UTC 2020
    - 16.9K bytes
    - Viewed (0)
Back to top