ZipHasherTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Move common classes from changedetection to normalization project

  1. … 54 more files in changeset.
Move common classes from changedetection to normalization project

  1. … 54 more files in changeset.
Move common classes from changedetection to normalization project

  1. … 54 more files in changeset.
Merge remote-tracking branch 'origin/master' into gh/pr/11937

  1. … 4 more files in changeset.
Refactor manifest and property hasher to only apply to runtime classpaths

This fixes the issue where compile classpath fingerprinting was taking

properties and manifest files into account unnecessarily.

  1. … 10 more files in changeset.
Rename FileMetadata{Snapshot -> }

Snapshot doesn't add anything to the name.

  1. … 50 more files in changeset.
Replace FileMetadata by FileMetadataSnapshot

  1. … 16 more files in changeset.
Decode properties files as UTF-8, falling back to ISO 8859-1 on failure

Allows UTF-8 property keys to be ignored. Implemented with a backport of PropertyResourceBundleCharset for Java 8 compatibility.

Signed-off-by: Danny Thomas <dannyt@netflix.com>

  1. … 2 more files in changeset.
Introduce access type on FileSystemLocationSnapshot

but don't fill it, yet.

  1. … 23 more files in changeset.
Introduce access type on FileSystemLocationSnapshot

but don't fill it, yet.

  1. … 23 more files in changeset.
Introduce access type on FileSystemLocationSnapshot

but don't fill it, yet.

  1. … 23 more files in changeset.
Force AbstractTestDirectoryProvider to use Class (#12431)

Closes https://github.com/gradle/gradle-private/issues/2988

This PR adds `className` to `AbstractTestDirectoryProvider` so there'll be no more `unknown-test-class`.

  1. … 407 more files in changeset.
Fix tests

  1. … 372 more files in changeset.
Normalize metaInf entries

Jar file manifests can't be normalized via the current normalization method due to their potential impact on runtime behaviour, so this makes their normalization a feature. In addition to allowing attributes to be ignored by key, for changing attributes such as Created-By (typically includes the exact JDK version) attributes are sorted before they're filtered and hashed ensuring a stable result.

This also normalizes property files with in META-INF/ and optionally allows values to be ignored by key.

Signed-off-by: Danny Thomas <dannyt@netflix.com>

  1. … 22 more files in changeset.
Track file length in file snapshot as well

  1. … 13 more files in changeset.
Revert "Merge pull request #9604 from gradle/oehme/fix-zip-hashing"

This reverts commit 8cea5a026e65c3bbe7312d91f6f6bef898108617, reversing

changes made to ea2bd4230925fdf31926f34053d56d1085176861.

  1. … 17 more files in changeset.
Inline org.gradle.testing.internal.util.Specification

  1. … 53 more files in changeset.
Inline org.gradle.testing.internal.util.Specification

  1. … 53 more files in changeset.
Inline org.gradle.testing.internal.util.Specification

  1. … 52 more files in changeset.
Inline org.gradle.testing.internal.util.Specification

  1. … 53 more files in changeset.
Revert "Revert "Merge pull request #9344 from gradle/oehme/zip-hashing""

This reverts commit 4ce18d53224f02f0a764849e938a8fc85f85413c.

    • -0
    • +79
    ./ZipHasherTest.groovy
  1. … 17 more files in changeset.
Revert "Merge pull request #9344 from gradle/oehme/zip-hashing"

This reverts commit 9c6dd6f2615ac11e88fe5dff67a595a3902ff535, reversing

changes made to b049f7a5c1d4aa35a384103ac5061a2d4e4de317.

  1. … 17 more files in changeset.
Revert "Merge pull request #9344 from gradle/oehme/zip-hashing"

This reverts commit 9c6dd6f2615ac11e88fe5dff67a595a3902ff535, reversing

changes made to b049f7a5c1d4aa35a384103ac5061a2d4e4de317.

  1. … 17 more files in changeset.
Handle empty nested jars

Add unit tests for this and the non-empty case.

  1. … 2 more files in changeset.
Handle empty nested jars

Add unit tests for this and the non-empty case.

  1. … 2 more files in changeset.
Add unit tests for nested jar handling

    • -0
    • +69
    ./ZipHasherTest.groovy
  1. … 2 more files in changeset.
Add unit tests for nested jar handling

  1. … 2 more files in changeset.
Handle empty nested jars

Add unit tests for this and the non-empty case.

  1. … 2 more files in changeset.