Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for failingTask (0.21 sec)

  1. platforms/documentation/docs/src/samples/ide/problems-api-usage/kotlin/reporters/script-plugin/src/main/kotlin/reporters/script.plugin.gradle.kts

                }
            }
        }
    
        val failingTask by registering {
            doLast {
                problems.forNamespace("buildscript").throwing {
                    id("broken-task", "Task should not be called")
                        .contextualLabel("Task 'failingTask' should not be called")
                        .severity(Severity.ERROR)
                        .withException(RuntimeException("The 'failingTask' should not be called"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 06 13:35:05 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  2. platforms/documentation/docs/src/samples/ide/problems-api-usage/groovy/reporters/script-plugin/src/main/groovy/reporters.script.plugin.gradle

            }
        }
    }
    
    tasks.register('failingTask') {
        doLast {
            problems.forNamespace('buildscript').throwing {
                it.id('broken-task', 'Task should not be called')
                    .contextualLabel("Task 'failingTask' should not be called")
                    .severity(Severity.ERROR)
                    .withException(new RuntimeException("The 'failingTask' should not be called"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 06 13:35:05 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  3. platforms/core-runtime/logging/src/integTest/groovy/org/gradle/internal/logging/console/taskgrouping/rich/RichConsoleBasicGroupedTaskLoggingFunctionalTest.groovy

    @SuppressWarnings("IntegrationTestFixtures")
    class RichConsoleBasicGroupedTaskLoggingFunctionalTest extends AbstractBasicGroupedTaskLoggingFunctionalTest {
        ConsoleOutput consoleType = ConsoleOutput.Rich
    
        private final StyledOutput failingTask = styled(Ansi.Color.RED, Ansi.Attribute.INTENSITY_BOLD).text("> Task :failing").styled(null).text(" FAILED").off()
        private final StyledOutput succeedingTask = styled(Ansi.Attribute.INTENSITY_BOLD).text("> Task :succeeding").off()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  4. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r51/TaskExecutionResultCrossVersionSpec.groovy

            given:
            buildFile << """
                task failingTask {
                    doFirst {
                        throw new GradleException('task failed intentionally')
                    }
                }
            """
    
            when:
            runBuild('failingTask')
    
            then:
            thrown(BuildException)
            with (taskFailureResult(':failingTask')) {
                !executionReasons.empty
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  5. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/TaskParametersIntegrationTest.groovy

            buildFile("""
                abstract class FailingTask extends DefaultTask {
                    @Input
                    abstract Property<String> getStringInput()
    
                    @TaskAction
                    void doStuff() {
                        println("Hello world")
                    }
                }
    
                tasks.register("failingTask", FailingTask) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 36.3K bytes
    - Viewed (0)
  6. platforms/software/reporting/src/integTest/groovy/org/gradle/api/reporting/plugins/BuildDashboardPluginIntegrationTest.groovy

                }
            """
        }
    
        private void failingDependenciesForTestTask() {
            buildFile << """
                task failingTask { doLast { throw new RuntimeException() } }
    
                test.dependsOn failingTask
            """
        }
    
        private void setupSubproject() {
            def subprojectDir = file('subproject')
            goodCode(subprojectDir)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 11.7K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/FinalizerTaskIntegrationTest.groovy

        }
    
        void 'finalizer tasks work with --continue (#requestedTasks, #failingTask)'() {
            setupProject()
            executer.beforeExecute {
                withArguments('--continue')
            }
    
            buildFile << """
                ${failingTask}.doLast { throw new RuntimeException() }
            """
    
            expect:
            2.times {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 17 13:27:33 UTC 2024
    - 32.3K bytes
    - Viewed (0)
  8. subprojects/core/src/test/groovy/org/gradle/execution/plan/DefaultExecutionPlanParallelTest.groovy

        static class BrokenTask extends DefaultTask {
            @OutputFiles
            FileCollection getOutputFiles() {
                throw new Exception("BOOM!")
            }
        }
    
        static class FailingTask extends DefaultTask {
            @TaskAction
            void execute() {
                throw new RuntimeException("BOOM!")
            }
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 05 22:18:26 UTC 2024
    - 93.5K bytes
    - Viewed (0)
Back to top