CopySpecMatchingTest.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.

  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.

  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.

  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.

  1. … 41 more files in changeset.
Allow the services required by a given class to be queried prior to creating any instances of that class. Use this to allow `ArtifactTransformDependencies` to be injected into artifact transforms using any of the service injection patterns (that is, via a constructor or a getter).

  1. … 127 more files in changeset.
Replace most direct usages of `DirectInstantiator` with indirect usages via `InstantiatorFactory` or test fixtures instead. This means more consistent behaviour in unit tests because the objects under test will behave more similarly to how they do at runtime. This also allows the decision of how the instantiation should behave to live in as few places as possible, so this can be more easily evolved and contextualized.

  1. … 60 more files in changeset.
Reject empty list of patterns in filesMatching and filesNotMatching

#681

+review REVIEW-6151

  1. … 1 more file in changeset.
Add test for CopySpec matching no patterns

#681

+review REVIEW-6151

Copy task: filesMatching and filesNotMatching should support multiple patterns (#681)

discussion in gradle-dev group: https://groups.google.com/forum/#!topic/gradle-dev/yTkx6tl7SCk

  1. … 6 more files in changeset.
Make DirectInstantiator a singleton.

  1. … 89 more files in changeset.
GRADLE-3022 Rename API from FileCopyDetails#getSourceRelativePath to FileCopyDetails#getRelativeSourcePath

+review REVIEW-5135

  1. … 4 more files in changeset.
GRADLE-3022 Adjust test expectation related to filesMatching

+review REVIEW-5135

introduced CopySpecResolver: checkpoint

  1. … 19 more files in changeset.
Moved some internal classes out of org.gradle.api.internal to live under org.gradle.internal

  1. … 91 more files in changeset.
Remove @author tags and names from source code.

- Added checkstyle check for @author

- Added not to CONTRIBUTING.md saying that we don't use names in the codebase

  1. … 1213 more files in changeset.
Some class renames and minor refactorings around the copy spec classes.

Cleaned up some things and renamed to be more consistent with our conventions.

  1. … 14 more files in changeset.
Remove Closure overloads of CopySpec methods now that they are enhanced.

  1. … 5 more files in changeset.
Some files missed from previous commit.

  1. … 5 more files in changeset.
Rename *matching* methods on CopySpec to *filesMatching*.

  1. … 6 more files in changeset.
GRADLE-2171: Added DuplicatesStrategy allowing duplicate files (based on their path) to be included or excluded, by default for an entire copy operation or on a per-file basis

- duplicatesStrategy field to FileCopyDetails so individual files

can specify their own strategy for handling duplicates

- add duplicatesStrategy field to CopySpec so that an entire copy

spec can specify the default strategy (this can be overridden

for some or all files)

- add CopySpec.matching and .notMatching convenience

methods. These let the user modify a group of FileCopyDetails

simultaneously. Motivated by setting a duplicatesStrategy for

eg, "META-INF/**/*.xml" but is generally useful

- added CopySpec.duplicatesPriority that determines precedence

among CopySpecs when a duplicate file is to be

excluded. Plugins can set a higher duplicatesPriority for some

specs (eg, Jar.manifest and Jar.metaInf), but this property is

not currently user-settable.

    • -0
    • +93
    ./CopySpecMatchingTest.groovy
  1. … 23 more files in changeset.