[GRADLE-796] Copy task should preserve file permissions Created: 12/Jan/10  Updated: 04/Jan/13  Resolved: 15/Feb/12

Status: Resolved
Project: Gradle
Affects Version/s: 0.8
Fix Version/s: 1.0-milestone-9

Type: Improvement
Reporter: Adam Murdoch Assignee: Peter Niederwieser
Resolution: Fixed Votes: 3

Attachments: File build.gradle    

 Comments   
Comment by Jochen Hinrichsen [ 23/Dec/11 ]

This feature is extremely helpful. The most annoying permission being lost during a copy is the executable flag. As of today, copying executables require painful and error prone postprocessing because the executable perm gets lost which means executables are downgraded to plain files.

JDK 7 supports POSIX permissions, so it's rather an implementation issue.

I've attached a unit test which fails for both JDK 6 and 7 invocations.

Comment by Peter Niederwieser [ 15/Feb/12 ]

merged https://github.com/gradle/gradle/pull/62

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