From dev-return-79573-apmail-ant-dev-archive=ant.apache.org@ant.apache.org Thu Jun 14 01:59:56 2007 Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 27445 invoked from network); 14 Jun 2007 01:59:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Jun 2007 01:59:55 -0000 Received: (qmail 30700 invoked by uid 500); 14 Jun 2007 01:59:57 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 30652 invoked by uid 500); 14 Jun 2007 01:59:57 -0000 Mailing-List: contact dev-help@ant.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Ant Developers List" Reply-To: "Ant Developers List" Delivered-To: mailing list dev@ant.apache.org Received: (qmail 30641 invoked by uid 99); 14 Jun 2007 01:59:57 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jun 2007 18:59:57 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of foamdino@gmail.com designates 209.85.134.191 as permitted sender) Received: from [209.85.134.191] (HELO mu-out-0910.google.com) (209.85.134.191) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jun 2007 18:59:53 -0700 Received: by mu-out-0910.google.com with SMTP id w8so411908mue for ; Wed, 13 Jun 2007 18:59:31 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Qq2EwCQhjFI8MaP7CsK356CivwQG1ANzrmSZi9Iimy8/+afzWV2X53S9E55zmGWZKbpxYutmUDRQmxqW/b3nceqD2mndHFGZq4O9bI/mF6UDMRt2C9zD/fIu/ukkkSbVVaSahc1J58EBd9YFv7FNHyH1CZmVVtsLr8KqNJ/DWwA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=FKc7pMK5oY/b1qqCEqzeTNKPBmvvhxqZN6Rs466c3vtt9TR8Wedb4PrwepTNWEZB0BUbTP/EovQxQiqs26jtu/A9J126YFNiysXpZIBIX76yszKxhmyaH8GHLmvAyZ+1ES0kekCEutOCl6Lb+tOmoJ08HubGLWPOkbtWU+pFQQ8= Received: by 10.82.136.4 with SMTP id j4mr2393322bud.1181786371771; Wed, 13 Jun 2007 18:59:31 -0700 (PDT) Received: by 10.82.151.12 with HTTP; Wed, 13 Jun 2007 18:59:31 -0700 (PDT) Message-ID: Date: Thu, 14 Jun 2007 08:59:31 +0700 From: "Kevin Jackson" To: "Ant Developers List" Subject: Re: Task for substringing? In-Reply-To: <285218.25979.qm@web55114.mail.re4.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <285218.25979.qm@web55114.mail.re4.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org Hi all, > > If there currently isn't a way of achieving this, > > then I can put > > something together for it (and get paid for it :) Well yesterday I was sick as a dog, but tuesday night I hacked together a very simple substring task (with antunit tests) on the off-chance that there wasn't a simple way of getting the result I was after... > It seems like some combination of string resources, > tokens resource collections, and regex filters might > give you substringing capabilities. This was what I was thinking, but the combination seemed to be much more complex than writing a specialized task. > Beyond that, > another idea that occurs to me is that, if you're > being paid to develop this... ;), PropertyHelpers have > been for quite some time in need of refinement as to > how a user can easily register a custom > PropertyHelper. If we could ever get this off our > plate we could close e.g. the myriad requests for > nested property resolution. How does this relate? In > that it strikes me as a natural idea that there be a > custom PropertyHelper that implements the > substringing, defaulting, etc. extensions found in the > bash shell (probably came from some other shell but I > don't feel like researching the origin just to make my > point). > Hmm, I personally haven't looked at the PropertyHelper code very much (if at all). I will have a dig around today and see what's happening in there. As I was sick yesterday, I'm behind on my other tasks, so I may not be able to work on this until next week (if I get the go-ahead from the boss to do Ant coding). Thanks for the suggestion, Kev --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org