Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 409 for broken1 (0.14 sec)

  1. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheCompositeBuildProblemReportingIntegrationTest.groovy

            """
            file("inc/settings.gradle") << """
                include 'sub'
            """
            file("inc/sub/build.gradle") << """
                gradle.buildFinished { }
                tasks.register('broken') {
                    inputs.property('p', project).optional(true)
                    doLast { t -> t.project }
                }
            """
    
            when:
            configurationCacheFails ":inc:sub:broken"
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  2. platforms/native/language-native/src/integTest/groovy/org/gradle/language/cpp/CppApplicationIntegrationTest.groovy

            given:
            app.writeToProject(testDirectory)
            file("src/main/cpp/ignore.swift") << 'broken!'
            file("src/main/cpp/ignore.c") << 'broken!'
            file("src/main/cpp/ignore.m") << 'broken!'
            file("src/main/cpp/ignore.h") << 'broken!'
            file("src/main/cpp/ignore.java") << 'broken!'
    
            and:
            buildFile << """
                apply plugin: 'cpp-application'
             """
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Feb 07 19:11:01 UTC 2024
    - 42.5K bytes
    - Viewed (0)
  3. platforms/native/language-native/src/integTest/groovy/org/gradle/language/swift/SwiftLibraryIntegrationTest.groovy

        }
    
        def "build fails when compilation fails"() {
            given:
            buildFile << """
                apply plugin: 'swift-library'
             """
    
            and:
            file("src/main/swift/broken.swift") << "broken!"
    
            expect:
            fails "assemble"
            failure.assertHasDescription("Execution failed for task ':compileDebugSwift'.")
            failure.assertHasCause("A build operation failed.")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 06 15:17:55 UTC 2024
    - 13.1K bytes
    - Viewed (0)
  4. platforms/jvm/language-java/src/test/groovy/org/gradle/api/internal/tasks/compile/processing/AnnotationProcessorDetectorTest.groovy

        }
    
        AnnotationProcessorDetector detector = new AnnotationProcessorDetector(new TestFileContentCacheFactory(), logger, true)
    
        def "detects no processors in broken jars"() {
            given:
            def jar = tmpDir.file("classes.jar")
            jar << "broken"
            def cp = files(jar)
    
            when:
            def processors = detector.detectProcessors(cp)
    
            then:
            processors == [:]
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 20 10:14:55 UTC 2024
    - 8.8K bytes
    - Viewed (0)
  5. subprojects/core/src/test/groovy/org/gradle/internal/problems/DefaultProblemDiagnosticsFactoryTest.groovy

            expect:
            stream.forCurrentCaller().stack.empty
    
            def failure1 = new Exception("broken")
            def diagnostics1 = stream.forCurrentCaller(failure1)
            diagnostics1.exception == failure1
            !diagnostics1.stack.empty
    
            def failure2 = new Exception("broken")
            def diagnostics2 = factory.forException(failure2)
            diagnostics2.exception == failure2
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 23 17:15:42 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  6. platforms/documentation/docs/src/samples/ide/problems-api-usage/groovy/reporters/script-plugin/src/main/groovy/reporters.script.plugin.gradle

                    .solution("Please use 'warningTask2' instead of this task")
            }
        }
    }
    
    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)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 06 13:35:05 UTC 2024
    - 1.3K bytes
    - Viewed (0)
  7. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheSupportedTypesIntegrationTest.groovy

                    }
                }
    
                task broken(type: SomeTask) {
                }
            """
    
            when:
            configurationCacheFails "broken"
    
            then:
            configurationCache.assertStateStoreFailed()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 26.1K bytes
    - Viewed (0)
  8. 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)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 06 13:35:05 UTC 2024
    - 1.4K bytes
    - Viewed (0)
  9. platforms/jvm/toolchains-jvm/src/test/groovy/org/gradle/jvm/toolchain/internal/JavaToolchainQueryServiceTest.groovy

            toolchain.get().vendor == "IBM"
        }
    
        def "ignores invalid toolchains when finding a matching one"() {
            given:
            def queryService = setupInstallations(["8.0", "8.0.242.hs-adpt", "8.0.broken"])
    
            when:
            def filter = createSpec()
            filter.languageVersion.set(JavaLanguageVersion.of(8))
            def toolchain = queryService.findMatchingToolchain(filter).get()
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 18 22:46:10 UTC 2024
    - 19K bytes
    - Viewed (0)
  10. platforms/ide/tooling-api/src/crossVersionTest/groovy/org/gradle/integtests/tooling/r68/ParallelActionExecutionCrossVersionSpec.groovy

            then:
            def e = thrown(BuildActionFailureException)
            e.cause instanceof RuntimeException
            TextUtil.normaliseLineSeparators(e.cause.message) == """Multiple build operations failed.
        broken: one
        broken: two"""
        }
    
        def setupBuildWithDependencyResolution() {
            server.start()
    
            settingsFile << """
                rootProject.name = 'root'
                include 'a', 'b'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 16 10:10:39 UTC 2024
    - 6.1K bytes
    - Viewed (0)
Back to top