Skip to content

Tasks that had empty inputs should not be annotated with UP-TO-DATE #955

@hansd

Description

@hansd

When a tasks input directories are empty or do not exists it is annotated with UP-TO-DATE in the command line output.

Expected Behavior

I find this behavior very confusing. When you don't do a clean build it suggests this task actually did work previously. In the case of a clean build it is even more confusing. How can the build output be up to date when I did a clean?

Steps to Reproduce (for bugs)

To reproduce use the samples/quickstart/java project and remove the src/test/resources directory. Here is the build scan when doing a clean build with a link to the output line: https://scans.gradle.com/s/oxyuvkpdesxvq/log#L13

Metadata

Metadata

Assignees

No one assigned

    Labels

    a:featureA new functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions