Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 30311 invoked from network); 6 Jul 2007 07:07:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 Jul 2007 07:07:26 -0000 Received: (qmail 71802 invoked by uid 500); 6 Jul 2007 14:07:25 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 71756 invoked by uid 500); 6 Jul 2007 14:07:25 -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 71738 invoked by uid 99); 6 Jul 2007 14:07:25 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Jul 2007 07:07:25 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [206.190.58.164] (HELO web55115.mail.re4.yahoo.com) (206.190.58.164) by apache.org (qpsmtpd/0.29) with SMTP; Fri, 06 Jul 2007 07:07:19 -0700 Received: (qmail 89506 invoked by uid 60001); 6 Jul 2007 14:06:54 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=zsAZI47AkAN8RETuTx/IvPfwYviLNly59fweYNnObcCUiSkYGWu/6KFl7uAwdHWIQiT34fkkrhcf9TC5o0MpV+nxkrLnNDbGfjbCCZJiznxiSkzLCrWjpBDBEAEAXm4yl7rwcOcLDxCxeSIDAQ3kbptd/TaFHZHVumXcCqHpjsc=; X-YMail-OSG: BLWw5.YVM1kldOcLY.1HToT7Z3IB4jPSzgvNdb_u88p4LVrZhzI2.klRiO1IX9a9Gkw5lwxOlb71qSZdisCY4ZqvTQ_yDBaTfoihcripaHGXBWL0UoytB8RCYfKny7_rWGmtypNnf1dQX6Ga0B7yfubZFw-- Received: from [66.10.233.130] by web55115.mail.re4.yahoo.com via HTTP; Fri, 06 Jul 2007 07:06:54 PDT Date: Fri, 6 Jul 2007 07:06:54 -0700 (PDT) From: Matt Benson Subject: Re: Props Antlib To: Ant Developers List In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Message-ID: <465148.89390.qm@web55115.mail.re4.yahoo.com> X-Virus-Checked: Checked by ClamAV on apache.org --- Kevin Jackson wrote: > Hi all, > > I've just got the props antlib working within my odd > usecase. > > I'm using mvn + antrun plugin and I've installed the > patched version > of ant and the props antlib. Then in a parent pom, > I've got the > complete etc setup for the property helper > ie > > > > > I munge the property with a regexp (very nice Matt, > worked perfectly). > Finally in the child pom.xml I set the property > value that will be > munged. > > Issues I came across. > > 1- Without the ant-nodeps jar, the propertyhelper > task fails with a > ClassNotFoundException for ...Jdk14Regexp.Regexp > > I fixed this by installing this jar in my > ~/.m2/repository, and > altering the classpath for the typedef Alternately you could use the ant-apache-oro jar, I guess. :) > > 2- Munging the property directly won't work. I had > to first copy the > child property into an intermediate property and > then perform the > regexp on that - I guess this has to do with the > mvn->ant mapping in > some way - and it's not much of a hassle when you > know the workaround > Ugh! You've just discovered one more example of client code that extends PropertyHelper, in the antrun plugin... I'd better drop a note over there to read up on our related threads to get their input and find out how hard it'll be for them to manage compatibility... :( > Anyway, for my use case of removing a hardcoded svn > repo URL in the > pom/profile when it's already available in the > in > the pom, this antlib works perfectly. Glad to hear it. And ultimately I suppose it's a good thing we learn about the Maven thing sooner rather than later. -Matt > > Ta Matt, > Kev > > --------------------------------------------------------------------- > To unsubscribe, e-mail: > dev-unsubscribe@ant.apache.org > For additional commands, e-mail: > dev-help@ant.apache.org > > ____________________________________________________________________________________ Pinpoint customers who are looking for what you sell. http://searchmarketing.yahoo.com/ --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org