Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 355 for createFile2 (0.17 sec)

  1. 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)
  2. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/toolchain/internal/tools/ToolSearchPathTest.groovy

            def candidate1 = tmpDir.createFile("dir1/cc")
            def candidate2 = tmpDir.createFile("dir2/cc")
            def candidate3 = tmpDir.createFile("dir3/cc")
            def file = tmpDir.createFile("dir4/cc.bin")
    
            given:
            candidate1.setText("!<symlink>", "utf-8")
            candidate2.setText("!<symlink:abcd.bin", "utf-8")
            candidate3.setText("")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CopyTaskIntegrationSpec.groovy

            given:
            file("files/sub/a.txt").createFile()
            file("files/sub/dir/b.txt").createFile()
            file("files/sub/ignore/ignore.txt").createFile()
            file("files/dir/sub/dir/c.txt").createFile()
            file("files/dir/sub/dir/ignore/dir/ignore.txt").createFile()
            file("files/ignore/sub/ignore.txt").createFile()
            file("files/ignore.txt").createFile()
            file("files/other/ignore.txt").createFile()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 67.9K bytes
    - Viewed (0)
  4. platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/vfs/impl/DefaultFileSystemAccessTest.groovy

            'missing file' | 'file'
            'regular file' | 'createFile'
        }
    
        def "reuses cached unfiltered trees when looking for details of a filtered tree"() {
            given: "An existing snapshot"
            def d = temporaryFolder.createDir("d")
            d.file("f1").createFile()
            d.file("d1/f1").createFile()
            d.file("d1/f2").createFile()
    
            allowFileSystemAccess(true)
            read(d)
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:41:32 UTC 2023
    - 10K bytes
    - Viewed (0)
  5. subprojects/core/src/test/groovy/org/gradle/api/internal/file/copy/SyncCopyActionDecoratorTest.groovy

            given:
            file("src").with {
                createFile("subdir/included.txt")
                createFile("included.txt")
            }
    
            file("dest").with {
                createFile("subdir/included.txt")
                createFile("subdir/extra.txt")
                createFile("included.txt")
                createFile("extra.txt")
                createDir("extra")
            }
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jul 20 13:25:37 UTC 2021
    - 2.1K bytes
    - Viewed (0)
  6. subprojects/core/src/integTest/groovy/org/gradle/caching/internal/packaging/BuildCacheEntryPackingIntegrationTest.groovy

            when:
            withBuildCache().run("createFile", "-Dfile.encoding=$fileEncoding")
            then:
            output.contains("> Default charset: $fileEncoding")
            executedAndNotSkipped(":createFile")
    
            when:
            assert outputFile.delete()
            withBuildCache().run("createFile", "-Dfile.encoding=$fileEncoding")
            skipped(":createFile")
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:23 UTC 2024
    - 4.3K bytes
    - Viewed (0)
  7. platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/history/impl/OutputSnapshotUtilTest.groovy

            outputDir.file("outputOfOther").createFile()
            def beforeExecution = snapshotOutput(outputDir)
    
            when:
            def filteredOutputs = filterOutputAfterExecution(EMPTY, beforeExecution, beforeExecution)
            then:
            collectFiles(filteredOutputs) == [outputDir]
    
            when:
            def outputOfCurrent = outputDir.file("outputOfCurrent").createFile()
            def afterExecution = snapshotOutput(outputDir)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:46:15 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  8. platforms/software/platform-base/src/test/groovy/org/gradle/language/base/internal/tasks/StaleOutputCleanerTest.groovy

            def file1 = tmpDir.file('file1').createFile()
            def file2 = tmpDir.file('file2').createFile()
    
            expect:
            StaleOutputCleaner.cleanOutputs(deleter, files(file1, file2), tmpDir.testDirectory)
            !file1.exists()
            !file2.exists()
        }
    
        def "deletes empty parent directories"() {
            def file1 = tmpDir.file('foo/bar/file1').createFile()
            tmpDir.file('foo/baz/file2').createFile()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  9. src/os/types_windows.go

    	// “Applications that use the CreateFile function should specify the
    	// FILE_FLAG_OPEN_REPARSE_POINT flag when opening the file if it is a reparse
    	// point.”
    	//
    	// And per https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-createfilew,
    	// “If the file is not a reparse point, then this flag is ignored.”
    	//
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 07 18:44:48 UTC 2024
    - 11.7K bytes
    - Viewed (0)
  10. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/AbstractDirectorySensitivityIntegrationSpec.groovy

                    outputFile = project.file("\${buildDir}/output.txt")
                }
            """
            file('foo').mkdir()
            file('foo/a').createFile()
            file('foo/b').createFile()
            file('bar').mkdir()
            file('bar/a').createFile()
    
            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
    - 18.4K bytes
    - Viewed (0)
Back to top