collections

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Add more test coverage for DirectorySnapshotter

    • -36
    • +57
    ./jdk7/Jdk7DirectoryWalkerTest.groovy
Return correct relative path when snapshotting

Issue #6656

    • -3
    • +39
    ./jdk7/Jdk7DirectoryWalkerTest.groovy
  1. … 1 more file in changeset.
Move file collection APIs out of core (#6525)

This change breaks out code that directly relates to handling `FileCollection`s and their build dependencies (called `TaskDependency` at this time) into a separate subproject (`:files`). This is so that other modules can build on just this module instead of having to depend on the oversized `:core`.

As part of the change `Provider`s have been moved to `:base-services`. In a possible followup step `:base-services` could be split into a module that captures the very basic concepts of Gradle's data model: it's all about `DomainObjectCollection`s that can be configured via `Action`s, transformed via `Transformer`s, lazyness can be provided via `Provider`s and rich mutable data types can be created via `Property` objects.

Another addition to `:base-serivces` is the directed graph traversal algorithms used in many parts of Gradle.

    • -171
    • +0
    ./BuildDependenciesOnlyFileCollectionResolveContextTest.groovy
    • -363
    • +0
    ./DefaultConfigurableFileCollectionTest.java
    • -323
    • +0
    ./DefaultConfigurableFileTreeTest.groovy
    • -265
    • +0
    ./DefaultDirectoryWalkerTest.groovy
    • -464
    • +0
    ./DefaultFileCollectionResolveContextTest.groovy
    • -224
    • +0
    ./ImmutableFileCollectionTest.groovy
    • -317
    • +0
    ./SingleIncludePatternFileTreeSpec.groovy
    • -322
    • +0
    ./jdk7/Jdk7DirectoryWalkerTest.groovy
    • -78
    • +0
    ./jdk7/Jdk7UnauthorizedDirectoryWalkerTest.groovy
  1. … 430 more files in changeset.
Remove SimpleFileCollection

#6274

  1. … 2 more files in changeset.
Remove FileCollection.add

#6273

    • -18
    • +7
    ./ImmutableFileCollectionTest.groovy
  1. … 6 more files in changeset.
Convert test from JMock to Spock

    • -134
    • +117
    ./DefaultConfigurableFileTreeTest.groovy
  1. … 2 more files in changeset.
Remove FileCollection.stopExecutionIfEmpty()

#6269

    • -43
    • +48
    ./DefaultConfigurableFileTreeTest.groovy
  1. … 5 more files in changeset.
Stop using atomic types in non-thread-safe contexts (#5813)

- Replace AtomicReference with MutableReference

- Replace AtomicBoolean with MutableBoolean

  1. … 17 more files in changeset.
Use immutable file collections whenever possible (#5797)

- Stop DefaultProject implementing FileOperations/ProcessOperations

- Stop BasicScript implementing FileOperations/ProcessOperations

- FileResovler.resolveUri() is not nullable

  1. … 38 more files in changeset.
Wire `FileCollection` to task dependency when constructed from `TaskProvider`

See https://github.com/gradle/gradle-native/issues/737

    • -0
    • +15
    ./BuildDependenciesOnlyFileCollectionResolveContextTest.groovy
  1. … 4 more files in changeset.
Increase file walker time interval to 2000ms

See https://github.com/gradle/gradle-private/issues/1164

This PR makes an attempt to fix the flay test. Previously this test

asserted a file walking costed no more than 1000ms, which seemed

not true. This PR increases this value to 2000ms.

Dogfood ImmutableFileCollection on production code (#4988)

This reverts commit 13eaebc2b1244511dcbff4c59cd41253e3b69642.

    • -3
    • +23
    ./ImmutableFileCollectionTest.groovy
  1. … 88 more files in changeset.
Revert "Dogfood ImmutableFileCollection on production code (#4988)"

This reverts commit 834632674ca29b6fd190857947338b2b54a9bb62.

The commit caused a bug in incremental compilation, causing changes

to go undetected.

    • -23
    • +3
    ./ImmutableFileCollectionTest.groovy
  1. … 88 more files in changeset.
Dogfood ImmutableFileCollection on production code (#4988)

Use ImmutableFileCollection in production code

    • -3
    • +23
    ./ImmutableFileCollectionTest.groovy
  1. … 88 more files in changeset.
Dogfood ImmutableFileCollection in tests (#4972)

Reduce the number of static factory methods from ImmutableFileCollection

Use layout.fileFor() in a smoke test

    • -23
    • +4
    ./ImmutableFileCollectionTest.groovy
  1. … 32 more files in changeset.
Add ImmutableFileCollection (#4913)

Add `ProjectLayout.filesFor()` to obtain (immutable) `FileCollection`.

Add `ProjectLayout.mutableFilesFor()` to obtain (mutable) `ConfigurableFileCollection`.

    • -0
    • +234
    ./ImmutableFileCollectionTest.groovy
  1. … 7 more files in changeset.
Add new test coverage

    • -0
    • +81
    ./FailOnBrokenSymbolicLinkVisitorTest.groovy
  1. … 4 more files in changeset.
Fix existing tests

  1. … 4 more files in changeset.
Minor changes to test to better diagnose falkiness

When a `Provider` is resolved to a `FileCollection`, fail rather than ignore when the provider has no value.

    • -5
    • +7
    ./DefaultFileCollectionResolveContextTest.groovy
  1. … 1 more file in changeset.
Convert test name to strings

Signed-off-by: Daniel Lacasse <daniel@gradle.com>

    • -30
    • +30
    ./DefaultFileCollectionResolveContextTest.groovy
Introduce the binary container to XCTest plugin

Signed-off-by: Daniel Lacasse <daniel@gradle.com>

    • -0
    • +26
    ./DefaultFileCollectionResolveContextTest.groovy
  1. … 11 more files in changeset.
Added an internal mechanism for the task executor and input property snapshotting to collaborate with rich input file property types, such as `FileCollection`, so that the property value implementation can finalize the property value early the task execution and cache state during task execution to make input calculation, snapshots and querying faster.

The value implementation can implement `LifecycleAwareTaskProperty` to be notified of when it is permitted to finalize the value and cache state and when it should release that state.

    • -3
    • +11
    ./DefaultConfigurableFileCollectionTest.java
  1. … 12 more files in changeset.
Do not check permission's of files if they've been excluded (#2758)

Do not check permission's of files if they've been excluded

    • -0
    • +78
    ./jdk7/Jdk7UnauthorizedDirectoryWalkerTest.groovy
  1. … 3 more files in changeset.
Fix merge issues

  1. … 22 more files in changeset.
Address review feedback on faster zipTrees

  1. … 7 more files in changeset.
Clear canon caches when creating symlinks in tests

Some of our tests were actually only passing because

we were canonicalizing the files before creating a symlink

and the JVM would keep returning the original path for the next

30 s. By deleting some arbitrary file we can force it to clear its

caches immediately, making our tests show the actual expected

behavior.

  1. … 1 more file in changeset.
Exclude Path in BuildDependenciesOnlyFileCollectionResolveContext

    • -0
    • +2
    ./BuildDependenciesOnlyFileCollectionResolveContextTest.groovy
  1. … 1 more file in changeset.
Fix test

The constructor was removed.

Remove deprecated constructors on DirectoryFileTree (#1776)

    • -1
    • +2
    ./DefaultConfigurableFileTreeTest.groovy
  1. … 20 more files in changeset.