[GRADLE-3569] Copy/Tar/Zip-like tasks: rename(Closure) no longer honors contract Created: 28/Sep/16  Updated: 28/Sep/16  Resolved: 28/Sep/16

Status: Resolved
Project: Gradle
Affects Version/s: 3.0, 3.1
Fix Version/s: None

Type: Bug
Reporter: Sterling Greene Assignee: Unassigned
Resolution: Duplicate Votes: 0

Issue Links:
Duplicate
Duplicates GRADLE-3568 NPE in AbstractCopyTask.rename() Resolved
Known Issue Of:
3.0, 3.1

 Description   

According to the documentation, when rename returns null when copying files, the original name of the file should be used.

https://docs.gradle.org/3.0/javadoc/org/gradle/api/tasks/AbstractCopyTask.html#rename(groovy.lang.Closure)

Since we introduced rename(Transformer), this is no longer the case.


Generated at Wed Jun 30 12:52:14 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.