Search in sources :

Example 1 with ClasspathSnapshotter

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

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