Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 2,272 for FILE (0.04 sec)

  1. platforms/core-runtime/wrapper-shared/src/main/java/org/gradle/wrapper/Install.java

        private List<File> listDirs(File distDir) {
            if (!distDir.exists()) {
                return emptyList();
            }
            File[] files = distDir.listFiles();
            if (files == null) {
                return emptyList();
            }
    
            List<File> dirs = new ArrayList<File>();
            for (File file : files) {
                if (file.isDirectory()) {
                    dirs.add(file);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  2. src/go/token/position.go

    // from the beginning of the file. Thus, the file base offset is the Pos value
    // representing the first byte in the file.
    //
    // To create the Pos value for a specific source offset (measured in bytes),
    // first add the respective file to the current file set using [FileSet.AddFile]
    // and then call [File.Pos](offset) for that file. Given a Pos value p
    // for a specific file set fset, the corresponding [Position] value is
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  3. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/fingerprint/ConfigurationCacheFingerprintWriter.kt

        private
        fun reportUniqueFileSystemEntryInput(file: File, consumer: String?) {
            if (reportedFileSystemEntries.add(file)) {
                reportFileSystemEntryInput(file, consumer)
            }
        }
    
        private
        fun reportFileInput(file: File, consumer: String?) {
            reportInput(consumer, null) {
                text("file ")
                reference(host.displayNameOf(file))
            }
        }
    
        private
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 32.8K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/MissingTaskDependenciesIntegrationTest.groovy

                    def outputFile = file("output.txt")
                    outputs.file(outputFile)
                    doLast {
                        outputFile.text = "produced"
                    }
                }
    
                task consumer {
                    def inputFile = file("output.txt")
                    def outputFile = file("consumerOutput.txt")
                    inputs.files(inputFile)
                    outputs.file(outputFile)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 15 08:14:44 UTC 2024
    - 20.3K bytes
    - Viewed (0)
  5. platforms/jvm/toolchains-jvm-shared/src/test/groovy/org/gradle/jvm/toolchain/internal/install/DefaultJdkCacheDirectoryTest.groovy

            def install1 = new File(temporaryFolder, "jdks/jdk-1").tap { mkdirs() }
            new File(install1, DefaultJdkCacheDirectory.MARKER_FILE).createNewFile()
    
            def install2 = new File(temporaryFolder, "jdks/jdk-2").tap { mkdirs() }
            new File(install2, DefaultJdkCacheDirectory.MARKER_FILE).createNewFile()
    
            new File(temporaryFolder, "jdks/notReady").tap { mkdirs() }
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 09 06:41:24 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  6. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/bundling/ConcurrentArchiveIntegrationTest.groovy

            handle.waitForFinish()
            then:
            // we should have extracted the file into a different directory for each extracter
            file("build/extract/thread_0/file.txt").assertExists()
            file("build/extract/thread_1/file.txt").assertExists()
            file("build/extract/thread_2/file.txt").assertExists()
    
            cleanup:
            handle?.abort()
            server.stop()
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 17:32:21 UTC 2024
    - 28.6K bytes
    - Viewed (0)
  7. platforms/core-configuration/file-collections/src/integTest/groovy/org/gradle/api/file/FileCollectionIntegrationTest.groovy

                }
            """
            file('a.txt').text = 'a1'
            file('a.bin').text = 'a2'
            file('b.txt').text = 'b1'
            file('b.bin').text = 'b2'
    
            when:
            run("merge")
    
            then:
            outputContains("result = [a.txt, b.txt, a.bin, b.bin]")
        }
    
        def "can subtract the elements of another file collection"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 12:54:09 UTC 2024
    - 21K bytes
    - Viewed (0)
  8. platforms/core-runtime/base-services/src/main/java/org/gradle/util/internal/GFileUtils.java

        public static FileInputStream openInputStream(File file) {
            try {
                return FileUtils.openInputStream(file);
            } catch (IOException e) {
                throw new RuntimeException("Problems opening file input stream for file: " + file, e);
            }
        }
    
        /**
         * Ensures that the given file (or directory) is marked as modified. If the file
         * (or directory) does not exist, a new file is created.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 10:50:51 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  9. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/AbstractLineEndingSensitivityIntegrationSpec.groovy

                    outputFile = project.file("\${buildDir}/output.txt")
                }
            """
            file('foo/Changing.java') << toUnix(TEXT_WITH_LINE_ENDINGS)
            file('foo/Changing.jpg').bytes = BINARY_CONTENT_WITH_LF
    
            when:
            execute("taskWithInputs")
    
            then:
            executedAndNotSkipped(":taskWithInputs")
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 21.2K bytes
    - Viewed (0)
  10. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/undeclared/AbstractUndeclaredBuildInputsIntegrationTest.groovy

        }
    
        def "reports undeclared file system entry check for File.#kind"() {
            Assume.assumeFalse("cannot use the file APIs in restricted DSL", isRestrictedDsl())
    
            def configurationCache = newConfigurationCacheFixture()
    
            UndeclaredFileAccess.FileCheck check = fileCheck(testDirectory)
            buildLogicApplication(check)
            def accessedFile = new File(check.filePath)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 13.4K bytes
    - Viewed (0)
Back to top