Re: zip/tar and file permissions

2009-03-04 Thread Stefan Bodewig
On 2009-03-04, Shawn Castrianni wrote: > With these new Java 1.6 methods, there shouldn't be any excuse not > to use them in future ANT versions, right? Possible excuses: * the next version of Ant (1.8.0) will target JDK 1.4 * nobody has written the code to use the new mehods Stefan

RE: zip/tar and file permissions

2009-03-03 Thread Shawn Castrianni
M To: Ant Users List Subject: Re: zip/tar and file permissions I don't believe that tar task in Ant can be asked to simply leave file permissions alone. We have shell scripts that have the execute permission set, but keeps resetting them. You can define multiple tarfilesets, and have each one wi

RE: zip/tar and file permissions

2009-03-03 Thread Shawn Castrianni
or my needs. --- Shawn Castrianni -Original Message- From: Stefan Bodewig [mailto:bode...@apache.org] Sent: Tuesday, March 03, 2009 10:44 PM To: user@ant.apache.org Subject: Re: zip/tar and file permissions On 2009-03-03, Shawn Castrianni wrote: > Java 1.6 seems to have available: &

Re: zip/tar and file permissions

2009-03-03 Thread Stefan Bodewig
On 2009-03-03, Shawn Castrianni wrote: > Java 1.6 seems to have available: > canRead > canWrite > canExecute (new to 1.6) > setReadable (new to 1.6) > setWritable (new to 1.6) > setExecutable (new to 1.6) which is insufficient since it only get/sets the bits for the current user and not the own

Re: zip/tar and file permissions

2009-03-03 Thread David Weintraub
I don't believe that tar task in Ant can be asked to simply leave file permissions alone. We have shell scripts that have the execute permission set, but keeps resetting them. You can define multiple tarfilesets, and have each one with a different permission. Each tarfileset can even be the same

RE: zip/tar and file permissions

2009-03-03 Thread Shawn Castrianni
: Tuesday, March 03, 2009 1:14 PM To: 'Ant Users List' Subject: zip/tar and file permissions I am trying to zip or tar up some files in a platform independent way but retain file permissions if on unix. I thought I found the answer when I saw that both zipfileset and tarfileset support th

zip/tar and file permissions

2009-03-03 Thread Shawn Castrianni
I am trying to zip or tar up some files in a platform independent way but retain file permissions if on unix. I thought I found the answer when I saw that both zipfileset and tarfileset support the filemode attribute. However, I quickly discovered that this allows the file permissions to be se