Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 40499 invoked from network); 4 Jul 2009 04:27:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 4 Jul 2009 04:27:06 -0000 Received: (qmail 44785 invoked by uid 500); 4 Jul 2009 04:27:15 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 44647 invoked by uid 500); 4 Jul 2009 04:27:14 -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 44637 invoked by uid 99); 4 Jul 2009 04:27:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Jul 2009 04:27:13 +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: domain of mithungonsalvez@gmail.com designates 74.125.92.146 as permitted sender) Received: from [74.125.92.146] (HELO qw-out-1920.google.com) (74.125.92.146) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 04 Jul 2009 04:27:04 +0000 Received: by qw-out-1920.google.com with SMTP id 4so1208005qwk.10 for ; Fri, 03 Jul 2009 21:26:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=qkZjtF2iORZbtVlBarV27aepj1w1Q5F6Hpw+iROG7EQ=; b=ckP001PZBK8yvkT52i5XxZLu+KEXg+W5/5MeN5oNfPCoZn390ruID/Ch+ZeqrSK+81 Jt5SA/bGjnSwO3/zcoGWY0BnsrToeJeMfp8LVm7YP+crSeSXHzoJhI5sDJnUGDXFzccG WZ1Qq3VjfSpdY/1SoGHzGzOgXgzf7v4joOGlU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=i+UyPVL3MT+lODXH47iJ7YRbXEoZ+FxyyBMM/pu7ILRZEVBFuSnS95R+RlUNo4YblJ CIHHz5HY+CfHl/Y2qM2dT/TgEq550muGmTcTdqTkIU1U8k5LzbtGZ5Nbk2hiammb4nzY J7MdgpRwqWlf98dslFpl4/RzBx2L3r3Y89liU= MIME-Version: 1.0 Received: by 10.229.82.83 with SMTP id a19mr1524240qcl.42.1246681216360; Fri, 03 Jul 2009 21:20:16 -0700 (PDT) In-Reply-To: <255d8d690906240708l5c505df6o74a40f2740f57247@mail.gmail.com> References: <2929d2fb0906230555j6f692b84oaf0dddf8260d979b@mail.gmail.com> <255d8d690906230805n4723e244pc5ba6391248508d5@mail.gmail.com> <2929d2fb0906240346m2dacda1scb119212c0eb4a3a@mail.gmail.com> <255d8d690906240708l5c505df6o74a40f2740f57247@mail.gmail.com> Date: Sat, 4 Jul 2009 09:50:16 +0530 Message-ID: <2929d2fb0907032120s7462c544u49e3eca8509edb8e@mail.gmail.com> Subject: Re: Problem Reusing Condition API From: Mithun Gonsalvez To: Ant Users List Content-Type: multipart/alternative; boundary=00163646d5c40ca486046dd997bf X-Virus-Checked: Checked by ClamAV on apache.org --00163646d5c40ca486046dd997bf Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi Dominique, Sorry for the extremely late reply... Thanks to your inputs, I was able to pull it off :) Thank You, Mithun Gonsalvez On Wed, Jun 24, 2009 at 7:38 PM, Dominique Devienne wrote: > On Wed, Jun 24, 2009 at 5:46 AM, Mithun > Gonsalvez wrote: > >> This adds a nested tag, while you add a one. > >> You need to have an add() method instead. I don't recall the exact rules > though. > > The tag when evaluated to true, will set a property [which i > > want to avoid] > > Instead i would like to evaluate the conditions and take another action. > > Currently I am adding methods specific to different Condition Types, as > you > > have mentioned. > > That's what I was trying to tell you, but terminology got in the way. > There's the task (ConditionTask), and there's Condition > the interface implemented by all conditions. > > If you have a void add(Condition c) method in your task, this makes your > task accept any nested tags with 'is a' Condition automatically. That's > one of the newer introspection rule added by Peter Reilly in Ant 1.6, > which is more generic that the older addTag/addConfiguredTag rules, > which only accept a nested . --DD > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > > --00163646d5c40ca486046dd997bf--