- Sort Score
- Result 10 results
- Languages All
Results 1 - 9 of 9 for FileValueSnapshot (0.37 sec)
-
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/FileValueSnapshot.java
import org.gradle.internal.snapshot.ValueSnapshotter; import javax.annotation.Nullable; import java.io.File; public class FileValueSnapshot extends AbstractScalarValueSnapshot<String> implements Isolatable<File> { public FileValueSnapshot(File value) { super(value.getPath()); } public FileValueSnapshot(String value) { super(value); } @Override public ValueSnapshot asSnapshot() {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 1.9K bytes - Viewed (0) -
platforms/core-execution/workers/src/main/java/org/gradle/workers/internal/IsolatableSerializerRegistry.java
@Override protected void serialize(Encoder encoder, FileValueSnapshot value) throws Exception { encoder.writeString(value.getValue()); } @Override protected FileValueSnapshot deserialize(Decoder decoder) throws Exception { return new FileValueSnapshot(decoder.readString()); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jan 26 14:58:23 UTC 2024 - 26.9K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/SnapshotSerializer.java
encoder.writeSmallInt(HASH_SNAPSHOT); encoder.writeBinary(hashSnapshot.getValue().toByteArray()); } else if (snapshot instanceof FileValueSnapshot) { FileValueSnapshot fileSnapshot = (FileValueSnapshot) snapshot; encoder.writeSmallInt(FILE_SNAPSHOT); encoder.writeString(fileSnapshot.getValue()); } else if (snapshot instanceof EnumValueSnapshot) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Jan 11 20:22:01 UTC 2024 - 14.1K bytes - Viewed (0) -
platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/IsolatedCodecs.kt
} } object FileValueSnapshotCodec : Codec<FileValueSnapshot> { override suspend fun WriteContext.encode(value: FileValueSnapshot) { writeString(value.value) } override suspend fun ReadContext.decode(): FileValueSnapshot { val value = readString() return FileValueSnapshot(value) } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jun 07 23:09:56 UTC 2024 - 7.3K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/snapshot/impl/SnapshotSerializerTest.groovy
def original = new EnumValueSnapshot(Thing.THING_1) write(original) expect: original == written } def "serializes file properties"() { def original = new FileValueSnapshot(new File("abc")) write(original) expect: original == written } def "serializes null properties"() { def original = NullValueSnapshot.INSTANCE
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Jan 11 20:22:01 UTC 2024 - 8K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/DefaultValueSnapshotter.java
classLoaderHasher.getClassLoaderHash(implementation.getClass().getClassLoader())); } @Override public ValueSnapshot fileValue(File value) { return new FileValueSnapshot(value); } @Override public ValueSnapshot attributeValue(Attribute<?> value) { return new AttributeDefinitionSnapshot(value, classLoaderHasher); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Jan 11 20:22:01 UTC 2024 - 6.5K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/internal/snapshot/impl/DefaultIsolatableFactory.java
throw new IsolationException(implementationClassIdentifier); } @Override public Isolatable<?> fileValue(File value) { return new FileValueSnapshot(value); } @Override public Isolatable<?> attributeValue(Attribute<?> value) { return new AttributeDefinitionSnapshot(value, classLoaderHasher); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Tue Mar 26 22:53:34 UTC 2024 - 6.5K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/snapshot/impl/DefaultIsolatableFactoryTest.groovy
} def "creates isolated file"() { expect: def original = new File("abc") def isolated = isolatableFactory.isolate(original) isolated instanceof FileValueSnapshot isolated.isolate() == original } def "can coerce file value"() { expect: def original = new File("abc") def isolated = isolatableFactory.isolate(original)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 17K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/test/groovy/org/gradle/internal/snapshot/impl/DefaultValueSnapshotterTest.groovy
} def "creates snapshot for file"() { expect: def snapshot = snapshotter.snapshot(new File("abc")) snapshot instanceof FileValueSnapshot snapshot == snapshotter.snapshot(new File("abc")) snapshot != snapshotter.snapshot(new File("abc").getAbsoluteFile()) snapshot != snapshotter.snapshot(new File("123"))
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 29.5K bytes - Viewed (0)