Return-Path: Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 71261 invoked from network); 14 Dec 2000 00:53:11 -0000 Received: from cortex-gw.magna.com.au (HELO smtp.cortexebusiness.com.au) (203.174.140.214) by locus.apache.org with SMTP; 14 Dec 2000 00:53:11 -0000 Received: (from daemon@localhost) by smtp.cortexebusiness.com.au (8.10.0/8.10.0) id eBE0r7103334 for ; Thu, 14 Dec 2000 11:53:07 +1100 (EST) Received: from UNKNOWN(192.168.1.8), claiming to be "monkey.prod.thespot.com.au" via SMTP by ripley, id smtpdAAALqayEg; Thu Dec 14 11:53:04 2000 Received: (from daemon@localhost) by monkey.prod.thespot.com.au (8.10.0/8.10.0) id eBE0r4t19538 for ; Thu, 14 Dec 2000 11:53:04 +1100 (EST) Received: from UNKNOWN(192.168.1.9), claiming to be "chunky.devl.ebinteractive.com.au" via SMTP by monkey, id smtpdAAAa4ayjM; Thu Dec 14 11:53:03 2000 Received: from snotty (snotty.devl.ebinteractive.com.au [192.168.1.32]) by chunky.devl.ebinteractive.com.au (8.10.0/8.10.0) with SMTP id eBE0r2B14217 for ; Thu, 14 Dec 2000 11:53:02 +1100 (EST) From: "Conor MacNeill" To: Subject: RE: how to preserve file permissions on Date: Thu, 14 Dec 2000 11:53:58 +1100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 In-Reply-To: <20001213233227.12528.qmail@web803.mail.yahoo.com> X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N > From: Mia Takashima [mailto:m_takashima@yahoo.com] > Sent: Thursday, 14 December 2000 10:32 > To: ant-user@jakarta.apache.org > Subject: how to preserve file permissions on > > > I'm using NetBSD, and when performing a copy with ant > the executable bit is not preserved. > > I had to revert to the "cp -r" command. > I do not want to apply the chmod command on all > sub-directories, because some files do not need the > 'x' bit. > > Is there another way to do it? > No, I do not believe there is. Java, and hence ant, does not provide a way to know the file's permissions beyond simple tests such as canRead, canWrite and isHidden. More detailed information is probably considered to be OS specific. Conor