Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 61605 invoked from network); 2 Oct 2007 12:59:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Oct 2007 12:59:38 -0000 Received: (qmail 32134 invoked by uid 500); 2 Oct 2007 12:59:25 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 32102 invoked by uid 500); 2 Oct 2007 12:59:24 -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 32091 invoked by uid 99); 2 Oct 2007 12:59:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Oct 2007 05:59:24 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [193.201.183.194] (HELO sscd0001.dmz.huk.de) (193.201.183.194) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 02 Oct 2007 12:59:26 +0000 Received: from sscd0028.dmz.huk.de ([10.148.152.146]) by sscd0001.dmz.huk.de with Microsoft SMTPSVC(6.0.3790.1830); Tue, 2 Oct 2007 14:59:05 +0200 Received: by sscd0028.dmz.huk.de (Postfix, from userid 1) id 4AB175809E; Tue, 2 Oct 2007 15:01:40 +0200 (CEST) Received: from sscd0001.dmz.huk.de (sscd0001.dmz.huk.de [10.148.152.131]) by sscd0028.dmz.huk.de (Postfix) with ESMTP id 2E0E05809E for ; Tue, 2 Oct 2007 15:01:40 +0200 (CEST) Received: from sxf00001.lan.huk-coburg.de (unverified) by sscd0001.dmz.huk.de (HUK-COBURG Mailrelay2) with ESMTP id for ; Tue, 2 Oct 2007 14:59:05 +0200 Received: from VEX00130.lan.huk-coburg.de ([10.131.117.131]) by sxf00001.lan.huk-coburg.de with Microsoft SMTPSVC(6.0.3790.1830); Tue, 2 Oct 2007 14:59:03 +0200 X-MimeOLE: Produced By Microsoft Exchange V6.5 MIME-Version: 1.0 Subject: RE: how can I copy a directory of files to lower case equivalents? Date: Tue, 2 Oct 2007 14:59:04 +0200 Message-ID: <3AE93DC078AE8A41AEDA6B95DE4EB92D029DDD03@VEX00130.lan.huk-coburg.de> In-Reply-To: <47023B16.1010006@apache.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: how can I copy a directory of files to lower case equivalents? Thread-Index: AcgE8N/gD2eyQEExQjOwJODfMXz1zQAAoqQA References: <12996743.post@talk.nabble.com> <47023B16.1010006@apache.org> From: "Rebhan, Gilbert" To: "Ant Users List" X-OriginalArrivalTime: 02 Oct 2007 12:59:03.0597 (UTC) FILETIME=[023A5DD0:01C804F4] Content-class: urn:content-classes:message Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org =20 Hi, -----Original Message----- From: Steve Loughran [mailto:stevel@apache.org]=20 Sent: Tuesday, October 02, 2007 2:36 PM To: Ant Users List Subject: Re: how can I copy a directory of files to lower case equivalents? /* The ant-approved way would be a with an appropriate mapper listed as a nested element. This gives copy the mapping from input filenames to output names, lets it do the copying and dependency management as=20 normal. You just provide the renaming logic . I dont see one, but I do see in the manual the example,=20 which (ant1.7+ only) would let you do what you want in a few lines self.addMappedName(source.toLowerCase()); If you are running on java6, javascript is built in -no need for extra=20 JARs to get scripting working. Case conversion does sound like a common use case...you could always=20 write the java mapper and provide it with tests as an ant enhancement=20 bugrep. */ i found an example with beanshell in the manual of ant 1.6.5., see my previous post. But the problem is, with that snippet directorynames are lowercased too, what if i want only filenames to lowercase but not the dirnames ?! I tried to check that with your javascript mapper above, but it doesn't run for me (ant 1.6.5) Regards, Gilbert --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org