DefaultFileOperationsTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Disallow reading the value of a task output `Property` that is strict before the producing task has started execution.

  1. … 27 more files in changeset.
Force AbstractTestDirectoryProvider to use Class (#12431)

Closes https://github.com/gradle/gradle-private/issues/2988

This PR adds `className` to `AbstractTestDirectoryProvider` so there'll be no more `unknown-test-class`.

  1. … 407 more files in changeset.
Remove `FileResolver.getPatternSetFactory()` as this was only used to carry around the factory service and never used by the resolvers themselves. Instead, pass the factory around as a service.

  1. … 51 more files in changeset.
Track the source paths for a `CopySpec` in a `ConfigurableFileCollection` rather than a `Set<Object>`.

This will allow instant execution serialization to better deal with serializing these paths.

  1. … 2 more files in changeset.
Fix failing tests from insecure HTTP deprecation changes

  1. … 15 more files in changeset.
Merge branch 'master' into feature/JLL/depricate_http_download_dependencies

* master: (77 commits)

Realized component variants need to provide all attributes

Fix TeamCity Hygiene failures

New performance process (#10361)

Publish 5.6.1-20190825230025+0000

Publish 5.6.1-20190824230038+0000

Update .com userguide links

Update .com footer links

Update .com header links

Publish 5.6.1-20190823234015+0000

Rebase to latest 6.0 nightly

Revert "Recognize contributor"

Remove use of Java 11 API from instant execution

Recognize contributor

enhanced test source folder detection for eclipse task. (#10320)

Publish 5.6.1-20190823130927+0000

Rebase performance tests with 5.7-20190812122716+0000 baseline

Upgrade wrapper to 6.0 nightly

Rebase performance tests with 5.7-20190722220035+0000 baseline

Rebaseline to lock performance improvements

Temporarily use 5.6 as the baseline for Santa Tracker `assembleDebug` case.

...

    • -24
    • +16
    ./DefaultFileOperationsTest.groovy
  1. … 17 more files in changeset.
Refactor HTTP deprecation logic to use HttpRedirectVerifier

  1. … 60 more files in changeset.
Replace `FileResolver.resolveFilesAsTree()` and `compositeFileTree()` with `FileCollectionFactory`.

    • -16
    • +11
    ./DefaultFileOperationsTest.groovy
  1. … 44 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.
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. … 39 more files in changeset.
Create Deleter as a service

  1. … 11 more files in changeset.
Remove TextResourceLoader.Factory

  1. … 32 more files in changeset.
Fix failing after HTTP deprecation refactor

Signed-off-by: Jonathan Leitschuh <Jonathan.Leitschuh@gmail.com>

  1. … 7 more files in changeset.
Deprecate download of resources over HTTP; Require opt-in

Signed-off-by: Jonathan Leitschuh <Jonathan.Leitschuh@gmail.com>

  1. … 54 more files in changeset.
Let Deleter take a Clock and make tests deterministic

Signed-off-by: Paul Merlin <paul@gradle.com>

  1. … 12 more files in changeset.
Remove fileSystem from FileLookup

  1. … 14 more files in changeset.
Change some `FileCollection` construction in various core services to delegate to `FileCollectionFactory`. Also merge some `FileCollection` implementations that do the same thing.

    • -34
    • +14
    ./DefaultFileOperationsTest.groovy
  1. … 14 more files in changeset.
Replace some direct usages of `DefaultConfigurableFileCollection` with `FileCollectionFactory`.

    • -108
    • +4
    ./DefaultFileOperationsTest.groovy
  1. … 50 more files in changeset.
spelling: nonexistent

Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>

  1. … 11 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.
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.
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.

  1. … 20 more files in changeset.
Changed the process forking infrastructure so that it attempts to reuse threads rather than creating 3 or more threads per process that is forked.

There is now a global `ExecFactory` service that manages the infrastructure, including a pool of threads. It provides various factory methods to create instances of `ExecHandleBuilder`, `ExecAction`, `JavaExecHandleBuilder` and `JavaExecAction` backed by this infrastructure.

Replaced all direct instantiation of these types with usages of these factory methods.

  1. … 44 more files in changeset.
Use our own hashing architecture, take 2 (#2817)

This replaces Guava's hashing. We need this for two reasons:

- it allows the addition of custom hash functions, like BLAKE2b which would not be possible with Guava's closed design

- it fixes a few performance issues that Guava only fixes in version 20 (which we can't upgrade to right now, because we still need to support Java 5 in places)

  1. … 159 more files in changeset.
Fix merge issues

  1. … 22 more files in changeset.
Make zipTrees faster

zipTrees were unpacked every time they were visited,

which meant 2-4 times for every single build.

This changes the logic to snapshot the zip and only unpack

again if it has changed.

  1. … 12 more files in changeset.
Change ClasspathUtils.getClasspath to return a ClassPath object

  1. … 6 more files in changeset.
Introduce order-sensitive task file inputs

Some task file input properties (such as Java classpaths) need to be treated in an order-sensitive fashion. If the same files are present, but in different order, the corresponding task should be out-of-date.

Fixes GRADLE-3508

+review REVIEW-6114

  1. … 27 more files in changeset.
Improvements after review.

* Enable DefaultFileOperationsTest#javaexec test.

* Rethrow MalformedURLException as RuntimeException.

* Clean code: make intent of code more explicit.

+review REVIEW-6062

  1. … 1 more file in changeset.
Skip the javaexec test on Java9.

- There are issues with locating the main class using the FileOperations

class's javaexec functionality.

  1. … 1 more file in changeset.