Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 14208 invoked from network); 12 Oct 2009 08:21:58 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Oct 2009 08:21:58 -0000 Received: (qmail 93187 invoked by uid 500); 12 Oct 2009 08:21:56 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 93102 invoked by uid 500); 12 Oct 2009 08:21:56 -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 93092 invoked by uid 99); 12 Oct 2009 08:21:56 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Oct 2009 08:21:56 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [209.85.222.193] (HELO mail-pz0-f193.google.com) (209.85.222.193) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Oct 2009 08:21:54 +0000 Received: by pzk31 with SMTP id 31so5603076pzk.28 for ; Mon, 12 Oct 2009 01:21:33 -0700 (PDT) MIME-Version: 1.0 Received: by 10.140.132.16 with SMTP id f16mr393927rvd.218.1255335693818; Mon, 12 Oct 2009 01:21:33 -0700 (PDT) In-Reply-To: <7c55bf80910112340k4230456fi9f6e4d0b827c93f5@mail.gmail.com> References: <7c55bf80910091025n7eeb2ba4rc688a330c41ddd66@mail.gmail.com> <87pr8tdx5a.fsf@v35516.1blu.de> <7c55bf80910112326p17c8129bi44b433fe36f5de4e@mail.gmail.com> <7c55bf80910112340k4230456fi9f6e4d0b827c93f5@mail.gmail.com> Date: Mon, 12 Oct 2009 10:21:33 +0200 Message-ID: <7c55bf80910120121h5a3a620vab7ff4a54d9fdce7@mail.gmail.com> Subject: Re: regexp-type doesn't work as expected/(advertised?) From: Francis GALIEGUE To: Ant Users List Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Mon, Oct 12, 2009 at 08:40, Francis GALIEGUE wrote: [...] > > Let me be more precise about that. > > If I: > > echo t.xml | sed 's,xml$,txt' > > I get t.txt as an output. As expected. > > I know that Java's .matches() method on a String is a misnomer (it > tries and matches the whole input, unlike what its name says, because > /xml$/ DOES match t.xml), but I though that ant wouldn't make this > error... > [that should have been 's,xml$,txt,', with an ending comma, but the argument still stands] I should add that ant-contrib's does not suffer from this problem. I know this since in another build system of mine, I don't use the regex mapper as I didn't know about it at the time, and it seems that I'll stick with it... --=20 Francis Galiegue ONE2TEAM Ing=C3=A9nieur syst=C3=A8me Mob : +33 (0) 683 877 875 Tel : +33 (0) 178 945 552 fge@one2team.com 40 avenue Raymond Poincar=C3=A9 75116 Paris --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org