Return-Path: Delivered-To: apmail-jakarta-ant-dev-archive@apache.org Received: (qmail 58526 invoked from network); 5 Dec 2002 03:47:49 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 5 Dec 2002 03:47:49 -0000 Received: (qmail 24030 invoked by uid 97); 5 Dec 2002 03:49:00 -0000 Delivered-To: qmlist-jakarta-archive-ant-dev@jakarta.apache.org Received: (qmail 23996 invoked by uid 97); 5 Dec 2002 03:48:59 -0000 Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 23980 invoked by uid 98); 5 Dec 2002 03:48:59 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Date: Wed, 04 Dec 2002 22:47:48 -0500 From: Bill Burton Subject: Re: Any chance to have to preserve file permissions? To: Ant Developers List Message-id: <3DEECC64.9030608@progress.com> Organization: Progress Software Corporation MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT X-Accept-Language: en-us, en User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.1) Gecko/20020826 References: X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Hello, Since it seems you only need to determine if the executable bit needs to be preserved, maybe you could write a Perl script that given a source directory, a list of files in that directory and a target directory will find all the executable files and chmod the corresponding target file. You could then call that script from after your where preserving execute permissions is required. Another option is to write a task that supports some subset of the task but runs the cp command to perform the copies. -Bill Alexey Solofnenko wrote: > I do not know about you, but I need to be able to copy executable files > regardless how difficult it can be to implement. It is a basic > functionality. Sometimes I wonder if people really use some products. > > - Alexey. > > -- > { http://trelony.cjb.net/ } Alexey N. Solofnenko > Pleasant Hill, CA (GMT-8 usually) > > -----Original Message----- > From: Steve Loughran [mailto:steve_l@iseran.com] > Sent: Wednesday, December 04, 2002 9:31 AM > To: Ant Developers List > Subject: Re: Any chance to have to preserve file permissions? > > > > > ----- Original Message ----- > From: "Ken Wood" > To: "Ant Developers List" > Sent: Tuesday, December 03, 2002 7:44 PM > Subject: Re: Any chance to have to preserve file permissions? > > > >>Yes, everyone wishes ant could copy files on unix and >>preserve permissions. But, java doesn't recognize those >>permissions, so the copy cannot preserve them - it can't >>preserve something it does not see. >> >>You can use 'exec' to run 'cp' and preserve permissions... >> >>Alexey Solofnenko wrote: >> >>>Fair enough. But don't you think it might be really important to be able >> > to > >>>copy executable files on Unix? >>> >>>- Alexey. >> > > At some point in the future, ant is bound add ant-native tasks where we do > our own JNI wrappers to do things not possible before: symlink work, getting > at permissions, maybe some more. But it would a dog to try and port, build, > test all that stuff for all the platforms ant supports, which is why I am > not in a rush to do it. > > -steve -- To unsubscribe, e-mail: For additional commands, e-mail: