[GRADLE-971] fileMode not working for the copy task Created: 10/Jun/10 Updated: 04/Jan/13 Resolved: 16/Mar/12 |
|
Status: | Resolved |
Project: | Gradle |
Affects Version/s: | 0.9 |
Fix Version/s: | 1.0-rc-1 |
Type: | Bug | ||
Reporter: | Marc Guillemot | Assignee: | Unassigned |
Resolution: | Fixed | Votes: | 11 |
Description |
Copy's fileMode settings has no effect. Example: } No matter which value is used (as long as it is an integer), the copied file has always the default mode. |
Comments |
Comment by Philip Crotwell [ 29/Sep/10 ] |
|
Comment by Lars Hvile [ 15/Feb/12 ] |
This issue has been fixed in https://github.com/gradle/gradle/pull/62. Related to |
Comment by Peter Niederwieser [ 15/Feb/12 ] |
Comment by René Gröschke (Inactive) [ 15/Mar/12 ] |
Joern Huxhorn reported on the mailing list, that this bug isn't fixed yet. The original mail: ------------- But if I remove the doLast-workaround at https://github.com/huxi/lilith/blob/6677657bb4c9ce710d3dd2a95d61fd97fd64f7e8/config.gradle#L601 the file does still have 644 instead of 755 as permission. I'm not sure how to proceed… should I reopen ------------------------------------------------------------ Gradle build time: Tuesday, March 13, 2012 4:10:09 PM UTC Or is there anything I'm missing? I assumed that this should be fixed now. The tar task using the exact sam copyspec is working as expected. Cheers, I've added a integration test to reproduce this error. (https://github.com/gradle/gradle/commit/b3e2c2a88c1e786b76b8414388037ade63c0d549) |
Comment by Peter Niederwieser [ 15/Mar/12 ] |
Maybe it's only fixed for the task but not for the method. |
Comment by René Gröschke (Inactive) [ 16/Mar/12 ] |
No it was failing for the task and the method as tested in https://github.com/gradle/gradle/blob/master/subprojects/core/src/integTest/groovy/org/gradle/api/tasks/CopyPermissionsIntegrationTest.groovy. |
Comment by Pablo Munoz [ 20/Mar/12 ] |
Te suggested workaround does not work for zip tasks. task copy(type:Copy){ Is there a workaround for zip tasks? |
Comment by René Gröschke (Inactive) [ 20/Mar/12 ] |
Hello Pablo, |
Comment by Pablo Munoz [ 14/May/12 ] |
Sorry, didn't see this until now. I believe we were using an earlier version. Will retest with M9 or later. Just wanted to confirm the fix would also apply to the zip tasks. |