DefaultSourceDirectorySetTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Replace usages of `FileResolver.resolveFile()` with `FileCollectionFactory.resolving()` or `FileOperations.immutable()`, so that `FileResolver` can be responsible only for converting scalar values to File-ish values.

    • -10
    • +9
    ./DefaultSourceDirectorySetTest.groovy
  1. … 41 more files in changeset.
Replace usages of `FileResolver.resolveFile()` with `FileCollectionFactory.resolving()` or `FileOperations.immutable()`, so that `FileResolver` can be responsible only for converting scalar values to File-ish values.

    • -10
    • +9
    ./DefaultSourceDirectorySetTest.groovy
  1. … 41 more files in changeset.
Replace usages of `FileResolver.resolveFile()` with `FileCollectionFactory.resolving()` or `FileOperations.immutable()`, so that `FileResolver` can be responsible only for converting scalar values to File-ish values.

    • -10
    • +9
    ./DefaultSourceDirectorySetTest.groovy
  1. … 41 more files in changeset.
Replace usages of `FileResolver.resolveFile()` with `FileCollectionFactory.resolving()` or `FileOperations.immutable()`, so that `FileResolver` can be responsible only for converting scalar values to File-ish values.

    • -10
    • +9
    ./DefaultSourceDirectorySetTest.groovy
  1. … 41 more files in changeset.
Fixes for previous commit.

    • -1
    • +2
    ./DefaultSourceDirectorySetTest.groovy
  1. … 16 more files in changeset.
Fixes for previous commit.

    • -1
    • +2
    ./DefaultSourceDirectorySetTest.groovy
  1. … 16 more files in changeset.
Fixes for previous commit.

    • -1
    • +2
    ./DefaultSourceDirectorySetTest.groovy
  1. … 16 more files in changeset.
Introduce a factory service to create instances of `TaskDependency`, to allow the implementations to be contextualized and to use types that aren't part of the (internal) core API.

Use this factory in `DefaultConfigurableFileCollection`.

    • -1
    • +2
    ./DefaultSourceDirectorySetTest.groovy
  1. … 39 more files in changeset.
Introduce a factory service to create instances of `TaskDependency`, to allow the implementations to be contextualized and to use types that aren't part of the (internal) core API.

Use this factory in `DefaultConfigurableFileCollection`.

    • -1
    • +2
    ./DefaultSourceDirectorySetTest.groovy
  1. … 39 more files in changeset.
Replace 'Matchers' with 'CoreMatchers'

So we do not require 'org.hamcrest:hamcrest-library' as additional

dependency anymore. Which was only available for most of the tests

because it leaked onto the test compile classpath.

    • -1
    • +1
    ./DefaultSourceDirectorySetTest.groovy
  1. … 162 more files in changeset.
Use 'implementation' dependencies everywhere

    • -1
    • +1
    ./DefaultSourceDirectorySetTest.groovy
  1. … 286 more files in changeset.
Use 'implementation' dependencies everywhere

    • -1
    • +1
    ./DefaultSourceDirectorySetTest.groovy
  1. … 283 more files in changeset.
Use 'implementation' dependencies everywhere

    • -1
    • +1
    ./DefaultSourceDirectorySetTest.groovy
  1. … 286 more files in changeset.
Use 'implementation' dependencies everywhere

    • -1
    • +1
    ./DefaultSourceDirectorySetTest.groovy
  1. … 284 more files in changeset.
Use 'implementation' dependencies everywhere

    • -1
    • +1
    ./DefaultSourceDirectorySetTest.groovy
  1. … 285 more files in changeset.
Use 'implementation' dependencies everywhere

    • -1
    • +1
    ./DefaultSourceDirectorySetTest.groovy
  1. … 285 more files in changeset.
Move factory method that creates `Property` instances from `DefaultProviderFactory` to `DefaultObjectFactory`.

Change `DefaultSourceDirectorySet` to use `ObjectFactory` to create property instances, rather than reaching in to some internal service.

    • -8
    • +11
    ./DefaultSourceDirectorySetTest.groovy
  1. … 8 more files in changeset.
Remove FileCollection.stopExecutionIfEmpty()

#6269

    • -61
    • +26
    ./DefaultSourceDirectorySetTest.groovy
  1. … 5 more files in changeset.
Use GFileUtils.touch() only when we know the parent directory already exists

    • -30
    • +30
    ./DefaultSourceDirectorySetTest.groovy
  1. … 12 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.

    • -1
    • +1
    ./DefaultSourceDirectorySetTest.groovy
  1. … 12 more files in changeset.
Some improvements and fixes to `SourceDirectorySet` to allow source directory sets to be wired together and queried in various ways without resolving the source directories as a set of `File` instances:

- Added `SourceDirectorySet.getSourceDirectories()` to allow the source directories of the test to be referenced as a `FileCollection` without actually resolving them.

- Fixed `SourceDirectorySet` so that the dependencies of `Buildable` source directories are visible as dependencies of the `SourceDirectorySet` and its various views, and to avoid resolving the source directories.

    • -2
    • +127
    ./DefaultSourceDirectorySetTest.groovy
  1. … 2 more files in changeset.
Use a factory to create `DirectoryFileTree` instances, to avoid exposing the dependencies of `DirectoryFileTree` to its consumers.

This is only partially done, there are quite a few other places where this is not used.

    • -13
    • +8
    ./DefaultSourceDirectorySetTest.groovy
  1. … 23 more files in changeset.
Manage creation of most PatternSet instances

- use managed CachingPatternSpecFactory instance for

these PatternSet instances

+review REVIEW-5627

    • -1
    • +7
    ./DefaultSourceDirectorySetTest.groovy
  1. … 37 more files in changeset.
Cleanup of NativeServices testing changes - Changed use of NativeServicesTestFixture to annotation in many cases - Centralized temp dir creation logic - Enhanced uninitialized NativeServices error message

+review REVIEW-5378

    • -2
    • +2
    ./DefaultSourceDirectorySetTest.groovy
  1. … 41 more files in changeset.
Initializing native services for more broken tests

+review REVIEW-5378

    • -0
    • +2
    ./DefaultSourceDirectorySetTest.groovy
  1. … 22 more files in changeset.
Some renaming and cleanup around the test/temp directory used in tests.

    • -4
    • +5
    ./DefaultSourceDirectorySetTest.groovy
  1. … 308 more files in changeset.
- Fixed case where duplicate source directories were added to eclipse project when the java source directory was also configured as a resource directory. - Changed SourceSet.allJava, allGroovy, allScala and allSource to return a SourceDirectorySet instead of a generic FileTree. Removed code from ide plugins which reached into the implementation types for these properties, and use the api instead. This will later allow us to have per-directory include/excludes, and allow arbitrary file collections to be added to source sets.

    • -60
    • +123
    ./DefaultSourceDirectorySetTest.groovy
  1. … 40 more files in changeset.
Renamed subprojects/gradle-(.+) to subprojects/$1

    • -0
    • +238
    ./DefaultSourceDirectorySetTest.groovy
  1. … 6178 more files in changeset.