Search Options

Results per page
Sort
Preferred Languages
Advance

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

  1. subprojects/core-api/src/test/groovy/org/gradle/initialization/UserHomeInitScriptFinderTest.groovy

            then:
            sourceList.isEmpty()
        }
    
        def "adds init scripts from init directory when it exists."() {
            given:
            def initScript = temporaryFolder.createFile("init.d/script.gradle")
            def secondScript = temporaryFolder.createFile("init.d/another.gradle.kts")
            def sourceList = []
    
            when:
            finder.findScripts(sourceList)
    
            then:
            sourceList.size() == 2
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 04 22:26:51 UTC 2021
    - 2.2K bytes
    - Viewed (0)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. platforms/core-execution/build-cache-local/src/integTest/groovy/org/gradle/caching/local/internal/AbstractBuildCacheCleanupIntegrationTest.groovy

            long lastCleanupCheck = initializeHome()
    
            when:
            def newTrashFile = temporaryFolder.file("0" * hashStringLength).createFile()
            def oldTrashFile = temporaryFolder.file("1" * hashStringLength).createFile()
            createBuildCacheEntry("0" * hashStringLength, newTrashFile, System.currentTimeMillis())
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 16:53:17 UTC 2024
    - 12.4K 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. 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)
  10. 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)
Back to top