Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 54324 invoked from network); 12 Aug 2009 16:13:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 12 Aug 2009 16:13:52 -0000 Received: (qmail 95519 invoked by uid 500); 12 Aug 2009 16:05:49 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 95487 invoked by uid 500); 12 Aug 2009 16:05:49 -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 95477 invoked by uid 99); 12 Aug 2009 16:05:49 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Aug 2009 16:05:49 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [76.13.9.101] (HELO web65709.mail.ac4.yahoo.com) (76.13.9.101) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 12 Aug 2009 16:05:37 +0000 Received: (qmail 75367 invoked by uid 60001); 12 Aug 2009 15:46:09 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1250091969; bh=wOvnqqYs88EuIPg6zWgU1kQL3DFIftDuMgO1mFYoc2k=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=Z7P6fGWNMb78m/Qb2DMKwcHcK8OlQ1CHpQay2T1T1BjhSSJRcJ5XNF6ThqyJhBPNpy3L05azExPLBy6MSXPo8A0jQ6cuRB5/TW/Ub9KCVWOiMxcM24RgiJoRRoKmwd8R/e6Disa+qbpmE/AkBPOagV7iY/rooCbMcgOQeqkShR4= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=UxNc++z8roTEHOBld6lyDv8R6/wnut/xxgM+UNbpZaOfg6LvfaCHL7s49oh+fp6HVaQVvJCgL8Wwa7V9kw58TDYbAKztjmU6KrD9VmQHhEtAKbxuVGFS1tRlIAI9FOF592cQMF+kNA8yt1VYPHYQ3HHPdo5or8D6pNmNnHbuIvg=; Message-ID: <542123.70373.qm@web65709.mail.ac4.yahoo.com> X-YMail-OSG: PrSmgOQVM1kpR5rnCORKHky2tTFOHiZDzFPFg9geRb6pMWfp_478MShM38pKaUC1t3xd7VQFoO_C6PWKlVrkSGh5z8U_zSh.HgwyUSdT4Ac_o2BFspENiwacFdF7hcS_PInTuCEXIalLb3.sXldmIjgfjKJKxGYkcVKvJXGwnJBxbhTBnNrX2czMsXbDF9.oQ5PWK9v2zrUTBNH91MTJeLkkbyOgSioLVwQ9Nnh4xyr2IAtMysI4BSgUgjbYVHUBZbqwLFfhal5uAsh0Zb6Ih7Ag5BVW1AXSba4iLHwhjTNIVqq3W5jpeNbO9m0UVATbZhpw1r0hkg-- Received: from [66.28.53.2] by web65709.mail.ac4.yahoo.com via HTTP; Wed, 12 Aug 2009 08:46:09 PDT X-Mailer: YahooMailRC/1358.27 YahooMailWebService/0.7.338.2 References: <791409.40146.qm@web65705.mail.ac4.yahoo.com> <345520A34347BA49B798F70B218ACD1306BA1D696E@MERCMBX14.na.sas.com> <7c55bf80908120412g679f8bf4i5de0c8f50c8456ef@mail.gmail.com> <345520A34347BA49B798F70B218ACD1306BA1D69B4@MERCMBX14.na.sas.com> Date: Wed, 12 Aug 2009 08:46:09 -0700 (PDT) From: Eric Fetzer Subject: Re: If any one from list then To: Ant Users List In-Reply-To: <345520A34347BA49B798F70B218ACD1306BA1D69B4@MERCMBX14.na.sas.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1805455597-1250091969=:70373" X-Virus-Checked: Checked by ClamAV on apache.org --0-1805455597-1250091969=:70373 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable The only think I can come up with is to write a macrodef that is passed a p= ropertyName and a value to be search if it is contained within:=0A=0A1)=A0 = Take the list and add a , to the beginning and , to the end=0A2)=A0 Do a re= gex on ",${searchString},"=0A=0AIf it's there, the item is contained within= the list, set a property to "true"...=0A=0A=0A=0A=0A______________________= __________=0AFrom: Alec Fernandez =0ATo: Ant Users = List =0ASent: Wednesday, August 12, 2009 5:28:51 AM=0A= Subject: RE: If any one from list then=0A=0AExcellent point.=0A=0ADelimitin= g the items in the list may be necessary.=A0 Unfortunately, there is not a = containsregexp condition to help with separating the values from the delimi= ters and boundaries.=0A=0AScriptcondition might be a better alternative if = you have the bsf.jar and a supported language=0A=0A=0A>> -----Original Mess= age-----=0A>> From: Francis GALIEGUE [mailto:fge@one2team.com]=0A>> Sent: W= ednesday, August 12, 2009 1:12 PM=0A>> To: Ant Users List=0A>> Subject: Re:= If any one from list then=0A>> =0A>> On Wed, Aug 12, 2009 at 10:05, Alec F= ernandez=0A>> wrote:=0A>> > After spending 2 days c= onvincing myself that there was a problem=0A>> with the selecto= r only to discover that my diff tool was=0A>> lying and that one of the fil= es was indeed different (unix line ends=0A>> versus pc line ends so my edit= or was deceiving me too), I'm feeling=0A>> the need to respond :-)=0A>> >= =0A>> > I think the condition task is what you are after.=0A>> >=0A>> > =0A>> > =A0=0A>> > =A0 =A0=0A>> > =A0 =A0=0A>> > =A0=0A>> > =0A>> >=0A>> =0A>> The problem is= that if you want "foo" and the list is "foobar, baz",=0A>> the condition w= ill match.=0A>> =0A>> This is not an easy problem, admittedly. It could be = done with two=0A>> imbricated statements, but that would be an O(= n^2)=0A>> algorithm. It may, or may not, be a problem, depending on the pro= blem=0A>> size.=0A>> =0A>> --=0A>> =0A>> Francis Galiegue=0A>> ONE2TEAM=0A>= > Ing=E9nieur syst=E8me=0A>> Mob : +33 (0) 683 877 875=0A>> Tel : +33 (0) 1= 78 945 552=0A>> fge@one2team.com=0A>> 40 avenue Raymond Poincar=E9=0A>> 751= 16 Paris=0A>> =0A>> -------------------------------------------------------= --------------=0A>> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org= =0A>> For additional commands, e-mail: user-help@ant.apache.org=0A>> =0A=0A= =0A --0-1805455597-1250091969=:70373--