[GRADLE-3538] Up-to-date checks info log doesn't show proper name of @OutputDirectories property Created: 29/Aug/16  Updated: 29/Aug/16  Resolved: 29/Aug/16

Status: Resolved
Project: Gradle
Affects Version/s: 3.0
Fix Version/s: 3.1-rc-1

Type: Bug
Reporter: Stefan Oehme (Inactive) Assignee: Lóránt Pintér
Resolution: Fixed Votes: 0

Attachments: Zip Archive xcore-example.zip    

 Description   

With a task declared like this:

class MyTask extends DefaultTask {
  @OutputDirectories Set<File> outputDirectories

  // ...
}

INFO logs print messages with a pseudo property name ($1):

Output property '$1$3' file /Users/lptr/Workspace/gradle/bugs/output-directories-naming/build/codegen/main has been added.

Instead, the message should be displayed with the real property name:

Output property 'outputDirectory$3' file /Users/lptr/Workspace/gradle/bugs/output-directories-naming/build/codegen/main has been added.


 Comments   
Comment by Lóránt Pintér [ 29/Aug/16 ]

Running ./gradlew generateXtext --info multiple times will produce the following message:

:generateXtext
Executing task ':generateXtext' (up-to-date check took 0.028 secs) due to:
  Output property '$1$3' file /Users/lptr/Workspace/gradle/bugs/output-directories-naming/build/codegen/main has been added.
  Output property '$1$3' file /Users/lptr/Workspace/gradle/bugs/output-directories-naming/build/xcore/main has been removed.
  Output property '$1$3' file /Users/lptr/Workspace/gradle/bugs/output-directories-naming/build/xcore/main/org/palador/xcoreexample/material/impl/MaterialPackageImpl.java has been removed.
Generated at Wed Jun 30 12:51:25 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.