Search in sources :

Example 1 with ClasspathEntryHasher

use of org.gradle.api.internal.changedetection.state.ClasspathEntryHasher 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)

Aggregations

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 DefaultClasspathContentHasher (org.gradle.api.internal.changedetection.state.DefaultClasspathContentHasher)1 DefaultClasspathEntryHasher (org.gradle.api.internal.changedetection.state.DefaultClasspathEntryHasher)1 DefaultCompileClasspathSnapshotter (org.gradle.api.internal.changedetection.state.DefaultCompileClasspathSnapshotter)1 HashCodeSerializer (org.gradle.internal.serialize.HashCodeSerializer)1