Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 35758 invoked from network); 16 Aug 2005 16:46:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Aug 2005 16:46:24 -0000 Received: (qmail 50860 invoked by uid 500); 16 Aug 2005 16:46:19 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 50585 invoked by uid 500); 16 Aug 2005 16:46:17 -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 50551 invoked by uid 99); 16 Aug 2005 16:46:17 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Aug 2005 09:46:17 -0700 X-ASF-Spam-Status: No, hits=0.2 required=10.0 tests=NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [193.109.238.66] (HELO dnsinet.rzf-nrw.de) (193.109.238.66) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Aug 2005 09:46:36 -0700 Received: from z011100.bk.fin.local (z011104.bk.fin.local [172.18.101.140]) by dnsinet.rzf-nrw.de (8.12.10/8.12.10) with ESMTP id j7GGjk0V014743 for ; Tue, 16 Aug 2005 18:45:46 +0200 Received: from z011134.bk.fin.local ([130.11.7.134]) by z011100.bk.fin.local with Microsoft SMTPSVC(6.0.3790.0); Tue, 16 Aug 2005 18:45:48 +0200 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.5.7226.0 Subject: AW: Pattern matching the value of a property Date: Tue, 16 Aug 2005 18:45:48 +0200 Message-ID: <3CD9A35A043C094EA8773DBB698E801B0376D0F7@z011134.bk.fin.local> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Pattern matching the value of a property Thread-Index: AcWif1102wq/ifZYTqeEPXdpcYTA+wAAleMw From: To: X-OriginalArrivalTime: 16 Aug 2005 16:45:48.0922 (UTC) FILETIME=[F4AA75A0:01C5A281] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N AntContrib Just a quick shot ... Jan =20 >-----Urspr=FCngliche Nachricht----- >Von: Bailey, David [mailto:David.Bailey@pearson.com]=20 >Gesendet: Dienstag, 16. August 2005 18:28 >An: 'user@ant.apache.org' >Betreff: Pattern matching the value of a property > > >I have a wrapper which expects to receive a version string=20 >(\d{1}\.\d{1}\.\d{1-2}), and pass it to Ant as a=20 >-DPROPERTY=3DVALUE pair. I want to perform validation on the=20 >version string to insure that it actually matches the=20 >specified pattern. > >So far as I am aware, I can't do this validation in the=20 >wrapper (I'm bound by a Windows .bat file), but I believe I=20 >can do it in Ant. However, all of the documentation I've read=20 >only concerns pattern matching in either file names or file=20 >contents. Is there a task in the Ant canon, either the 'core' >tasks or the 'optional' tasks, which will do this for me? > >For that matter, if anyone out there is a whiz at .bat files=20 >and can explain to me how to do the validation there, I'll be=20 >happy with that, too. > >Thanks, >--dave > >*************************************************************** >************* >This email may contain confidential material.=20 >If you were not an intended recipient, >Please notify the sender and delete all copies.=20 >We may monitor email to and from our network.=20 >*************************************************************** >************* > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org