Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 41 for RegularFileSnapshot (0.22 sec)

  1. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/snapshot/RegularFileSnapshot.java

            return isContentUpToDate(other) && metadata.equals(((RegularFileSnapshot) other).metadata);
        }
    
        @Override
        public boolean isContentUpToDate(FileSystemLocationSnapshot other) {
            if (!(other instanceof RegularFileSnapshot)) {
                return false;
            }
            return contentHash.equals(((RegularFileSnapshot) other).contentHash);
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 23 13:19:32 UTC 2023
    - 3K bytes
    - Viewed (0)
  2. platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/steps/OverlappingOutputsFilterTest.groovy

            result == filteredOutputs
            0 * _
        }
    
        private static RegularFileSnapshot fileSnapshot(String name, HashCode contentHash) {
            new RegularFileSnapshot("/absolute/${name}", name, contentHash, DefaultFileMetadata.file(0L, 0L, FileMetadata.AccessType.DIRECT))
        }
    
        private static FileSystemLocationSnapshot directorySnapshot(RegularFileSnapshot... contents) {
            def builder = MerkleDirectorySnapshotBuilder.sortingRequired()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Nov 22 09:41:30 UTC 2023
    - 4K bytes
    - Viewed (0)
  3. platforms/core-execution/snapshots/src/main/java/org/gradle/internal/fingerprint/hashing/RegularFileSnapshotContext.java

     * limitations under the License.
     */
    
    package org.gradle.internal.fingerprint.hashing;
    
    import org.gradle.internal.snapshot.RegularFileSnapshot;
    
    import java.util.function.Supplier;
    
    public interface RegularFileSnapshotContext {
        Supplier<String[]> getRelativePathSegments();
    
        RegularFileSnapshot getSnapshot();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:34:50 UTC 2023
    - 900 bytes
    - Viewed (0)
  4. platforms/jvm/normalization-java/src/main/java/org/gradle/api/internal/changedetection/state/AbiExtractingClasspathResourceHasher.java

                this.content = content;
            }
        }
    
        enum FallbackStrategy {
            FULL_HASH() {
                @Nullable
                @Override
                HashCode handle(RegularFileSnapshot fileSnapshot, IoFunction<RegularFileSnapshot, HashCode> function) {
                    try {
                        return function.apply(fileSnapshot);
                    } catch (Exception e) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  5. platforms/jvm/normalization-java/src/test/groovy/org/gradle/api/internal/changedetection/state/CachingResourceHasherTest.groovy

    import org.gradle.internal.hash.TestHashCodes
    import org.gradle.internal.snapshot.RegularFileSnapshot
    import spock.lang.Specification
    
    class CachingResourceHasherTest extends Specification {
        def delegate = Mock(ResourceHasher)
        def path = "some"
        def snapshotterCacheService = Mock(ResourceSnapshotterCacheService)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  6. platforms/core-execution/snapshots/src/test/groovy/org/gradle/internal/snapshot/impl/FileSystemSnapshotFilterTest.groovy

            def root = temporaryFolder.createFile("root")
            def regularFileSnapshot = new RegularFileSnapshot(root.absolutePath, root.name, TestHashCodes.hashCodeFrom(1234), DefaultFileMetadata.file(5, 1234, AccessType.DIRECT))
    
            expect:
            filteredPaths(regularFileSnapshot, include("different")) == [] as Set
            filteredPaths(regularFileSnapshot, include(root.name)) == [root] as Set
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:34:50 UTC 2023
    - 5.3K bytes
    - Viewed (0)
  7. platforms/jvm/normalization-java/src/main/java/org/gradle/api/internal/changedetection/state/DefaultRegularFileSnapshotContext.java

    import org.gradle.internal.fingerprint.hashing.RegularFileSnapshotContext;
    import org.gradle.internal.snapshot.RegularFileSnapshot;
    
    import java.util.function.Supplier;
    
    public class DefaultRegularFileSnapshotContext implements RegularFileSnapshotContext {
        private final Supplier<String[]> relativePathSegmentSupplier;
        private final RegularFileSnapshot snapshot;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 1.5K bytes
    - Viewed (0)
  8. subprojects/core/src/test/groovy/org/gradle/internal/fingerprint/impl/DefaultFileCollectionSnapshotterTest.groovy

    import org.gradle.api.tasks.util.PatternFilterable
    import org.gradle.internal.Factory
    import org.gradle.internal.snapshot.FileSystemSnapshot
    import org.gradle.internal.snapshot.RegularFileSnapshot
    import org.gradle.test.fixtures.file.TestFile
    import org.gradle.test.fixtures.file.TestNameTestDirectoryProvider
    import org.junit.Rule
    import spock.lang.Specification
    
    import javax.annotation.Nullable
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 12 16:25:23 UTC 2022
    - 7.1K bytes
    - Viewed (0)
  9. platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/history/impl/DefaultOutputFilesRepository.java

    import org.gradle.internal.snapshot.FileSystemLocationSnapshot.FileSystemLocationSnapshotVisitor;
    import org.gradle.internal.snapshot.FileSystemSnapshot;
    import org.gradle.internal.snapshot.RegularFileSnapshot;
    import org.gradle.internal.snapshot.SnapshotVisitResult;
    
    import java.io.Closeable;
    import java.io.File;
    import java.io.IOException;
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 16:02:33 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  10. platforms/core-execution/build-cache/src/test/groovy/org/gradle/caching/internal/controller/DefaultBuildCacheControllerPackOperationExecutorTest.groovy

            def outputFileSnapshot = new RegularFileSnapshot(outputFile.absolutePath, outputFile.name, TestHashCodes.hashCodeFrom(234), DefaultFileMetadata.file(15, 234, FileMetadata.AccessType.DIRECT))
            def fileSnapshots = [
                outputDir: new DirectorySnapshot(outputDir.getAbsolutePath(), outputDir.name, FileMetadata.AccessType.DIRECT, TestHashCodes.hashCodeFrom(456), [
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 05 22:18:26 UTC 2024
    - 7.6K bytes
    - Viewed (0)
Back to top