Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 79 for deleteMin (0.14 sec)

  1. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/TestBuildCache.groovy

        }
    
        void deleteCacheEntry(String cacheKey) {
            def entry = getTestFileCacheEntry(cacheKey)
            if (entry.file.exists()) {
                entry.file.deleteDir()
            }
        }
    
        boolean hasCacheEntry(String cacheKey) {
            return getTestFileCacheEntry(cacheKey).file.exists()
        }
    
        TestCacheEntry getCacheEntry(String cacheKey) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/test/groovy/org/gradle/internal/locking/LockFileReaderWriterTest.groovy

            lockFileReaderWriter = new LockFileReaderWriter(resolver, context, lockFile, listener)
        }
    
        def 'writes a unique lock file'() {
            when:
            lockDir.deleteDir()
            lockFileReaderWriter.writeUniqueLockfile([a: ['foo', 'bar'], b: ['foo'], c: []])
    
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 05 02:50:41 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CachedCustomTaskExecutionIntegrationTest.groovy

            """
            when:
            withBuildCache().run "customTask"
            then:
            result.assertTaskNotSkipped(":customTask")
    
            when:
            file("buildSrc/build").deleteDir()
            file("buildSrc/.gradle").deleteDir()
            cleanBuildDir()
    
            withBuildCache().run "customTask"
            then:
            result.groupedOutput.task(":customTask").outcome == "FROM-CACHE"
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 30.6K bytes
    - Viewed (0)
  4. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CachedTaskIntegrationTest.groovy

            when:
            withBuildCache().run "cacheable", "--info"
            then:
            outputContains "Stored cache entry for task ':cacheable' with cache key"
    
            file("build").deleteDir()
    
            when:
            withBuildCache().run "cacheable", "--info"
            then:
            outputContains "Loaded cache entry for task ':cacheable' with cache key"
        }
    
        def defineCacheableTask() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Feb 20 17:51:57 UTC 2024
    - 5.7K bytes
    - Viewed (0)
  5. testing/performance/src/performanceTest/groovy/org/gradle/performance/regression/corefeature/ParallelDownloadsPerformanceTest.groovy

                    }
    
                    private void cleanupCache(File userHomeDir) {
                        ['modules-2', 'external-resources'].each {
                            new File("$userHomeDir/caches/$it").deleteDir()
                        }
                    }
                }
            }
        }
    
        def "resolves dependencies from external repository"() {
            startServer()
    
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  6. testing/performance/src/performanceTest/groovy/org/gradle/performance/regression/java/JavaConfigurationCachePerformanceTest.groovy

            return new BuildMutator() {
                @Override
                void beforeBuild(BuildContext context) {
                    if (action == storing) {
                        stateDirectory.deleteDir()
                    }
                }
    
                @Override
                void afterBuild(BuildContext context, Throwable error) {
                    if (context.iteration > 1) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 25 14:54:56 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  7. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CachedTaskExecutionErrorHandlingIntegrationTest.groovy

        }
    
        boolean stackTraceContains(Class<?> type) {
            output.contains("\tat ${type.name}.")
        }
    
        private TestFile cleanBuildDir() {
            file("build").assertIsDir().deleteDir()
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Apr 03 15:21:22 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  8. platforms/jvm/toolchains-jvm/src/crossVersionTest/groovy/org/gradle/jvm/toolchain/internal/install/ProvisionedJdkReuseCrossVersionIntegrationTest.groovy

            Jvm differentVersion = AvailableJavaHomes.differentVersion
    
            jdkRepository = new JdkRepository(differentVersion, "not_current_jdk.zip")
            uri = jdkRepository.start()
    
            userHome.deleteDir()
            settingsFile << applyToolchainResolverPlugin("CustomToolchainResolver", singleUrlResolverCode(uri))
            buildFile << """
                plugins {
                    id 'application'
                    id 'java'
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 16:09:27 UTC 2024
    - 4.8K bytes
    - Viewed (0)
  9. subprojects/core/src/integTest/groovy/org/gradle/api/tasks/DeleteTaskIntegrationTest.groovy

            if (GradleContextualExecuter.isConfigCache()) {
                def build = testDirectory.file("build")
                assert build.listFiles().size() == 1 && build.file("reports").exists()
                build.deleteDir()
            }
    
            when: "clean is executed again without any changes"
            succeeds "clean"
            then: "clean is still marked UP-TO-DATE"
            result.groupedOutput.task(":clean").outcome == "UP-TO-DATE"
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 11:16:24 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  10. cni/pkg/ipset/nldeps_linux.go

    		Protocol: &ipProto,
    		Replace:  replace,
    	})
    	if err != nil {
    		return fmt.Errorf("failed to add IP %s to ipset %s: %w", ip, name, err)
    	}
    	return nil
    }
    
    func (m *realDeps) deleteIP(name string, ip netip.Addr, ipProto uint8) error {
    	err := netlink.IpsetDel(name, &netlink.IPSetEntry{
    		IP:       net.IP(ip.AsSlice()),
    		Protocol: &ipProto,
    	})
    	if err != nil {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 30 18:07:05 UTC 2024
    - 3.9K bytes
    - Viewed (0)
Back to top