JarCacheTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Allow client of `CachedClasspathTransformer` to specify what purpose the result will be used for, so that different transformations can be applied.

In this commit, the parameter has no effect.

  1. … 14 more files in changeset.
Allow client of `CachedClasspathTransformer` to specify what purpose the result will be used for, so that different transformations can be applied.

In this commit, the parameter has no effect.

  1. … 12 more files in changeset.
Allow client of `CachedClasspathTransformer` to specify what purpose the result will be used for, so that different transformations can be applied.

In this commit, the parameter has no effect.

  1. … 12 more files in changeset.
Allow client of `CachedClasspathTransformer` to specify what purpose the result will be used for, so that different transformations can be applied.

In this commit, the parameter has no effect.

  1. … 12 more files in changeset.
Allow client of `CachedClasspathTransformer` to specify what purpose the result will be used for, so that different transformations can be applied.

In this commit, the parameter has no effect.

  1. … 12 more files in changeset.
Allow client of `CachedClasspathTransformer` to specify what purpose the result will be used for, so that different transformations can be applied.

In this commit, the parameter has no effect.

  1. … 14 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.
No need to use a factory

  1. … 2 more files in changeset.
Use our own hashing architecture, take 2 (#2817)

This replaces Guava's hashing. We need this for two reasons:

- it allows the addition of custom hash functions, like BLAKE2b which would not be possible with Guava's closed design

- it fixes a few performance issues that Guava only fixes in version 20 (which we can't upgrade to right now, because we still need to support Java 5 in places)

  1. … 159 more files in changeset.
Move FileHasher to base-services

+review REVIEW-6562

  1. … 74 more files in changeset.
Use `stat()` instead of `File` operations `CachingFileHasher.hash(File)`, which is almost always faster and often has a finer-grained resolution for last modified timestamp. Also changed `JarCache` to reuse `FileHasher` instead of reimplementing the same logic that determines whether a file has changed. This logic has moved on quite a bit since `JarCache` was implemented. Now, further improvements to accuracy or performance will be reused by `JarCache`.

Removed `sleep()` from functional tests as these should no longer be required thanks to the reuse.

  1. … 8 more files in changeset.
Change buildscript classpath to use cached jars instead of originals

+review REVIEW-6182

    • -0
    • +130
    ./JarCacheTest.groovy
  1. … 17 more files in changeset.