Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 46 for Delete (1.29 sec)

  1. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/accessors/ProjectSchemaHashCodeTest.kt

                hashCodeFor(
                    containerElements = listOf(
                        entry<TaskContainer, Delete>("clean")
                    )
                ),
                equalTo(
                    hashCodeFor(
                        containerElements = listOf(
                            entry<TaskContainer, Delete>("clean")
                        )
                    )
                )
            )
    
            assertThat(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 7.2K bytes
    - Viewed (0)
  2. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/TaskContainerExtensionsTest.kt

            val taskProvider = mockTaskProviderFor(mock<Delete>())
            val tasks = mock<TaskContainer> {
                on { register("clean", Delete::class.java) } doReturn taskProvider
            }
    
            tasks {
    
                val clean by registering(Delete::class)
    
                inOrder(tasks, taskProvider) {
                    verify(tasks).register("clean", Delete::class.java)
                    verifyNoMoreInteractions()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 7.9K bytes
    - Viewed (0)
  3. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/NamedDomainObjectContainerExtensionsTest.kt

                    delete("some")
                }
                getByName<Delete>("clean") {
                    delete("stuff")
                }
                "clean"(type = Delete::class) {
                    delete("things")
                }
            }
    
            tasks.getByName<Delete>("clean") {
                delete("build")
            }
    
            inOrder(clean) {
                verify(clean).delete("stuff")
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 18 22:58:28 UTC 2024
    - 9.2K bytes
    - Viewed (0)
  4. src/cmd/go/testdata/vcstest/git/issue61415.txt

    git rm -r nested
    git commit -m 'nested: delete subdirectory'
    
    git show-ref --tags --heads
    cmp stdout .git-refs
    
    git log --pretty=oneline
    cmp stdout .git-log
    
    -- .git-refs --
    f213069baa68ec26412fb373c7cf6669db1f8e69 refs/heads/main
    08a4fa6bb9c04ffba03b26ae427b0d6335d90a2a refs/tags/has-nested
    -- .git-log --
    f213069baa68ec26412fb373c7cf6669db1f8e69 nested: delete subdirectory
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 16 22:15:45 UTC 2023
    - 928 bytes
    - Viewed (0)
  5. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/execution/TemporaryScriptFiles.kt

                val tempFile = canonicalScriptFileFor(tempDir, scriptPath, scriptText)
                try {
                    action(tempFile)
                } finally {
                    tempFile.delete()
                }
            } finally {
                tempDir.delete()
            }
        }
    
    
    private
    fun canonicalScriptFileFor(baseDir: File, scriptPath: String, scriptText: String): File =
        baseDir.resolve(scriptFileNameFor(scriptPath)).run {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  6. build-logic/cleanup/src/main/kotlin/gradlebuild/cleanup/Cleanup.kt

                        continue
                    }
    
                if (shouldDelete(cacheVersion)) {
                    logger.lifecycle("Removing old cache directory : $cacheDir")
                    delete {
                        delete(cacheDir)
                    }
                }
            }
        }
    }
    
    
    fun FileSystemOperations.removeCachedScripts(cachesDir: File) {
        if (cachesDir.isDirectory) {
            cachesDir.listFiles()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jan 08 12:45:57 UTC 2024
    - 4.4K bytes
    - Viewed (0)
  7. platforms/core-configuration/kotlin-dsl/src/test/kotlin/org/gradle/kotlin/dsl/accessors/tasks/PrintAccessorsTest.kt

                                entry<Project, CustomConvention>("customConvention")
                            ),
                            tasks = listOf(
                                entry<TaskContainer, Delete>("delete")
                            ),
                            configurations = listOf(
                                ConfigurationEntry("api"),
                                ConfigurationEntry("compile", listOf("api", "implementation"))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Aug 02 08:06:49 UTC 2023
    - 2.7K bytes
    - Viewed (0)
  8. build-logic/packaging/src/test/kotlin/gradlebuild/packaging/GradleDistributionInstallTest.kt

                File(this, "gradle").writeText("stub")
                File(this, "gradle.exe").writeText("stub")
            }
    
            assertFails("Install directory $target does not look like a Gradle installation. Cannot delete it to install.")
            assertTargetIsPreserved()
        }
    
        @Test
        fun `does not install to non-empty dir with empty lib`() {
            target.resolve("bin").apply {
                mkdir()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Sep 30 16:17:26 UTC 2023
    - 7.4K bytes
    - Viewed (0)
  9. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/support/DefaultKotlinScript.kt

        override fun mkdir(path: Any): File =
            fileOperations.mkdir(path)
    
        override fun delete(vararg paths: Any): Boolean =
            fileOperations.delete(*paths)
    
        override fun delete(configuration: Action<DeleteSpec>): WorkResult =
            fileOperations.delete(configuration)
    
        override fun exec(configuration: Action<ExecSpec>): ExecResult =
            processOperations.exec(configuration)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 07 22:41:55 UTC 2023
    - 6.2K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/script/test_fuzz_cache.txt

    go test -fuzz=FuzzY -fuzztime=100x .
    go run ./contains_files $GOCACHE/fuzz/example.com/y/FuzzY
    
    # 'go clean -cache' should not delete the fuzz cache.
    go clean -cache
    exists $GOCACHE/fuzz
    
    # 'go clean -fuzzcache' should delete the fuzz cache but not the build cache.
    go build -x ./empty
    stderr '(compile|gccgo)( |\.exe).*empty.go'
    go clean -fuzzcache
    ! exists $GOCACHE/fuzz
    go build -x ./empty
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Aug 30 17:22:49 UTC 2022
    - 1.9K bytes
    - Viewed (0)
Back to top