Search Options

Results per page
Sort
Preferred Languages
Advance

Results 61 - 70 of 6,891 for FILE (0.04 sec)

  1. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/KotlinScript.kt

         * @param path The object to resolve as a `File`.
         * @return The resolved file.
         */
        fun file(path: Any): File
    
        /**
         * Resolves a file path relative to this script's target base directory.
         *
         * @param path The object to resolve as a `File`.
         * @param validation The validation to perform on the file.
         * @return The resolved file.
         * @see file
         */
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 12.3K bytes
    - Viewed (0)
  2. platforms/core-configuration/file-collections/src/integTest/groovy/org/gradle/api/file/FileCollectionPropertyIntegrationTest.groovy

                // Set values lazily
                createFiles.inputFile = layout.projectDirectory.file("file-source.txt")
                createFiles.outputFiles.add(layout.buildDirectory.file("file1.txt"))
                createFiles.outputFiles.add(layout.buildDirectory.file("file2.txt"))
    
                buildDir = "output"
    """
            file("file-source.txt").text = "file1"
    
            when:
            run("merge")
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 17.3K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. platforms/software/resources/src/test/groovy/org/gradle/internal/resource/local/LocalFileStandInExternalResourceTest.groovy

            def file = tmpDir.createFile("file")
            file.text = "1234"
    
            expect:
            def resource = new LocalFileStandInExternalResource(file, TestFiles.fileSystem())
            def stream = resource.open()
            stream.text == "1234"
    
            cleanup:
            stream?.close()
        }
    
        def "fails when reading content of missing file as stream"() {
            def file = tmpDir.file("file")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 14K bytes
    - Viewed (0)
  6. platforms/core-execution/file-watching/src/integTest/groovy/org/gradle/internal/watch/WatchedDirectoriesFileSystemWatchingIntegrationTest.groovy

                    doLast {
                        outputFile.text = inputFile.text
                    }
                }
            """
            file("input.txt").text = "input"
    
            when:
            run "myTask", "--debug"
            then:
            assertWatchedHierarchies([testDirectory])
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 13:50:33 UTC 2024
    - 15.2K bytes
    - Viewed (0)
  7. subprojects/core/src/test/groovy/org/gradle/api/internal/project/taskfactory/AnnotationProcessingTasks.java

            File inputFile;
    
            @Inject
            public TaskWithInputFile(File inputFile) {
                this.inputFile = inputFile;
            }
    
            @InputFile
            public File getInputFile() {
                return inputFile;
            }
        }
    
        public static class TaskWithInputDir extends TaskWithAction {
            File inputDir;
    
            @Inject
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 12 11:41:48 UTC 2022
    - 15.8K bytes
    - Viewed (0)
  8. platforms/native/language-native/src/test/groovy/org/gradle/language/nativeplatform/internal/incremental/DefaultSourceIncludesResolverTest.groovy

            includeDir2.file("system.h").createFile()
    
            includePaths << includeDir1 << includeDir2
    
            expect:
            def result = resolve(include('<system.h>'))
            result.complete
            result.files.file as List == [header1]
        }
    
        def "locates quoted include in path"() {
            given:
            def includeDir1 = testDirectory.file("include1")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 16.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/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/SettingsScriptApi.kt

         */
        @Suppress("unused")
        fun file(path: Any): File =
            fileOperations.file(path)
    
        /**
         * Resolves a file path relative to this script's target base directory.
         *
         * @param path The object to resolve as a `File`.
         * @param validation The validation to perform on the file.
         * @return The resolved file.
         * @see file
         */
        @Suppress("unused")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 15.3K bytes
    - Viewed (0)
Back to top