Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for ruleBasedTasks (0.17 sec)

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

            output.contains "name: tasks"
        }
    
        def "can view tasks as various view types"() {
            given:
            buildFile << """
                ${ruleBasedTasks()}
    
                class MyPlugin extends RuleSource {
                    @Mutate
                    void tasks(ModelMap<EchoTask> tasks) {
                        tasks.create("test")
                    }
                    @Mutate
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 12:57:53 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/execution/taskgraph/WithRuleBasedTasks.groovy

     * See the License for the specific language governing permissions and
     * limitations under the License.
     */
    
    package org.gradle.execution.taskgraph
    
    trait WithRuleBasedTasks {
    
        String ruleBasedTasks() {
            """
            class EchoTask extends DefaultTask {
                @Internal
                String message = "default"
                @TaskAction
                void print() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 13 15:22:15 UTC 2019
    - 1.5K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/execution/taskgraph/RuleTaskExecutionIntegrationTest.groovy

            createdTasksFor("t1") == [":a:t1", ":b:t1", ":c:t1", ":t1"]
        }
    
        def "rule based tasks that are not requested on the command line are not created"() {
            when:
            buildFile << """
                ${ruleBasedTasks()}
                model {
                    tasks {
                        create("t1") {
                            group = "mygroup"
                        }
                        create("t2", BrokenTask) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/execution/taskgraph/RuleTaskCreationIntegrationTest.groovy

    @UnsupportedWithConfigurationCache(because = "software model")
    class RuleTaskCreationIntegrationTest extends AbstractIntegrationSpec implements WithRuleBasedTasks {
        def setup() {
            buildFile << ruleBasedTasks()
        }
    
        def "can use rule method to create tasks from model"() {
            given:
            buildFile << """
                class MyModel {
                    List<String> 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