Search in sources :

Example 1 with IgnoringResourceHasher

use of org.gradle.api.internal.changedetection.state.IgnoringResourceHasher in project gradle by gradle.

the class ClasspathFingerprintingStrategy method runtimeClasspath.

public static ClasspathFingerprintingStrategy runtimeClasspath(ResourceFilter classpathResourceFilter, ResourceEntryFilter manifestAttributeResourceEntryFilter, Map<String, ResourceEntryFilter> propertiesFileFilters, RuntimeClasspathResourceHasher runtimeClasspathResourceHasher, ResourceSnapshotterCacheService cacheService, Interner<String> stringInterner, LineEndingSensitivity lineEndingSensitivity) {
    ResourceHasher resourceHasher = LineEndingNormalizingResourceHasher.wrap(runtimeClasspathResourceHasher, lineEndingSensitivity);
    resourceHasher = propertiesFileHasher(resourceHasher, propertiesFileFilters);
    resourceHasher = metaInfAwareClasspathResourceHasher(resourceHasher, manifestAttributeResourceEntryFilter);
    resourceHasher = ignoringResourceHasher(resourceHasher, classpathResourceFilter);
    ZipHasher zipHasher = new ZipHasher(resourceHasher);
    return new ClasspathFingerprintingStrategy(CLASSPATH_IDENTIFIER, USE_FILE_HASH, resourceHasher, zipHasher, cacheService, stringInterner);
}
Also used : ZipHasher(org.gradle.api.internal.changedetection.state.ZipHasher) RuntimeClasspathResourceHasher(org.gradle.api.internal.changedetection.state.RuntimeClasspathResourceHasher) ResourceHasher(org.gradle.internal.fingerprint.hashing.ResourceHasher) IgnoringResourceHasher(org.gradle.api.internal.changedetection.state.IgnoringResourceHasher) PropertiesFileAwareClasspathResourceHasher(org.gradle.api.internal.changedetection.state.PropertiesFileAwareClasspathResourceHasher) LineEndingNormalizingResourceHasher(org.gradle.api.internal.changedetection.state.LineEndingNormalizingResourceHasher) MetaInfAwareClasspathResourceHasher(org.gradle.api.internal.changedetection.state.MetaInfAwareClasspathResourceHasher)

Aggregations

IgnoringResourceHasher (org.gradle.api.internal.changedetection.state.IgnoringResourceHasher)1 LineEndingNormalizingResourceHasher (org.gradle.api.internal.changedetection.state.LineEndingNormalizingResourceHasher)1 MetaInfAwareClasspathResourceHasher (org.gradle.api.internal.changedetection.state.MetaInfAwareClasspathResourceHasher)1 PropertiesFileAwareClasspathResourceHasher (org.gradle.api.internal.changedetection.state.PropertiesFileAwareClasspathResourceHasher)1 RuntimeClasspathResourceHasher (org.gradle.api.internal.changedetection.state.RuntimeClasspathResourceHasher)1 ZipHasher (org.gradle.api.internal.changedetection.state.ZipHasher)1 ResourceHasher (org.gradle.internal.fingerprint.hashing.ResourceHasher)1