DefaultCopySpecTest.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.
Fail on duplicates when creating archives by default

  1. … 3 more files in changeset.
Fail on duplicates when creating archives by default

  1. … 3 more files in changeset.
Do not move org.gradle.api.internal.file.pattern out of "api" package

It is used by our own build.

  1. … 57 more files in changeset.
Do not move org.gradle.api.internal.file.pattern out of "api" package

It is used by our own build.

  1. … 57 more files in changeset.
Revert "Revert "Merge pull request #9840 from gradle/lptr/files/simplify-file-matchers""

This reverts commit 669ec8c0211ad7e36ec4a91921e2da5da8619bef.

  1. … 324 more files in changeset.
Revert "Merge pull request #9840 from gradle/lptr/files/simplify-file-matchers"

This reverts commit 72dc39d9784910196e7840ac35317bc46ef4c4a1, reversing

changes made to 69ffd7ea87b343cb6f0f03b947b7605a5bea02b1.

  1. … 324 more files in changeset.
Move file pattern matching to internal package without api

  1. … 57 more files in changeset.
Fix tests

Fix test

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.
Fix test

Clean up copy specs

- Add `@Override` annotations where necessary

- Add `@Nullable` and `@NonNullApi` annotations where necessary

- Some small optimizations

- Fix IntelliJ warnings

- Remove some dead code

  1. … 18 more files in changeset.
Process individual `CopySpec` inputs separately

This is take no. 2.

Previously input files of an `AbstractCopyTask` were declared as a single file collection. This made it impossible to tell when a file was moved from one sub-spec to another (and hence to a different destination). Spec destinations were also not tracked, and thus changing them didn't make the task out-of-date.

Now we track each spec and its destination path individually. This fixes GRADLE-1346.

+review REVIEW-6090

  1. … 11 more files in changeset.
Revert "Process individual `CopySpec` inputs separately"

This reverts commit 3c7ff07d4c6b566e505edeac51c33c647d7bac43.

  1. … 8 more files in changeset.
Process individual `CopySpec` inputs separately

Previously input files of an `AbstractCopyTask` were declared as a single file collection. This made it impossible to tell when a file was moved from one sub-spec to another (and hence to a different destination). Spec destinations were also not tracked, and thus changing them didn't make the task out-of-date.

Now we track each spec and its destination path individually. This fixes GRADLE-1346.

+review REVIEW-6090

  1. … 8 more files in changeset.
Convert DefaultCopySpecTest from JMock to Spock

#681

+review REVIEW-6151

    • -309
    • +301
    ./DefaultCopySpecTest.groovy
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.
Replace use of `Function` with `Transformer`

This commit replaces the use of Guava's `Function` interface and prefers the Gradle API `Transformer`

equivalent, for consistency.

+review REVIEW-6088

  1. … 10 more files in changeset.
Introduce `CopySpec#filter(Function)` in place of `filter(Closure)`

+review REVIEW-6088

  1. … 10 more files in changeset.
Add `CopySpec#into(Object, Action)`

This commit introduces an alternative to `into(Object, Closure)` for type

safety and deprecates the `Closure` version, to be able to remove this

method in Gradle 4.0.

+review REVIEW-6088

  1. … 7 more files in changeset.
GRADLE-1267 add a filteringCharset property to the copy spec

The copy task (and all the other tasks based on a CopySpec) allow filtering the source files to transform them. But the charset used to read and write the files was always the platform default charset, which causes problem if, for example, the source files are encoded with UTF8 but the platform default charset is another one.

This commit allows specifying a charset to use when filtering the files using `filteringCharset = 'UTF8'` (for example).

Note that the name `filteringCharset` was chosen for this new property as specified in `design-docs/handling-encodings.md`.

  1. … 15 more files in changeset.
Manage creation of most PatternSet instances

- use managed CachingPatternSpecFactory instance for

these PatternSet instances

+review REVIEW-5627

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

  1. … 89 more files in changeset.
Simplify ClassLoaderScope.

- Allow attaching of arbitrary classloaders (supports graphs instead of just trees)

- Remove “base” concept

  1. … 47 more files in changeset.
reintroduce previous behaviour of public accessors on copyspecs

  1. … 2 more files in changeset.