FilePropertiesIntegrationTest.groovy

Clone Tools
  • last updated a few seconds ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Move some integration tests from `core` to `fileCollections` project.

    • -821
    • +0
    ./FilePropertiesIntegrationTest.groovy
  1. … 3 more files in changeset.
Move some integration tests from `core` to `fileCollections` project.

    • -821
    • +0
    ./FilePropertiesIntegrationTest.groovy
  1. … 3 more files in changeset.
Move some integration tests from `core` to `fileCollections` project.

    • -821
    • +0
    ./FilePropertiesIntegrationTest.groovy
  1. … 3 more files in changeset.
Move some integration tests from `core` to `fileCollections` project.

    • -821
    • +0
    ./FilePropertiesIntegrationTest.groovy
  1. … 3 more files in changeset.
Fixes for previous commit.

    • -18
    • +22
    ./FilePropertiesIntegrationTest.groovy
  1. … 5 more files in changeset.
Fixes for previous commit.

    • -18
    • +22
    ./FilePropertiesIntegrationTest.groovy
  1. … 5 more files in changeset.
Fail rather than emitting a deprecation warning when the value of a `Property` typed task property is changed after the task starts execution.

Also include the property display name, if attached, in the 'cannot change the value' error messages.

    • -18
    • +22
    ./FilePropertiesIntegrationTest.groovy
  1. … 25 more files in changeset.
Fail rather than emitting a deprecation warning when the value of a `Property` typed task property is changed after the task starts execution.

Also include the property display name, if attached, in the 'cannot change the value' error messages.

    • -18
    • +22
    ./FilePropertiesIntegrationTest.groovy
  1. … 25 more files in changeset.
Fail rather than emitting a deprecation warning when the value of a `Property` typed task property is changed after the task starts execution.

Also include the property display name, if attached, in the 'cannot change the value' error messages.

    • -18
    • +22
    ./FilePropertiesIntegrationTest.groovy
  1. … 25 more files in changeset.
Remove deprecated ProjectLayout and DefaultTask methods

    • -61
    • +16
    ./FilePropertiesIntegrationTest.groovy
  1. … 4 more files in changeset.
Remove deprecated ProjectLayout and DefaultTask methods

    • -61
    • +16
    ./FilePropertiesIntegrationTest.groovy
  1. … 4 more files in changeset.
Remove deprecated ProjectLayout and DefaultTask methods

    • -61
    • +16
    ./FilePropertiesIntegrationTest.groovy
  1. … 4 more files in changeset.
Remove deprecated ProjectLayout and DefaultTask methods

    • -61
    • +16
    ./FilePropertiesIntegrationTest.groovy
  1. … 4 more files in changeset.
Providers created using `orElse()` honor producer task dependencies.

    • -42
    • +0
    ./FilePropertiesIntegrationTest.groovy
  1. … 2 more files in changeset.
Providers created using `orElse()` honor producer task dependencies.

    • -42
    • +0
    ./FilePropertiesIntegrationTest.groovy
  1. … 2 more files in changeset.
Providers created using `orElse()` honor producer task dependencies.

    • -42
    • +0
    ./FilePropertiesIntegrationTest.groovy
  1. … 2 more files in changeset.
Changed a bunch of integration tests to use the various task assertion methods instead of directly querying the `executedTasks` and `skippedTasks` collections. These methods can give better diagnostics when the assertion fails, and can perform additional checks.

    • -1
    • +1
    ./FilePropertiesIntegrationTest.groovy
  1. … 50 more files in changeset.
Changed a bunch of integration tests to use the various task assertion methods instead of directly querying the `executedTasks` and `skippedTasks` collections. These methods can give better diagnostics when the assertion fails, and can perform additional checks.

    • -1
    • +1
    ./FilePropertiesIntegrationTest.groovy
  1. … 98 more files in changeset.
Changed a bunch of integration tests to use the various task assertion methods instead of directly querying the `executedTasks` and `skippedTasks` collections. These methods can give better diagnostics when the assertion fails, and can perform additional checks.

    • -1
    • +1
    ./FilePropertiesIntegrationTest.groovy
  1. … 98 more files in changeset.
