Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 42 for failureDescriptionContains (0.38 sec)

  1. platforms/core-runtime/wrapper-shared/src/integTest/groovy/org/gradle/integtests/TarSlipIntegrationTest.groovy

                    from(tarTree('evil.tar.bz'))
                    into('.')
                }
            '''
    
            when:
            fails 'copyEvilTar'
    
            then:
            failureDescriptionContains "Execution failed for task ':copyEvilTar'"
            failure.assertHasErrorOutput "'../../tmp/evil.sh' is not a safe archive entry or path name"
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:12:34 UTC 2023
    - 2.2K bytes
    - Viewed (0)
  2. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/continuous/SmokeContinuousIntegrationTest.groovy

                    outputs.files "build/marker"
                    doLast {}
                }
            """
    
            then:
            fails("a")
            failureDescriptionContains("Could not determine the dependencies of task ':a'.")
        }
    
        def "failure to determine inputs has a reasonable message when an earlier task succeeds"() {
            when:
            buildScript """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 18.5K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/internal/tasks/SnapshotTaskInputsOperationIntegrationTest.groovy

            failureDescriptionContains(implementationUnknown {
                implementationOfTask(':customTask')
                unknownClassloader('CustomTask_Decorated')
            })
            failureDescriptionContains(implementationUnknown {
                additionalTaskAction(':customTask')
                unknownClassloader('CustomTask_Decorated')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 09:03:53 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  4. platforms/software/resources-sftp/src/integTest/groovy/org/gradle/integtests/resolve/resource/sftp/ivy/IvySftpRepoErrorsIntegrationTest.groovy

        }
    
        private void assertTaskFailureDescription(String taskSelector) {
            if (GradleContextualExecuter.configCache) {
                failureDescriptionContains("Configuration cache state could not be cached:")
                failureDescriptionContains(taskSelector)
            } else {
                def description = "Execution failed for task '${taskSelector}'."
                failure.assertHasDescription(description)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 23 11:07:23 UTC 2024
    - 9.3K bytes
    - Viewed (0)
  5. platforms/extensibility/plugin-development/src/integTest/groovy/org/gradle/plugin/devel/tasks/PluginUnderTestMetadataIntegrationTest.groovy

            given:
            buildFile << """
                task $TASK_NAME(type: ${PluginUnderTestMetadata.class.getName()})
            """
    
            when:
            fails TASK_NAME
    
            then:
            failureDescriptionContains(missingValueMessage { type(PluginUnderTestMetadata.name).property('outputDirectory').includeLink() })
        }
    
        def "implementation-classpath entry in metadata is empty if there is no classpath"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 3.7K bytes
    - Viewed (0)
  6. platforms/extensibility/plugin-use/src/integTest/groovy/org/gradle/plugin/repository/ResolvingWithPluginManagementSpec.groovy

              }
            """
            args('-I', initScript.absolutePath)
    
            when:
            fails('help')
    
            then:
            failureDescriptionContains("Cannot change the plugin resolution strategy after projects have been loaded.")
        }
    
        def "fails build for unresolvable custom artifact"() {
            given:
            buildScript helloWorldPlugin('0.2')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 22:36:52 UTC 2023
    - 11.9K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/NameValidationIntegrationTest.groovy

        }
    
        void assertFailureDescriptionOrCauseContains(String... messages) {
            try {
                messages.each { failureDescriptionContains(it) }
            } catch (AssertionError ignore) {
                messages.each { failureCauseContains(it) }
            }
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 24 06:54:47 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  8. platforms/core-runtime/wrapper-shared/src/integTest/groovy/org/gradle/integtests/PathTraversalCheckerIntegrationTest.groovy

                    from(zipTree('evil.zip'))
                    into('.')
                }
            '''
    
            when:
            fails 'copyEvilZip'
    
            then:
            failureDescriptionContains "Execution failed for task ':copyEvilZip'"
            failure.assertHasErrorOutput "'../../tmp/evil.sh' is not a safe archive entry or path name"
        }
    
        def "UnzipTransform refuses to unzip evil.zip"() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:12:34 UTC 2023
    - 4K bytes
    - Viewed (0)
  9. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/IncrementalBuildIntegrationTest.groovy

            failureDescriptionContains(implementationUnknown {
                implementationOfTask(':customTask')
                unknownClassloader('CustomTask_Decorated')
            })
            failureDescriptionContains(implementationUnknown {
                additionalTaskAction(':customTask')
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 36.3K bytes
    - Viewed (0)
  10. platforms/software/platform-base/src/integTest/groovy/org/gradle/language/base/BinariesLifecycleTaskIntegrationTest.groovy

            withLibBinaries("notBuildableBinary1", "notBuildableBinary2")
            withStandaloneBinaries("ignoreMe")
    
            when:
            fails "assemble"
    
            then:
            failureDescriptionContains("Execution failed for task ':assemble'.")
            failure.assertHasCause("""No buildable binaries found:
      - SampleBinary 'lib:notBuildableBinary1':
          - Binary notBuildableBinary1 has 'notBuildable' in the name
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 5.6K bytes
    - Viewed (0)
Back to top