Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 68 for addTasks (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. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/RuleSourceAppliedToModelMapElementIntegrationTest.groovy

                }
    
                class Rules extends RuleSource {
                    @Model
                    String message() {
                        "foo"
                    }
    
                    @Mutate
                    void addTasks(ModelMap<Task> tasks) {
                        tasks.create("echo", MessageTask)
                        tasks.named("echo", EchoRules)
                    }
                }
    
                apply type: Rules
            '''
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4.9K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/execution/taskgraph/RuleTaskBridgingIntegrationTest.groovy

                    @Mutate
                    void addTask(ModelMap<Task> tasks) {
                        tasks.create("foo")
                    }
                }
    
                apply type: MyPlugin
    
                task foo {}
            """
    
            then:
            fails "foo"
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 12:57:53 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/execution/taskgraph/RuleTaskExecutionIntegrationTest.groovy

                    @Mutate
                    void addTasks(ModelMap<Task> tasks) {
                        tasks.create("executed") {
                            dependsOn ":b:dependency"
                        }
                    }
                }
    
                class ProjectBRules extends RuleSource {
                    @Mutate
                    void addTasks(ModelMap<Task> tasks) {
                        tasks.create("dependency")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  5. 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)
  6. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/MutationRuleApplicationOrderIntegrationTest.groovy

                        @Mutate
                        void a(MutationRecorder recorder) {
                            recorder.mutations << "a"
                        }
    
                        @Mutate
                        void addTasks(ModelMap<Task> tasks, MutationRecorder recorderInput) {
                            tasks.create("echo", EchoTask) {
                                recorder = recorderInput
                            }
                        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. tensorflow/compiler/mlir/tensorflow/transforms/mlprogram.cc

          /*prefer_tf2xla=*/false));
    
      pm.addPass(mlir::TF::CreateStripTfAttributesPass());
    
      pm.addPass(mlir::createCanonicalizerPass());
      pm.addPass(mlir::createInlinerPass());
      pm.addPass(mlir::createSymbolDCEPass());
      pm.addPass(mlir::createCanonicalizerPass());
    
      pm.addPass(mlir::TF::CreateOrderByDialectPass());
    
      pm.addPass(mlir::mhlo::createHloLegalizeToStablehloPass());
    }
    
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Jan 09 22:39:15 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  10. tensorflow/compiler/mlir/tf2xla/internal/clustering_bridge_passes.cc

              ->tf_mlir_enable_merge_control_flow_pass) {
        pm.addPass(mlir::TFDevice::CreateMergeControlFlowPass());
      }
    
      pm.addPass(
          tensorflow::tf2xla::internal::CreateMarkOpsForOutsideCompilationPass());
      pm.addPass(tensorflow::tf2xla::internal::
                     CreateExtractHeadTailOutsideCompilationPass());
      pm.addPass(
          tensorflow::tf2xla::internal::CreateExtractOutsideCompilationPass());
    Registered: Sun Jun 16 05:45:23 UTC 2024
    - Last Modified: Tue Apr 30 16:09:14 UTC 2024
    - 11.2K bytes
    - Viewed (0)
Back to top