Details
-
Type:
Bug
-
Status:
Resolved
-
Resolution: Fixed
-
Affects Version/s: 1.0-rc-1
-
Fix Version/s: None
Description
The following fails to correctly set the file mode on files ending with ".sh" in "archive.zip":
copy {
from zipTree("archive.zip")
eachFile {
if (it.getName().endsWith(".sh")) {
it.setMode(0755)
}
}
into "targetDir"
}
If the ".sh" files included in the ZIP are mode 0644, they get copied from the ZIP into "targetDir" as mode 0644, not mode 0755 as requested by the code in eachFile(). (Adding a println to the "if" condition in the eachFile closure shows that the files are getting correctly matched and having the setMode() method called, but this seems to have no effect on the copied files.)
Activity
René Gröschke
made changes -
| Field | Original Value | New Value |
|---|---|---|
| Assignee | René Gröschke [ breskeby ] |
Pivotal Tracker Integration
made changes -
| Status | Open [ 1 ] | In Progress [ 3 ] |
Pivotal Tracker Integration
made changes -
| Resolution | Fixed [ 1 ] | |
| Status | In Progress [ 3 ] | Resolved [ 5 ] |
Pivotal Tracker Integration
made changes -
| Status | Resolved [ 5 ] | Closed [ 6 ] |
Luke Daley
made changes -
| Workflow | jira with pivotal tracker [ 15672 ] | jira with pivotal tracker (no resolved, only closed) [ 17669 ] |
Luke Daley
made changes -
| Status | Closed [ 6 ] | Resolved [ 5 ] |
| Workflow | jira with pivotal tracker (no resolved, only closed) [ 17669 ] | Copy of jira with pivotal tracker (no closed, only resolved) [ 20304 ] |