- Sort Score
- Result 10 results
- Languages All
Results 51 - 60 of 80 for LockMode (0.28 sec)
-
platforms/native/language-native/src/main/java/org/gradle/language/cpp/internal/NativeDependencyCache.java
public NativeDependencyCache(GlobalScopedCacheBuilderFactory cacheBuilderFactory) { cache = cacheBuilderFactory.createCacheBuilder("native-dep") .withInitialLockMode(FileLockManager.LockMode.OnDemand) .open(); } public File getModuleMapFile(final ModuleMap moduleMap) { final String hash = moduleMap.getHashCode().toCompactString(); return cache.useCache(() -> {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:49:50 UTC 2024 - 2.2K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/FileLock.java
* Returns some memento of the current state of this target file. */ State getState(); /** * The actual mode of the lock. May be different to what was requested. */ FileLockManager.LockMode getMode(); /** * An immutable snapshot of the state of a lock. */ interface State { boolean canDetectChanges(); boolean isInInitialState();
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:08:47 UTC 2023 - 1.8K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/cache/internal/DefaultGeneratedGradleJarCache.java
this.cache = cacheBuilderFactory.createCacheBuilder(CACHE_KEY) .withDisplayName(CACHE_DISPLAY_NAME) .withInitialLockMode(FileLockManager.LockMode.OnDemand) .open(); this.gradleVersion = gradleVersion; } @Override public File get(final String identifier, final Action<File> creator) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Jan 10 15:51:31 UTC 2024 - 2.2K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/internal/classpath/InstrumentingClasspathFileTransformer.java
return fileHasher; } private FileLock exclusiveLockFor(File file) { return fileLockManager.lock( file, mode(FileLockManager.LockMode.Exclusive).useCrossVersionImplementation(), "instrumented jar cache" ); } private String hashOf(FileSystemLocationSnapshot sourceSnapshot) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Feb 27 13:36:38 UTC 2024 - 6K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/test/groovy/org/gradle/cache/internal/DefaultCacheFactoryTest.groovy
import org.junit.Rule import spock.lang.Specification import java.util.function.Consumer import static org.gradle.cache.FileLockManager.LockMode.Exclusive import static org.gradle.cache.FileLockManager.LockMode.Shared import static org.gradle.cache.internal.filelock.DefaultLockOptions.mode class DefaultCacheFactoryTest extends Specification { @Rule
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:49:51 UTC 2024 - 7.8K bytes - Viewed (0) -
platforms/jvm/language-java/src/main/java/org/gradle/api/internal/tasks/compile/incremental/cache/UserHomeScopedCompileCaches.java
cache = cacheBuilderFactory .createCacheBuilder("javaCompile") .withDisplayName("Java compile cache") .withInitialLockMode(FileLockManager.LockMode.OnDemand) .open(); IndexedCacheParameters<HashCode, ClassSetAnalysisData> jarCacheParameters = IndexedCacheParameters.of( "jarAnalysis", new HashCodeSerializer(),
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Feb 24 12:57:52 UTC 2024 - 3.3K bytes - Viewed (0) -
subprojects/core-api/src/main/java/org/gradle/api/artifacts/dsl/DependencyLockingHandler.java
* } * * @since 6.0 */ void unlockAllConfigurations(); /** * Allows to query the lock mode currently configured * * @since 6.1 */ Property<LockMode> getLockMode(); /** * Allows to configure the file used for saving lock state * <p> * Make sure the lock file is unique per project and separate between the buildscript and project itself. * <p>
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Dec 23 15:47:10 UTC 2020 - 2.5K bytes - Viewed (0) -
platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/FixedExclusiveModeCrossProcessCacheAccess.java
import org.gradle.internal.UncheckedException; import java.io.File; import java.util.function.Consumer; import java.util.function.Supplier; import static org.gradle.cache.FileLockManager.LockMode.Exclusive; /** * A {@link CrossProcessCacheAccess} implementation used when a cache is opened with an exclusive lock that is held until the cache is closed. This implementation is simply a no-op for these methods. */
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/software/version-control/src/main/java/org/gradle/vcs/internal/resolver/PersistentVcsMetadataCache.java
cache = cacheBuilderFactory .createCacheBuilder("vcsMetadata") .withDisplayName("VCS metadata") .withInitialLockMode(FileLockManager.LockMode.OnDemand) // Don't need to lock anything until we use the caches .open(); workingDirCache = cache.createIndexedCache("workingDirs", String.class, VALUE_SERIALIZER); } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Apr 16 15:49:50 UTC 2024 - 3.7K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/cache/internal/DefaultFileContentCacheFactory.java
this.cache = cacheBuilderFactory .createCacheBuilder("fileContent") .withDisplayName("file content cache") .withInitialLockMode(FileLockManager.LockMode.OnDemand) .open(); } @Override public void close() throws IOException { cache.close(); } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Jan 10 15:51:31 UTC 2024 - 5.6K bytes - Viewed (0)