Search in sources :

Example 16 with FileSystemLocationFingerprint

use of org.gradle.internal.fingerprint.FileSystemLocationFingerprint in project gradle by gradle.

the class FingerprintMapSerializer method read.

@Override
public Map<String, FileSystemLocationFingerprint> read(Decoder decoder) throws IOException {
    int fingerprintCount = decoder.readSmallInt();
    ImmutableMap.Builder<String, FileSystemLocationFingerprint> fingerprints = ImmutableMap.builderWithExpectedSize(fingerprintCount);
    for (int i = 0; i < fingerprintCount; i++) {
        String absolutePath = stringInterner.intern(decoder.readString());
        FileSystemLocationFingerprint fingerprint = readFingerprint(decoder);
        fingerprints.put(absolutePath, fingerprint);
    }
    return fingerprints.build();
}
Also used : IgnoredPathFileSystemLocationFingerprint(org.gradle.internal.fingerprint.impl.IgnoredPathFileSystemLocationFingerprint) DefaultFileSystemLocationFingerprint(org.gradle.internal.fingerprint.impl.DefaultFileSystemLocationFingerprint) FileSystemLocationFingerprint(org.gradle.internal.fingerprint.FileSystemLocationFingerprint) IgnoredPathFileSystemLocationFingerprint(org.gradle.internal.fingerprint.impl.IgnoredPathFileSystemLocationFingerprint) DefaultFileSystemLocationFingerprint(org.gradle.internal.fingerprint.impl.DefaultFileSystemLocationFingerprint) FileSystemLocationFingerprint(org.gradle.internal.fingerprint.FileSystemLocationFingerprint) ImmutableMap(com.google.common.collect.ImmutableMap)

Aggregations

FileSystemLocationFingerprint (org.gradle.internal.fingerprint.FileSystemLocationFingerprint)16 ImmutableMap (com.google.common.collect.ImmutableMap)6 DefaultFileSystemLocationFingerprint (org.gradle.internal.fingerprint.impl.DefaultFileSystemLocationFingerprint)6 HashCode (org.gradle.internal.hash.HashCode)6 HashSet (java.util.HashSet)5 FileType (org.gradle.internal.file.FileType)4 IgnoredPathFileSystemLocationFingerprint (org.gradle.internal.fingerprint.impl.IgnoredPathFileSystemLocationFingerprint)3 FileSystemLocationSnapshot (org.gradle.internal.snapshot.FileSystemLocationSnapshot)3 File (java.io.File)2 IOException (java.io.IOException)2 List (java.util.List)2 Map (java.util.Map)2 Entry (java.util.Map.Entry)2 Set (java.util.Set)2 Nullable (javax.annotation.Nullable)2 ZipInput (org.gradle.api.internal.file.archive.ZipInput)2 FileZipInput (org.gradle.api.internal.file.archive.impl.FileZipInput)2 StreamZipInput (org.gradle.api.internal.file.archive.impl.StreamZipInput)2 RegularFileSnapshotContextHasher (org.gradle.internal.fingerprint.hashing.RegularFileSnapshotContextHasher)2 ResourceHasher (org.gradle.internal.fingerprint.hashing.ResourceHasher)2