- Sort Score
- Result 10 results
- Languages All
Results 1 - 7 of 7 for DefaultZipEntryContext (0.46 sec)
-
platforms/jvm/normalization-java/src/main/java/org/gradle/api/internal/changedetection/state/DefaultZipEntryContext.java
import org.gradle.internal.fingerprint.hashing.ZipEntryContext; import java.util.function.Supplier; public class DefaultZipEntryContext implements ZipEntryContext { private final ZipEntry entry; private final String fullName; private final String rootParentName; public DefaultZipEntryContext(ZipEntry entry, String fullName, String rootParentName) { this.entry = entry; this.fullName = fullName;
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 15:09:49 UTC 2023 - 1.9K bytes - Viewed (0) -
platforms/jvm/normalization-java/src/test/groovy/org/gradle/api/internal/changedetection/state/CachingResourceHasherTest.groovy
0 * _ } def "does not cache zip entries"() { def expectedHash = TestHashCodes.hashCodeFrom(123) def zipEntry = Mock(ZipEntry) def zipEntryContext = new DefaultZipEntryContext(zipEntry, "foo", "foo.zip") when: def actualHash = cachingHasher.hash(zipEntryContext) then: 1 * delegate.hash(zipEntryContext) >> expectedHash 0 * _
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 15:09:49 UTC 2023 - 2.4K bytes - Viewed (0) -
platforms/jvm/normalization-java/src/main/java/org/gradle/api/internal/changedetection/state/ZipHasher.java
continue; } String fullName = parentName.isEmpty() ? zipEntry.getName() : parentName + "/" + zipEntry.getName(); ZipEntryContext zipEntryContext = new DefaultZipEntryContext(zipEntry, fullName, rootParentName); if (isZipFile(zipEntry.getName())) { zipEntryContext.getEntry().withInputStream(inputStream -> {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Dec 11 13:37:56 UTC 2023 - 6.4K bytes - Viewed (0) -
platforms/jvm/normalization-java/src/main/java/org/gradle/api/internal/changedetection/state/FallbackHandlingResourceHasher.java
LOGGER.debug(zipEntryContext.getFullName() + " is too large (" + entry.size() + ") for safe fallback - skipping."); return Optional.empty(); } else { return Optional.of(new DefaultZipEntryContext(new CachingZipEntry(entry), zipEntryContext.getFullName(), zipEntryContext.getRootParentName())); } } /** * Whether this resource hasher should try to hash the file or pass it to the delegate
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 15:09:49 UTC 2023 - 6K bytes - Viewed (0) -
platforms/jvm/normalization-java/src/test/groovy/org/gradle/api/internal/changedetection/state/LineEndingNormalizingResourceHasherTest.groovy
@Override ZipEntry.ZipCompressionMethod getCompressionMethod() { return ZipEntry.ZipCompressionMethod.DEFLATED } } return new DefaultZipEntryContext(zipEntry, file.path, "foo.zip") } RegularFileSnapshotContext snapshotContext(File file, FileType fileType = FileType.RegularFile) { return Mock(RegularFileSnapshotContext) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 15:09:49 UTC 2023 - 7.9K bytes - Viewed (0) -
platforms/jvm/normalization-java/src/test/groovy/org/gradle/api/internal/changedetection/state/MetaInfAwareClasspathResourceHasherTest.groovy
@Override ZipEntry.ZipCompressionMethod getCompressionMethod() { return ZipEntry.ZipCompressionMethod.DEFLATED } } return new DefaultZipEntryContext(zipEntry, path, "foo.zip") } def fileSnapshot(String path, Map<String, Object> attributesMap = [:], Exception exception = null) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 15:09:49 UTC 2023 - 16.9K bytes - Viewed (0) -
platforms/jvm/normalization-java/src/test/groovy/org/gradle/api/internal/changedetection/state/PropertiesFileAwareClasspathResourceHasherTest.groovy
@Override ZipEntry.ZipCompressionMethod getCompressionMethod() { return ZipEntry.ZipCompressionMethod.DEFLATED } } return new DefaultZipEntryContext(zipEntry, path, "foo.zip") } RegularFileSnapshotContext fileSnapshot(String path, Map<String, String> attributes, String comments = "") { Properties properties = new Properties()
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Dec 11 13:37:56 UTC 2023 - 15.6K bytes - Viewed (0)