Sorry -- been out of town for a few days... The execute bits shouldn't be lost when you tar up a file....look at this output--the executable bit is still set: (using gnu tar --- anybody know if the other versions of UNIX tar behave any differently?)
[jason@buford test]$ touch test.txt [jason@buford test]$ ls -l total 0 -rw-rw-r-- 1 jason jason 0 Nov 25 18:31 test.txt [jason@buford test]$ chmod +x test.txt [jason@buford test]$ ls -l total 0 -rwxrwxr-x 1 jason jason 0 Nov 25 18:31 test.txt [jason@buford test]$ tar -cvf test.tar test.txt test.txt [jason@buford test]$ ls -l total 20 -rw-rw-r-- 1 jason jason 10240 Nov 25 18:32 test.tar -rwxrwxr-x 1 jason jason 0 Nov 25 18:31 test.txt [jason@buford test]$ rm test.txt [jason@buford test]$ tar -xvf test.tar test.txt [jason@buford test]$ ls -la -rw-rw-r-- 1 jason jason 10240 Nov 25 18:32 test.tar -rwxrwxr-x 1 jason jason 0 Nov 25 18:31 test.txt Jason Dillon <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 11/22/2001 12:14 AM To: Dain Sundstrom <[EMAIL PROTECTED]> cc: [EMAIL PROTECTED], [EMAIL PROTECTED] Subject: RE: [JBoss-dev] Re: [jboss-docs] Is the build system too complica ted? On Wed, 21 Nov 2001, Dain Sundstrom wrote: > > java really pisses me off sometimes. why can't you get file > > perms from a > > given platform? all of this platform independence has really > > dumbed down > > the file access apis, too much in my oppinon. > > I think you can with 1.4 That would be nice. I will have to look over the changes again. > > <rant> > > it appears that there is noway with the vanilla jdk to check > > if a file is > > executable... which is really *ucking stupid if you ask me... > > but since you > > didn't well I am telling you anyways. Afterall who would > > want to execute a > > file from Java? Whatever, where do they find the people that > > design this > > crap. > > </rant> > > Doesn't ant have a chmod task. It does, but it is dependent on executing the `chmod` program. We use it to setup the perms for scripts in the output directory. Chmod in this case won't help since once we tar (or zip) up the directory those bits will be lost. --jason _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development