Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 221 for createFile1 (0.16 sec)

  1. platforms/core-runtime/launcher/src/integTest/groovy/org/gradle/launcher/continuous/SymlinkContinuousIntegrationTest.groovy

            // need an existing sibling of the symlink to ensure the parent directory of
            // the symlink is watched between builds.
            linkdir.file("existing").createFile()
            buildFile << """
        task echo {
            def symlink = file("${symlink.toURI()}")
            inputs.files symlink
            inputs.files "src/linkdir/existing"
            outputs.file "build/outputs"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  2. platforms/native/platform-native/src/test/groovy/org/gradle/nativeplatform/internal/prebuilt/DefaultPrebuiltSharedLibraryBinaryTest.groovy

            binary.sharedLibraryLinkFile == sharedLibraryLinkFile
        }
    
        def "uses specified link file and library file"() {
            given:
            def sharedLibraryFile = createFile()
            def sharedLibraryLinkFile = createFile()
    
            when:
            binary.sharedLibraryFile = sharedLibraryFile
            binary.sharedLibraryLinkFile = sharedLibraryLinkFile
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  3. platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/steps/HandleStaleOutputsStepTest.groovy

            "file owned by and generated by build"               | false     | true         | true              | { it.createFile() }
            "file owned by but not generated by build"           | true      | true         | false             | { it.createFile() }
            "dir owned by but not generated by build"            | true      | true         | false             | { it.createDir() }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 08 10:36:34 UTC 2024
    - 5.4K bytes
    - Viewed (0)
  4. platforms/core-runtime/files/src/test/groovy/org/gradle/internal/file/impl/AbstractSymlinkDeleterTest.groovy

            false
        )
    
        def doesNotDeleteFilesInsideSymlinkDir() {
            Assume.assumeTrue(canCreateSymbolicLinkToDirectory())
    
            given:
            def keepTxt = tmpDir.createFile("originalDir", "keep.txt")
            def originalDir = keepTxt.parentFile
            def link = new File(tmpDir.getTestDirectory(), "link")
    
            when:
            createSymbolicLink(link, originalDir)
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:55:52 UTC 2023
    - 3.5K bytes
    - Viewed (0)
  5. subprojects/core/src/test/groovy/org/gradle/internal/resource/local/UniquePathKeyFileStoreTest.groovy

            setup:
            def file = temporaryFolder.createFile("fsbase/a/a");
    
            when:
            def fileInStore = uniquePathKeyFileStore.add("a/a", action)
    
            then:
            fileInStore.file == file
            0 * action.execute(_)
        }
    
        def "move returns existing file if it already exists"() {
            setup:
            def source = temporaryFolder.createFile("some-file")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Aug 28 21:50:20 UTC 2022
    - 2.6K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/ConfigurationCacheCleanupIntegrationTest.groovy

        }
    
        private TestFile createCacheEntryDir(String entry) {
            TestFile dir = cacheDir.createDir(entry)
            dir.createFile("state.bin")
            dir.createFile("fingerprint.bin")
            return dir
        }
    
        private TestFile getGcFile() {
            return cacheDir.file("gc.properties")
        }
    
        private TestFile getCacheDir() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 2K bytes
    - Viewed (0)
  9. platforms/jvm/toolchains-jvm/src/test/groovy/org/gradle/internal/jvm/inspection/DefaultJavaInstallationRegistryTest.groovy

            def jdkHome = temporaryFolder.createDir("jdk")
            def binDir = jdkHome.createDir("bin")
            binDir.createFile(OperatingSystem.LINUX.getExecutableName("java"))
    
            // Make it look like a macOS installation
            def macOsJdkHomeBinDir = jdkHome.createDir("Contents/Home/bin")
            macOsJdkHomeBinDir.createFile(OperatingSystem.LINUX.getExecutableName("java"))
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 18 22:46:10 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  10. subprojects/core/src/test/groovy/org/gradle/api/internal/file/copy/CopyActionExecuterTest.groovy

        def "correctly executes copy actions, normalising and handling excludes"() {
            given:
            file("a").with {
                createFile("a")
            }
            file("b").with {
                createFile("b")
                createDir("b1").createFile("b1")
            }
    
            def resolver = TestFiles.resolver(testDirectory)
            def fileCollectionFactory = TestFiles.fileCollectionFactory(testDirectory)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 28 12:39:32 UTC 2023
    - 2.7K bytes
    - Viewed (0)
Back to top