Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for failingTask (0.14 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)
Back to top