Clone Tools
  • last updated a few minutes ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Move FileAccessTimeJournal to :pineapple

    • -0
    • +1
    ./SingleDepthFileAccessTrackerTest.groovy
  1. … 20 more files in changeset.
Add convenience method to track access to single file

    • -1
    • +1
    ./SingleDepthFileAccessTrackerTest.groovy
  1. … 8 more files in changeset.
Remove superfluous space from test name

    • -1
    • +1
    ./SingleDepthFileAccessTrackerTest.groovy
Remove separate interfaces for reading and writing file access time

Now that reading and writing is safe again regardless of the phase

we don't need the separate interfaces anymore.

    • -5
    • +5
    ./SingleDepthFileAccessTrackerTest.groovy
  1. … 8 more files in changeset.
Write access time asynchronously, read synchronously

File access times are now written asynchronously while the cache is

being used. When it's about to be closed, they are now read

synchronously from the cleanup action because the cache access worker

has then already been stopped.

    • -53
    • +0
    ./ModificationTimeFileAccessJournalTest.groovy
    • -0
    • +53
    ./ModificationTimeFileAccessTimeJournalTest.groovy
    • -5
    • +5
    ./SingleDepthFileAccessTrackerTest.groovy
  1. … 29 more files in changeset.
Track artifact cache file access in PersistentIndexedCache

This commit introduces the `FileAccessJournal` interface and provides

two implementations:

ModificationTimeFileAccessJournal::

Reads and sets `File.lastModified()`.

IndexedCacheBackedFileAccessJournal::

Uses a PersistentIndexedCache to store the access timestamp.

The latter is now used in DefaultCacheLockingManager for the artifact

cache. All other PersistentCaches still use the former.

    • -0
    • +53
    ./ModificationTimeFileAccessJournalTest.groovy
    • -0
    • +65
    ./SingleDepthFileAccessTrackerTest.groovy
    • -76
    • +0
    ./TouchingFileAccessTrackerTest.groovy
  1. … 28 more files in changeset.
Clean up least recently used entries in external resources file store

The files in the external resources file store cache are now

automatically cleaned up based on a least recently used strategy. The

structure in the cache is as follows:

- modules-2

- resources-2.1

- 0

- hash 1 (*)

- hash 2 (*)

- ...

- ...

The cache now keeps track of files accessed inside the marked hash

directories. The cleanup action then deletes all such files that have

not been accessed in the last 30 days.

    • -0
    • +76
    ./TouchingFileAccessTrackerTest.groovy
  1. … 29 more files in changeset.
Add support for URI-backed text resources

This can be used to point tasks like Checkstyle

to a remote, shared configuration file without

having to package it into an archive and using

dependency resolution.

The implementation reuses the same caching logic

we have for remote build scripts.

    • -5
    • +1
    ./LocalFileStandInExternalResourceTest.groovy
  1. … 20 more files in changeset.
Another test fix for linux Java 9.

    • -2
    • +2
    ./LocalFileStandInExternalResourceTest.groovy
Fixed test on linux Java 9.

    • -2
    • +11
    ./LocalFileStandInExternalResourceTest.groovy
Merged the file resource implementation for the public `Resource` API into the file resource implementation for `ExternalResource` used by dependency resolution and publishing. This is a small step towards merging and reusing all the various resource implementations.

    • -0
    • +39
    ./LocalFileStandInExternalResourceTest.groovy
  1. … 30 more files in changeset.
Shuffled some methods around in the `ExternalResource` hierarchy.

    • -8
    • +238
    ./LocalFileStandInExternalResourceTest.groovy
  1. … 5 more files in changeset.
Moved a class to break a package cycle.

    • -0
    • +111
    ./LocalFileStandInExternalResourceTest.groovy
  1. … 6 more files in changeset.
Moved some classes out of org.gradle.util.

    • -1
    • +1
    ./DefaultLocallyAvailableResourceTest.groovy
  1. … 63 more files in changeset.
Renamed some packages in the resources project.

    • -0
    • +66
    ./DefaultLocallyAvailableResourceTest.groovy
  1. … 37 more files in changeset.