Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 355 for createFile2 (0.2 sec)

  1. subprojects/core/src/testFixtures/groovy/org/gradle/api/tasks/AbstractCopyTaskContractTest.groovy

        @Override
        abstract AbstractCopyTask getTask()
    
        def "root level FileCopyDetails are DSL-enhanced"() {
            given:
            File srcDir = createDir(project.projectDir, 'src')
            createFile(srcDir, 'file.properties')
    
            and:
            task.from srcDir
            task.into project.buildDir
            task.eachFile(new Action<FileCopyDetails>() {
                void execute(FileCopyDetails fcd) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Dec 27 06:24:30 UTC 2018
    - 4.1K bytes
    - Viewed (0)
  2. platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/snapshot/DirectorySnapshotTest.groovy

            def sourceDir = testDirectory.createDir("source-directory")
            def childDir = sourceDir.createDir("child")
            def childFile = childDir.createFile("child.txt")
            def parentFile = sourceDir.createFile("parent.txt")
            def targetDir = testDirectory.file("target-directory")
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 23 13:19:32 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. platforms/core-execution/file-watching/src/test/groovy/org/gradle/internal/watch/registry/impl/AbstractFileWatcherUpdaterTest.groovy

            def watchableHierarchy = file("watchable").createDir()
            def fileOutsideOfWatchableHierarchy = file("outside").file("someFile.txt").createFile()
            def fileInDirectoryIgnoredForWatching = file("cache/some-cache/someFile.txt").createFile()
            ignoredForWatching.add(fileInDirectoryIgnoredForWatching.absolutePath)
    
            when:
            registerWatchableHierarchies([watchableHierarchy])
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 25 15:08:33 UTC 2024
    - 21.5K bytes
    - Viewed (0)
  8. platforms/software/resources/src/test/groovy/org/gradle/internal/resource/local/LocalFileStandInExternalResourceTest.groovy

        @Rule
        TestNameTestDirectoryProvider tmpDir = new TestNameTestDirectoryProvider(getClass())
    
        def "can apply ContentAndMetadataAction to file contents"() {
            def file = tmpDir.createFile("content")
            file.text = "1234"
    
            expect:
            def resource = new LocalFileStandInExternalResource(file, TestFiles.fileSystem())
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Oct 12 19:38:08 UTC 2023
    - 14K bytes
    - Viewed (0)
  9. 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)
  10. 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)
Back to top