[GRADLE-2906] Change to CopySpec#eachFile(Closure) behaviour in gradle 1.8 Created: 30/Sep/13  Updated: 06/Oct/13  Resolved: 06/Oct/13

Status: Resolved
Project: Gradle
Affects Version/s: None
Fix Version/s: 1.9-rc-1

Type: Bug
Reporter: Gradle Forums Assignee: Benjamin Muschko
Resolution: Fixed Votes: 0

Known Issue Of:
1.8

 Description   

Hi,

Given the following task:

task copyFiles(type:Copy) {
from 'src'
into "${buildDir}"
eachFile

{ println it.file }

}

and the following file:

src/conf/file.properties

In Gradle 1.8 the eachFile closure gets called for each parent directory:

:copyFiles

src\conf

src\conf\file.properties

Whereas when I run the task in Gradle 1.6, I get the following output:

:copyFiles

src\conf\file.properties

I couldn't see anything in the 1.7/1.8 release notes to suggest this was an intentional change.



 Comments   
Comment by Gradle Forums [ 30/Sep/13 ]

It's a known issue with 1.8.

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