Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 78598 invoked from network); 21 Feb 2008 01:26:27 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Feb 2008 01:26:27 -0000 Received: (qmail 57334 invoked by uid 500); 21 Feb 2008 01:26:19 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 57297 invoked by uid 500); 21 Feb 2008 01:26:19 -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 57283 invoked by uid 99); 21 Feb 2008 01:26:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Feb 2008 17:26:19 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [17.148.16.67] (HELO smtpoutm.mac.com) (17.148.16.67) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 21 Feb 2008 01:25:33 +0000 Received: from mac.com (asmtp007-s [10.150.69.70]) by smtpoutm.mac.com (Xserve/smtpout004/MantshX 4.0) with ESMTP id m1L1PrSs023427 for ; Wed, 20 Feb 2008 17:25:53 -0800 (PST) Received: from [10.0.1.215] (adsl-76-201-170-25.dsl.pltn13.sbcglobal.net [76.201.170.25]) (authenticated bits=0) by mac.com (Xserve/asmtp007/MantshX 4.0) with ESMTP id m1L1Ppl4028662 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NO) for ; Wed, 20 Feb 2008 17:25:52 -0800 (PST) Message-Id: <93D1FF70-B5E6-4302-9925-265D3AB8C0E4@mac.com> From: "Paul J. Lucas" To: Ant Users List In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v919.2) Subject: Re: Filter on copy with directory contents X-Priority: 3 Date: Wed, 20 Feb 2008 17:25:50 -0800 References: <24F14A45-4C38-4DBB-86B2-ECADD3321FAC@mac.com> X-Mailer: Apple Mail (2.919.2) X-Virus-Checked: Checked by ClamAV on apache.org On Feb 20, 2008, at 4:48 PM, Martin Gainty wrote: > Here is the source for input.java Uhm... look: I suppose I appreciate that some effort is being undertaken, but: 1. The source-code you pasted is unreadable as-is. 2. Again, I'm looking for an all-ant solution. If ant isn't powerful enough to do what I want, then that's a reasonable answer. 3. Your solution still doesn't solve my problem. a) The string "REPLACEME" shouldn't be hard-coded; the string to replace should be specified in the ant build.xml file. (I would have thought using a string like "REPLACEME" would have obviously appeared pedagogical.) b) It doesn't limit the directory names matched to a specific glob pattern. c) It doesn't wrap each directory name with . (The transformation should also be specified in the build.xml and not hard- coded.) The solution, if one exists, would use , , , and somehow getting the contents of a directory into a string, say a property. Once in a string, a regex replacement can be done on it. - Paul --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org