Return-Path: Delivered-To: apmail-ant-dev-archive@www.apache.org Received: (qmail 76794 invoked from network); 6 Jun 2006 13:19:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Jun 2006 13:19:10 -0000 Received: (qmail 10249 invoked by uid 500); 6 Jun 2006 13:19:06 -0000 Delivered-To: apmail-ant-dev-archive@ant.apache.org Received: (qmail 10211 invoked by uid 500); 6 Jun 2006 13:19:06 -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 10193 invoked by uid 99); 6 Jun 2006 13:19:05 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Jun 2006 06:19:05 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of ddevienne@gmail.com designates 66.249.82.206 as permitted sender) Received: from [66.249.82.206] (HELO wx-out-0102.google.com) (66.249.82.206) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Jun 2006 06:19:05 -0700 Received: by wx-out-0102.google.com with SMTP id i28so908887wxd for ; Tue, 06 Jun 2006 06:18:44 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=hJnhSaudF3m/gEgq3UaeaojYYcmMfvjhX4N2oPlTfQ/NscvSig9kRQlZWGwGTvDJWSynqRn5sb4xOOnKMDx5eFyM5EZagjyTu8BSikI34/KOduKGwJoJA+VcTOT5KlM9+FE3E8HOydiSHTAVyAo+XML30ISBVDQWnc+cddh4pJw= Received: by 10.70.122.15 with SMTP id u15mr5476911wxc; Tue, 06 Jun 2006 06:18:42 -0700 (PDT) Received: by 10.70.16.7 with HTTP; Tue, 6 Jun 2006 06:18:42 -0700 (PDT) Message-ID: <255d8d690606060618t7f465b97m936e831b323fd4f7@mail.gmail.com> Date: Tue, 6 Jun 2006 08:18:42 -0500 From: "Dominique Devienne" To: "Ant Developers List" Subject: Re: how to call macros dynamically? In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Is your motivation being able to have conditionals in disguise, i.e. be able to write ? Otherwise I can't see the use for this. Just curious ;-) Thanks, --DD On 6/6/06, Wolfgang H=E4felinger wrote: > Hi, > > I wonder how to implement a task (in Java) allowing me to execute > a macro. I tried to understand how it works looking into Ant's source > code, but I'm bit lost. Would be kind if someone could give me a > "roadmap" how to do it .. > > What I'm looking for is something like .. > > Assume I have a macro: > > > > .. > > > Then I want to be able to say > > > > instead of > > > > For the beginning I'm happy to call a macro without any parameters like > shown. Even better would be to be able to provide parameters as well: > > > > > > > > Any hints? > > Cheers, > Wolfgang. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org > For additional commands, e-mail: dev-help@ant.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org For additional commands, e-mail: dev-help@ant.apache.org