From user-return-55668-apmail-ant-user-archive=ant.apache.org@ant.apache.org Thu Apr 20 21:21:08 2006 Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 55375 invoked from network); 20 Apr 2006 21:21:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 20 Apr 2006 21:21:07 -0000 Received: (qmail 2537 invoked by uid 500); 20 Apr 2006 21:21:03 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 2453 invoked by uid 500); 20 Apr 2006 21:21:02 -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 2442 invoked by uid 99); 20 Apr 2006 21:21:02 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 20 Apr 2006 14:21:02 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of antoine@gmx.de designates 213.165.64.20 as permitted sender) Received: from [213.165.64.20] (HELO mail.gmx.net) (213.165.64.20) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 20 Apr 2006 14:21:02 -0700 Received: (qmail invoked by alias); 20 Apr 2006 21:20:40 -0000 Received: from 207-237-61-80.c3-0.nyr-ubr2.nyr.ny.cable.rcn.com (EHLO [192.168.11.3]) [207.237.61.80] by mail.gmx.net (mp043) with SMTP; 20 Apr 2006 23:20:40 +0200 X-Authenticated: #22961642 Message-ID: <4447FB08.9020705@gmx.de> Date: Thu, 20 Apr 2006 17:20:08 -0400 From: Antoine Levy-Lambert User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: Ant Users List Subject: Re: How to set a property based on a mapper result of another property References: <444790D7.954F.0081.0@wicourts.gov> In-Reply-To: <444790D7.954F.0081.0@wicourts.gov> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Y-GMX-Trusted: 0 X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hello Andrew, I think that ant-contrib ( a related project which can be used as an extension of ant) has good tasks for that. Regards, Antoine Andrew Goodnough wrote: > I've got a property with the value > "http://subversion/svn/ccap/BBE/branches/02_4X/BBEApp". This > property will change based on context. I want to create a new property > >from this other property that contains the value "02_4X". I'm looking > for a feature in the task that can accept a (like > the task) but works on a single property. I'm thinking it > would look something like the code below. Is there anything which > currently would do this? > > > value="http://subversion/svn/ccap/BBE/branches/02_4X/BBEApp"/> > > > > > > from="^(.*)/([^branches]+)/([^/]*)$$" to="\2"/> > > > > > > > Desired Result: > > >> Branch=02_4X >> > > > Andy > > > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org