Skip to content

Commit

Permalink
Let FC ElementsProvider have a changing value if built by task
Browse files Browse the repository at this point in the history
Signed-off-by: Paul Merlin <paul@gradle.com>
  • Loading branch information
eskatos committed Jun 30, 2021
1 parent 291da03 commit e553b88
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -366,12 +366,10 @@ public void visitProducerTasks(Action<? super Task> visitor) {

@Override
public ExecutionTimeValue<Set<FileSystemLocation>> calculateExecutionTimeValue() {
ExecutionTimeValue<Set<FileSystemLocation>> value = ExecutionTimeValue.fixedValue(get());
if (contentsAreBuiltByTask()) {
return value.withChangingContent();
} else {
return value;
return ExecutionTimeValue.changingValue(this);
}
return ExecutionTimeValue.fixedValue(get());
}

private boolean contentsAreBuiltByTask() {
Expand Down

0 comments on commit e553b88

Please sign in to comment.