use of org.gradle.internal.fingerprint.CurrentFileCollectionFingerprint in project gradle by gradle.
the class IdentifyStep method createIdentityContext.
@Nonnull
private IdentityContext createIdentityContext(UnitOfWork work, C context) {
InputFingerprinter.Result inputs = work.getInputFingerprinter().fingerprintInputProperties(ImmutableSortedMap.of(), ImmutableSortedMap.of(), ImmutableSortedMap.of(), ImmutableSortedMap.of(), work::visitIdentityInputs);
ImmutableSortedMap<String, ValueSnapshot> identityInputProperties = inputs.getValueSnapshots();
ImmutableSortedMap<String, CurrentFileCollectionFingerprint> identityInputFileProperties = inputs.getFileFingerprints();
Identity identity = work.identify(identityInputProperties, identityInputFileProperties);
return new IdentityContext() {
@Override
public Optional<String> getNonIncrementalReason() {
return context.getNonIncrementalReason();
}
@Override
public WorkValidationContext getValidationContext() {
return context.getValidationContext();
}
@Override
public ImmutableSortedMap<String, ValueSnapshot> getInputProperties() {
return identityInputProperties;
}
@Override
public ImmutableSortedMap<String, CurrentFileCollectionFingerprint> getInputFileProperties() {
return identityInputFileProperties;
}
@Override
public Identity getIdentity() {
return identity;
}
};
}
Aggregations