Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 1,059 for createfing (0.64 sec)

  1. subprojects/core/src/test/groovy/org/gradle/api/internal/file/BaseDirFileResolverSpec.groovy

            ex.message.contains "Cannot convert a null value to a File or URI."
        }
    
        def createLink(File link, File target) {
            createLink(link, target.absolutePath)
        }
    
        def createLink(File link, String target) {
            new TestFile(link).createLink(target)
        }
    
        def createFile(File file) {
            file.parentFile.mkdirs()
            file.text = 'content'
            file
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 20 11:15:22 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/IncrementalBuildSymlinkHandlingIntegrationTest.groovy

            f2 << 'content'
        }
    }
    """
        }
    
        def "uses the target of symlink for input file content"() {
            file("in-dir").createDir()
            def inFile = file("other").createFile()
            def link = file("in.txt")
            link.createLink("other")
    
            given:
            run("work")
            run("work")
            result.assertTasksSkipped(":work")
    
            when:
            inFile.text = 'new content'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 01 14:30:36 UTC 2024
    - 8K bytes
    - Viewed (0)
  3. platforms/core-configuration/file-collections/src/testFixtures/groovy/org/gradle/api/internal/file/collections/AbstractDirectoryWalkerTest.groovy

            def rootTextFile = rootDir.file("a.txt").createFile()
            def nestedTextFile = rootDir.file("a/b/c.txt").createFile()
            def notTextFile = rootDir.file("a/b/c.html").createFile()
            def excludedFile = rootDir.file("subdir1/a/b/c.html").createFile()
            def notUnderRoot = tmpDir.createDir("root2").file("a.txt").createFile()
            def doesNotExist = rootDir.file("b.txt")
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 7K bytes
    - Viewed (0)
  4. platforms/core-execution/file-watching/src/integTest/groovy/org/gradle/internal/watch/SymlinkFileSystemWatchingIntegrationTest.groovy

        def "gracefully handle when declaring the same path as an input via symlinks"() {
            def actualDir = file("actualDir").createDir()
            file("symlink1").createLink(actualDir)
            file("symlink2").createLink(actualDir)
    
            buildFile << """
                task myTask {
                    def outputFile = file("build/output.txt")
                    inputs.dir("symlink1")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 13:50:33 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  5. platforms/core-runtime/files/src/testFixtures/groovy/org/gradle/internal/file/AbstractFileMetadataAccessorTest.groovy

        def "stats a symlink cycle"() {
            def first = tmpDir.file("first")
            def second = tmpDir.file("second")
            def third = tmpDir.file("third")
            first.createLink(second)
            second.createLink(third)
            third.createLink(first)
    
            expect:
            def stat = accessor.stat(first)
            stat.type == FileType.Missing
            stat.lastModified == 0
            stat.length == 0
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 16 15:50:56 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  6. platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/steps/HandleStaleOutputsStepTest.groovy

            "broken symlink owned by but not generated by build" | true      | true         | false             | { it.createLink(it.parentFile.file("missing.txt")) }
            "file not owned by but generated by build"           | false     | false        | true              | { it.createFile() }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 10:36:34 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  7. platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/snapshot/impl/DirectorySnapshotterStatisticsTest.groovy

        def "can visit directory hierarchy"() {
            given:
            def root = tmpDir.createDir("root")
            def subDir1 = root.createDir("sub-dir-1")
            subDir1.createFile("file.txt")
            def subDir2 = root.createDir("sub-dir-2")
            subDir2.createFile("file.txt")
    
            when:
            snapshot(root)
    
            then:
            1 * statisticsCollector.recordVisitHierarchy()
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:41:32 UTC 2023
    - 5.1K bytes
    - Viewed (0)
  8. platforms/core-runtime/native/src/test/groovy/org/gradle/internal/nativeintegration/filesystem/CommonFileSystemTest.groovy

            expect:
            fs.getUnixMode(tmpDir.createFile("someFile")) == FileSystem.DEFAULT_FILE_MODE
            fs.getUnixMode(tmpDir.createDir("someDir")) == FileSystem.DEFAULT_DIR_MODE
        }
    
        @Requires(UnitTestPreconditions.NoFilePermissions)
        def "setting unix permissions does nothing on unsupported platforms"() {
            expect:
            fs.chmod(tmpDir.createFile("someFile"), 0644)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:06:40 UTC 2023
    - 5.8K bytes
    - Viewed (0)
  9. platforms/core-configuration/file-collections/src/test/groovy/org/gradle/api/internal/file/collections/DirectoryWalkerTest.groovy

            long minimumTimestamp = (System.currentTimeMillis() / 1000 * 1000) - 2000
            def file1 = rootDir.createFile("a/b/1.txt")
            file1 << '12345'
            def file2 = rootDir.createFile("a/b/2.txt")
            file2 << '12345'
            def file3 = rootDir.createFile("a/b/3.txt")
            file3 << '12345'
            def fileTree = new DirectoryFileTree(rootDir, new PatternSet(), TestFiles.fileSystem(), false)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 6.1K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/io/SourceSinkFactory.java

     * A test factory for byte or char sources or sinks. In addition to creating sources or sinks, the
     * factory specifies what content should be expected to be read from a source or contained in a sink
     * given the content data that was used to create the source or that was written to the sink.
     *
     * <p>A single {@code SourceSinkFactory} implementation generally corresponds to one specific way of
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 3K bytes
    - Viewed (0)
Back to top