From user-return-70632-apmail-ant-user-archive=ant.apache.org@ant.apache.org Thu Jul 01 12:31:32 2010 Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 95628 invoked from network); 1 Jul 2010 12:31:32 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 1 Jul 2010 12:31:32 -0000 Received: (qmail 42601 invoked by uid 500); 1 Jul 2010 12:31:31 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 42215 invoked by uid 500); 1 Jul 2010 12:31:29 -0000 Mailing-List: contact user-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Users List" Reply-To: "Ant Users List" Delivered-To: mailing list user@ant.apache.org Received: (qmail 42207 invoked by uid 99); 1 Jul 2010 12:31:28 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Jul 2010 12:31:28 +0000 X-ASF-Spam-Status: No, hits=0.7 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [88.84.128.168] (HELO samaflost.de) (88.84.128.168) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Jul 2010 12:31:21 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by samaflost.de (Postfix) with ESMTP id 49F7628985D1 for ; Thu, 1 Jul 2010 14:30:30 +0200 (CEST) Received: from samaflost.de ([127.0.0.1]) by localhost (v35516.1blu.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wr+qA-6Gdoo4 for ; Thu, 1 Jul 2010 14:30:27 +0200 (CEST) Received: by samaflost.de (Postfix, from userid 1000) id 2301E28985D2; Thu, 1 Jul 2010 14:30:23 +0200 (CEST) From: Stefan Bodewig To: user@ant.apache.org Subject: Re: Ant 1.8 unzip does not preserve permissions! References: X-Draft-From: ("nnfolder:mail.jakarta-ant-user" 68139) Date: Thu, 01 Jul 2010 14:30:21 +0200 In-Reply-To: (ilke Muhtaroglu's message of "Thu, 1 Jul 2010 13:13:10 +0300") Message-ID: <87wrtfcrky.fsf@v35516.1blu.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked by ClamAV on apache.org On 2010-07-01, ilke Muhtaroglu wrote: > When I unzip with ant command > > I see the resulting directory does not have the permissions preserved in > linux environment. This is true. The unzip task doesn't do anything with permissions and the manual page even says so ,---- | File permissions will not be restored on extracted files. `---- > At http://ant.apache.org/manual/Tasks/zip.html I see there is an option > "preserve0permissions"... It is the zip task, not the unzip task. And it applies to permissions read from a different archive when you use the zip task to repackage/merge archives. Ant is capable of dealing with permissions inside ZIP and TAR archives but not on the file system. The latter isn't going to change until the tasks can run on NIO2 and Java7 because the Java File API currently simply doesn't provide the means we'd need. Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org