Search in sources :

Example 1 with HashCodeSerializer

use of org.gradle.internal.serialize.HashCodeSerializer in project gradle by gradle.

the class TaskExecutionServices method createCompileClasspathSnapshotter.

CompileClasspathSnapshotter createCompileClasspathSnapshotter(FileHasher hasher, StringInterner stringInterner, FileSystem fileSystem, DirectoryFileTreeFactory directoryFileTreeFactory, TaskHistoryStore store, FileSystemMirror fileSystemMirror) {
    PersistentIndexedCache<HashCode, HashCode> signatureCache = store.createCache("jvmClassSignatures", HashCode.class, new HashCodeSerializer(), 400000, true);
    ClasspathEntryHasher classpathEntryHasher = new CachingClasspathEntryHasher(new DefaultClasspathEntryHasher(new AbiExtractingClasspathContentHasher(new DefaultClasspathContentHasher())), signatureCache);
    return new DefaultCompileClasspathSnapshotter(hasher, stringInterner, fileSystem, directoryFileTreeFactory, fileSystemMirror, classpathEntryHasher);
}
Also used : DefaultClasspathEntryHasher(org.gradle.api.internal.changedetection.state.DefaultClasspathEntryHasher) CachingClasspathEntryHasher(org.gradle.api.internal.changedetection.state.CachingClasspathEntryHasher) ClasspathEntryHasher(org.gradle.api.internal.changedetection.state.ClasspathEntryHasher) HashCode(com.google.common.hash.HashCode) DefaultClasspathEntryHasher(org.gradle.api.internal.changedetection.state.DefaultClasspathEntryHasher) CachingClasspathEntryHasher(org.gradle.api.internal.changedetection.state.CachingClasspathEntryHasher) DefaultClasspathContentHasher(org.gradle.api.internal.changedetection.state.DefaultClasspathContentHasher) DefaultCompileClasspathSnapshotter(org.gradle.api.internal.changedetection.state.DefaultCompileClasspathSnapshotter) AbiExtractingClasspathContentHasher(org.gradle.api.internal.changedetection.state.AbiExtractingClasspathContentHasher) HashCodeSerializer(org.gradle.internal.serialize.HashCodeSerializer)

Example 2 with HashCodeSerializer

use of org.gradle.internal.serialize.HashCodeSerializer in project gradle by gradle.

the class GradleUserHomeScopeServices method createClasspathHasher.

ClasspathHasher createClasspathHasher(StringInterner stringInterner, DirectoryFileTreeFactory directoryFileTreeFactory, TaskHistoryStore store, FileSystemSnapshotter fileSystemSnapshotter) {
    PersistentIndexedCache<HashCode, HashCode> jarCache = store.createCache("resourceHashesCache", HashCode.class, new HashCodeSerializer(), 400000, true);
    ClasspathSnapshotter snapshotter = new DefaultClasspathSnapshotter(new ResourceSnapshotterCacheService(jarCache), directoryFileTreeFactory, fileSystemSnapshotter, stringInterner);
    return new DefaultClasspathHasher(snapshotter);
}
Also used : ResourceSnapshotterCacheService(org.gradle.api.internal.changedetection.state.ResourceSnapshotterCacheService) HashCode(org.gradle.internal.hash.HashCode) ClasspathSnapshotter(org.gradle.api.internal.changedetection.state.ClasspathSnapshotter) DefaultClasspathSnapshotter(org.gradle.api.internal.changedetection.state.DefaultClasspathSnapshotter) DefaultClasspathSnapshotter(org.gradle.api.internal.changedetection.state.DefaultClasspathSnapshotter) DefaultClasspathHasher(org.gradle.api.internal.initialization.loadercache.DefaultClasspathHasher) HashCodeSerializer(org.gradle.internal.serialize.HashCodeSerializer)

Aggregations

HashCodeSerializer (org.gradle.internal.serialize.HashCodeSerializer)2 HashCode (com.google.common.hash.HashCode)1 AbiExtractingClasspathContentHasher (org.gradle.api.internal.changedetection.state.AbiExtractingClasspathContentHasher)1 CachingClasspathEntryHasher (org.gradle.api.internal.changedetection.state.CachingClasspathEntryHasher)1 ClasspathEntryHasher (org.gradle.api.internal.changedetection.state.ClasspathEntryHasher)1 ClasspathSnapshotter (org.gradle.api.internal.changedetection.state.ClasspathSnapshotter)1 DefaultClasspathContentHasher (org.gradle.api.internal.changedetection.state.DefaultClasspathContentHasher)1 DefaultClasspathEntryHasher (org.gradle.api.internal.changedetection.state.DefaultClasspathEntryHasher)1 DefaultClasspathSnapshotter (org.gradle.api.internal.changedetection.state.DefaultClasspathSnapshotter)1 DefaultCompileClasspathSnapshotter (org.gradle.api.internal.changedetection.state.DefaultCompileClasspathSnapshotter)1 ResourceSnapshotterCacheService (org.gradle.api.internal.changedetection.state.ResourceSnapshotterCacheService)1 DefaultClasspathHasher (org.gradle.api.internal.initialization.loadercache.DefaultClasspathHasher)1 HashCode (org.gradle.internal.hash.HashCode)1