- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 52 for snapshotFor (0.38 sec)
-
platforms/enterprise/enterprise/src/main/java/org/gradle/internal/snapshot/SnapshottingService.java
/** * Returns a snapshot for the specified file. * * @param filePath path to file for which we want a snapshot * @return snapshot for specified file */ Snapshot snapshotFor(Path filePath);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Jul 17 10:17:11 UTC 2023 - 1017 bytes - Viewed (0) -
platforms/enterprise/enterprise/src/main/java/org/gradle/internal/snapshot/impl/DefaultSnapshottingService.java
@Inject public DefaultSnapshottingService(FileSystemAccess fileSystemAccess) { this.fileSystemAccess = fileSystemAccess; } @Override public Snapshot snapshotFor(Path filePath) { String absolutePath = filePath.toAbsolutePath().toString(); HashCode hash = fileSystemAccess.read(absolutePath).getHash(); return new DefaultSnapshot(hash); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Jul 17 10:17:11 UTC 2023 - 1.9K bytes - Viewed (0) -
platforms/enterprise/enterprise/src/integTest/groovy/org/gradle/internal/snapshot/SnapshottingServiceIntegrationTest.groovy
pluginBuilder.addPlugin(""" def inputFile = project.file("input.txt") def snapshottingService = project.services.get(${SnapshottingService.name}) def snapshot = snapshottingService.snapshotFor(inputFile.toPath()) println("Snapshot for input file \${inputFile.name} is \$snapshot") """ ) pluginBuilder.generateForBuildSrc() buildFile << """
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Jul 17 10:17:11 UTC 2023 - 1.6K bytes - Viewed (0) -
platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/steps/SnapshotterFixture.groovy
@CompileStatic trait SnapshotterFixture { abstract TestNameTestDirectoryProvider getTemporaryFolder() final FileCollectionSnapshotter snapshotter = TestFiles.fileCollectionSnapshotter() ImmutableSortedMap<String, FileSystemSnapshot> snapshotsOf(Map<String, Object> properties) { def builder = ImmutableSortedMap.<String, FileSystemSnapshot>naturalOrder() properties.each { propertyName, value ->
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Nov 22 09:41:32 UTC 2023 - 2K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/ManagedValueSnapshot.java
@Override public int hashCode() { return super.hashCode() ^ className.hashCode(); } @Override public ValueSnapshot snapshot(Object value, ValueSnapshotter snapshotter) { ValueSnapshot snapshot = snapshotter.snapshot(value); if (snapshot.equals(this)) { return this; } return snapshot; } @Override public String toString() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 1.8K bytes - Viewed (0) -
platforms/core-execution/execution/src/main/java/org/gradle/internal/execution/impl/DefaultInputFingerprinter.java
public class DefaultInputFingerprinter implements InputFingerprinter { private final FileCollectionSnapshotter snapshotter; private final FileCollectionFingerprinterRegistry fingerprinterRegistry; private final ValueSnapshotter valueSnapshotter; public DefaultInputFingerprinter( FileCollectionSnapshotter snapshotter, FileCollectionFingerprinterRegistry fingerprinterRegistry, ValueSnapshotter valueSnapshotter
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jan 26 14:58:23 UTC 2024 - 10.1K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/snapshot/impl/DefaultValueSnapshotterTest.groovy
snapshotter.snapshot(Type1.TWO, snapshot).is(snapshot) snapshotter.snapshot(Type1.ONE, snapshot) != snapshot snapshotter.snapshot(Type1.ONE, snapshot) == snapshotter.snapshot(Type1.ONE) snapshotter.snapshot(Type2.TWO, snapshot) != snapshot snapshotter.snapshot(Type2.TWO, snapshot) == snapshotter.snapshot(Type2.TWO)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 29.5K bytes - Viewed (0) -
src/testing/newcover.go
// tear-down function to be called at the end of the testing run. var cover2 struct { mode string tearDown func(coverprofile string, gocoverdir string) (string, error) snapshotcov func() float64 } // registerCover2 is invoked during "go test -cover" runs. // It is used to record a 'tear down' function // (to be called when the test is complete) and the coverage mode.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 09:58:07 UTC 2024 - 1.6K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/internal/resolve/caching/CrossBuildCachingRuleExecutor.java
InMemoryCacheDecoratorFactory cacheDecoratorFactory, ValueSnapshotter snapshotter, BuildCommencedTimeProvider timeProvider, EntryValidator<RESULT> validator, Transformer<?, KEY> keyToSnapshottable, Serializer<RESULT> resultSerializer ) { this.snapshotter = snapshotter; this.validator = validator; this.keyToSnapshottable = keyToSnapshottable;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Jan 10 15:51:31 UTC 2024 - 16.1K bytes - Viewed (0) -
platforms/core-execution/execution/src/test/groovy/org/gradle/internal/execution/impl/DefaultInputFingerprinterTest.groovy
def fingerprinter = Mock(FileCollectionFingerprinter) def snapshotter = Mock(FileCollectionSnapshotter) def fingerprinterRegistry = Stub(FileCollectionFingerprinterRegistry) { getFingerprinter(_ as FileNormalizationSpec) >> fingerprinter } def valueSnapshotter = Mock(ValueSnapshotter) def inputFingerprinter = new DefaultInputFingerprinter(snapshotter, fingerprinterRegistry, valueSnapshotter) def input = Mock(Object)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Sep 22 09:46:15 UTC 2023 - 9K bytes - Viewed (0)