[GRADLE-2356] Sync task from zipTree creates read only temporary files Created: 14/Jun/12  Updated: 02/Nov/15  Resolved: 02/Nov/15

Status: Resolved
Project: Gradle
Affects Version/s: 1.0
Fix Version/s: 2.9-rc-1

Type: Bug
Reporter: Steve Appling Assignee: Lari Hotari
Resolution: Fixed Votes: 2

Issue Links:
Related
Related to GRADLE-2959 zipTree unable to overwrite temporary... Resolved

 Description   

A task like the following creates a temporary directory under build that contains read only files:

task deploy(description: 'Deploys the war', type: Sync, dependsOn:war)

{ from zipTree(war.archivePath) into 'out' fileMode = 0777 }

This correctly sets the fileMode of all the files in the 'out' directory, but the files placed in build/tmp/expandedArchives are all marked as read only. This task will work the first time, but subsequent calls will fail because it can't overwrite the read only tmp files. It's not clear to me why the tmp files should be left in the build directory at all - perhaps these should just be deleted on exit.

This worked correctly for us as of Milestone 8, but causes problems in the final 1.0 release.


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