- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for requiresInitialization (0.31 sec)
-
platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/FixedSharedModeCrossProcessCacheAccessTest.groovy
then: 1 * initAction.requiresInitialization(initialLock) >> true 1 * initialLock.close() then: 1 * lockManager.lock(file, {it.mode == FileLockManager.LockMode.Exclusive }, "<cache>") >> exclusiveLock 1 * initAction.requiresInitialization(exclusiveLock) >> true 1 * exclusiveLock.writeFile(_) >> { Runnable r -> r.run() }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:49:51 UTC 2024 - 5.5K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/FixedExclusiveModeCrossProcessCacheAccessTest.groovy
def lock = Mock(FileLock) when: cacheAccess.open() then: 1 * lockManager.lock(file, _, _, "", _) >> lock then: 1 * initAction.requiresInitialization(lock) >> false then: 1 * onOpenAction.accept(lock) 0 * _ } def "acquires lock then initializes cache and runs handler action on open"() { def lock = Mock(FileLock)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:49:51 UTC 2024 - 3.3K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/FixedSharedModeCrossProcessCacheAccess.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:49:51 UTC 2024 - 5.7K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/FixedExclusiveModeCrossProcessCacheAccess.java
} final FileLock fileLock = lockManager.lock(lockTarget, lockOptions, cacheDisplayName, "", unused -> {}); try { boolean rebuild = initializationAction.requiresInitialization(fileLock); if (rebuild) { fileLock.writeFile(() -> initializationAction.initialize(fileLock)); } onOpenAction.accept(fileLock); } catch (Exception e) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed May 01 12:21:15 UTC 2024 - 3.6K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/DefaultPersistentDirectoryCache.java
} public Properties getProperties() { return properties; } private class Initializer implements CacheInitializationAction { @Override public boolean requiresInitialization(FileLock lock) { if (!lock.getUnlockedCleanly()) { if (lock.getState().canDetectChanges() && !lock.getState().isInInitialState()) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 09 19:20:15 UTC 2024 - 5.1K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/LockOnDemandCrossProcessCacheAccess.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:49:51 UTC 2024 - 6.7K bytes - Viewed (0)