Changed a bunch of integration tests to use the various task assertion methods instead of directly querying the `executedTasks` and `skippedTasks` collections. These methods can give better diagnostics when the assertion fails, and can perform additional checks.

    • -1
    • +1
    ./FilePropertiesIntegrationTest.groovy
  1. … 50 more files in changeset.
Changed a bunch of integration tests to use the various task assertion methods instead of directly querying the `executedTasks` and `skippedTasks` collections. These methods can give better diagnostics when the assertion fails, and can perform additional checks.

    • -1
    • +1
    ./FilePropertiesIntegrationTest.groovy
  1. … 98 more files in changeset.
Fix null handling of DirectoryProperty/RegularFileProperty.set(File)

Previously, we failed in a strange way if you explicitly called set(File) with a null.

set(Directory) or set(RegularFile) were OK.

    • -0
    • +21
    ./FilePropertiesIntegrationTest.groovy
  1. … 4 more files in changeset.
Fix null handling of DirectoryProperty/RegularFileProperty.set(File)

Previously, we failed in a strange way if you explicitly called set(File) with a null.

set(Directory) or set(RegularFile) were OK.

    • -0
    • +21
    ./FilePropertiesIntegrationTest.groovy
  1. … 4 more files in changeset.
Fix null handling of DirectoryProperty/RegularFileProperty.set(File)

Previously, we failed in a strange way if you explicitly called set(File) with a null.

set(Directory) or set(RegularFile) were OK.

    • -0
    • +21
    ./FilePropertiesIntegrationTest.groovy
  1. … 3 more files in changeset.
Deprecate `ProjectLayout.configurableFiles()` as it is replaced by `ObjectFactory.fileCollection()`. Also replace usages of internal `FileOperations.configurableFiles()` method with the public API.

    • -1
    • +1
    ./FilePropertiesIntegrationTest.groovy
  1. … 27 more files in changeset.
Deprecate `ProjectLayout.configurableFiles()` as it is replaced by `ObjectFactory.fileCollection()`. Also replace usages of internal `FileOperations.configurableFiles()` method with the public API.

    • -1
    • +1
    ./FilePropertiesIntegrationTest.groovy
  1. … 27 more files in changeset.
Change some plugins, tests and samples to use service injection into extensions rather than passing the services explicitly to `create()`.

    • -4
    • +4
    ./FilePropertiesIntegrationTest.groovy
  1. … 8 more files in changeset.
Finalize the value of any task `@OutputFiles` and `@OutputDirectories` property whose getter returns a property instance, at the start of execution of the task.

    • -0
    • +62
    ./FilePropertiesIntegrationTest.groovy
  1. … 4 more files in changeset.
Finalize the value of any task `@InputFile`, `@InputDirectory`, `@InputFiles`, `@OutputFile` and `@OutputDirectory` property whose getter returns a property instance, at the start of execution of the task.

This means that the property value will not change once the task has started execution, so that the same value is always used during fingerprinting, cache key calculation, validation, when queried by a task action, and so on.

    • -81
    • +147
    ./FilePropertiesIntegrationTest.groovy
  1. … 10 more files in changeset.
Finalize the value of any task `@Input` property whose getter returns a property instance, at the start of execution of the task.

This means that the property value will not change once the task has started execution, so that the same value is always used during fingerprinting, cache key calculation, validation, when queried by a task action, and so on.

This behaviour only applies to `@Input` properties in this commit. This was just a place to start. Other properties will be added in later commits.

Changes to the property are ignored once the value is finalized implicitly in this way and generate a deprecation warning instead of failing, as would happen after `finalizeValue()` is called. This allows a migration path for task types that can add a new property to represent some input and keep their existing lenient (but now deprecated) behaviour for an existing property backed by the new property. It might prove better to flip this around, let's see.

    • -1
    • +1
    ./FilePropertiesIntegrationTest.groovy
  1. … 61 more files in changeset.