Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 611 for unreadable (0.13 sec)

  1. platforms/core-runtime/files/src/testFixtures/groovy/org/gradle/internal/file/AbstractFileMetadataAccessorTest.groovy

            cleanup:
            unreadableDir.makeReadable()
        }
    
        @Requires(UnitTestPreconditions.FilePermissions)
        def "stat an unreadable file"() {
            def unreadableFile = tmpDir.createFile("unreadable")
            unreadableFile.makeUnreadable()
    
            expect:
            def stat = accessor.stat(unreadableFile)
            stat.type == FileType.RegularFile
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:50:56 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  2. src/cmd/internal/bootstrap_test/reboot_test.go

    	}
    
    	realGoroot := testenv.GOROOT(t)
    
    	// To ensure that bootstrapping doesn't unexpectedly depend
    	// on the Go repo's git metadata, add a fake (unreadable) git
    	// directory above the simulated GOROOT.
    	// This mimics the configuration one much have when
    	// building from distro-packaged source code
    	// (see https://go.dev/issue/54852).
    	parent := t.TempDir()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 21 22:16:54 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CopyPermissionsIntegrationTest.groovy

        @Issue('https://github.com/gradle/gradle/issues/9576')
        def "unreadable #type not produced by task fails"() {
            given:
            def input = file("readableFile.txt").createFile()
    
            def outputDirectory = file("output")
            def unreadableOutput = file("${outputDirectory.name}/unreadable${type.capitalize()}")
            create(unreadableOutput).makeUnreadable()
    
            buildFile << """
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 20K bytes
    - Viewed (0)
  4. subprojects/core/src/main/java/org/gradle/api/internal/tasks/execution/TaskExecution.java

                    .withAdvice("Declare the task as untracked by using Task.doNotTrackState().");
            } else if (isDestinationDir && task instanceof Sync) {
                builder.withSummary("Cannot access a file in the destination directory.")
                    .withContext("Syncing to a directory which contains unreadable content is not supported.")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 13:46:07 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/-ResponseCommon.kt

      override fun source() = buffer()
    
      override fun read(
        sink: Buffer,
        byteCount: Long,
      ): Long {
        throw IllegalStateException(
          """
          |Unreadable ResponseBody! These Response objects have bodies that are stripped:
          | * Response.cacheResponse
          | * Response.networkResponse
          | * Response.priorResponse
          | * EventSourceListener
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Apr 15 13:24:48 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  6. okhttp/src/test/java/okhttp3/internal/cache2/RelayTest.kt

        source1.close() // Not exhausted!
        assertThat(relay1.isClosed).isTrue()
        assertFailsWith<IOException> {
          read(file)
        }.also { expected ->
          assertThat(expected.message).isEqualTo("unreadable cache file")
        }
        assertFile(Relay.PREFIX_DIRTY, -1L, -1, null, null)
      }
    
      @Test
      fun redundantCallsToCloseAreIgnored() {
        val upstream = Buffer()
        upstream.writeUtf8("abcde")
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Thu Apr 11 22:09:35 UTC 2024
    - 8.1K bytes
    - Viewed (0)
  7. testing/integ-test/src/integTest/groovy/org/gradle/integtests/SyncTaskIntegrationTest.groovy

            expect:
            fails 'syncIt'
    
            cleanup:
            ins.close()
        }
    
        @Requires(UnitTestPreconditions.FilePermissions)
        def "sync fails when the output contains unreadable files"() {
            given:
            def input = file("readableFile.txt").createFile()
    
            def outputDirectory = file("output")
            def unreadableOutput = outputDirectory.file("unreadableFile").createFile()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  8. src/cmd/cover/cfg_test.go

    		cmd.Dir = instdira
    		run(cmd, t)
    	}
    
    	// Do some error testing to ensure that various bad options and
    	// combinations are properly rejected.
    
    	// Expect error if config file inaccessible/unreadable.
    	mode := "atomic"
    	errExpected := true
    	tag := "errors"
    	_, _, errmsg := runPkgCover(t, instdira, tag, "/not/a/file", mode,
    		apkgfiles, errExpected)
    	want := "error reading pkgconfig file"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Apr 15 12:51:11 UTC 2024
    - 7.8K bytes
    - Viewed (0)
  9. okhttp/src/main/kotlin/okhttp3/internal/cache2/Relay.kt

          val header = Buffer()
          fileOperator.read(0, header, FILE_HEADER_SIZE)
          val prefix = header.readByteString(PREFIX_CLEAN.size.toLong())
          if (prefix != PREFIX_CLEAN) throw IOException("unreadable cache file")
          val upstreamSize = header.readLong()
          val metadataSize = header.readLong()
    
          // Read the metadata.
          val metadataBuffer = Buffer()
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  10. platforms/documentation/docs/src/docs/userguide/releases/upgrading/upgrading_version_7.adoc

    ==== Declaring input or output directories which contain unreadable content
    
    For up-to-date checks Gradle relies on tracking the state of the inputs and the outputs of a task.
    Gradle used to ignore unreadable files in the input or outputs to support certain use-cases, although it cannot track their state.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 01 15:00:23 UTC 2024
    - 87.7K bytes
    - Viewed (0)
Back to top