Hans Dockter wrote:
one more issue:
If I create the following zip:
task permissions(type: Zip) {
baseName = "permissions"
from('foo') {
fileMode = 755
}
}
After unzipping the zip, I have the following permissions for foo: --wxrw--wx
1 hans hans 12 Nov 16 20:15 foo
You need to use octal for 755 to work, ie fileMode = 0755. You've asked
for 0363, above, which is what you got.
Perhaps an integer type is not the best option for this property. Maybe
a string would be better instead, something like fileMode = "rwxr-xr-x",
or fileMode = "ugo+x"
- Hans
--
Hans Dockter
Gradle Project Manager
http://www.gradle.org
On Nov 16, 2009, at 8:28 PM, Hans Dockter wrote:
There are some issues left with our very nice new archive handling.
usePlugin('base')
task topLevelInclude(type: Zip) {
baseName = "topLevelInclude"
include "foo"
}
task inheritInto(type: Zip) {
baseName = "inheritInfo"
into "bar"
from('foo')
}
- The topLevelInclude zip is empty. I would expect it to include foo.
- The inheritInto zip has foo as a first level file. I would expect it to be in
bar/foo.
I have attached a zip with the test project.
- Hans
--
Hans Dockter
Gradle Project Manager
http://www.gradle.org
<archivetest.zip>---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
--
Adam Murdoch
Gradle Developer
http://www.gradle.org