Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 70694 invoked from network); 19 Aug 2008 14:09:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Aug 2008 14:09:26 -0000 Received: (qmail 73443 invoked by uid 500); 19 Aug 2008 14:09:20 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 73414 invoked by uid 500); 19 Aug 2008 14:09:20 -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 73403 invoked by uid 99); 19 Aug 2008 14:09:20 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Aug 2008 07:09:20 -0700 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS,WHOIS_MYPRIVREG X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of evgeny.zislis@gmail.com designates 216.239.58.191 as permitted sender) Received: from [216.239.58.191] (HELO gv-out-0910.google.com) (216.239.58.191) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Aug 2008 14:08:22 +0000 Received: by gv-out-0910.google.com with SMTP id n29so649252gve.16 for ; Tue, 19 Aug 2008 07:08:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type:references; bh=2+q+AzqecnQdxXoCc7ym1gVwk7AhenNJlUylz55wvVw=; b=Fkk3nsGKDHvR6cImlSJuuI0a/uvngzlLL2JU++K9Ji099b701kKZuHBkeXgCRj7ael w1af4JnQUijKdSHdvrM3dvOmt0EN0MZTf5GP2mrwZ04d7th5gEPG27jdfXXlShK4aN0M mzYbp2h5W2n5Z0vjr6POovagSwTH0jWYDt5rc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:references; b=o0jAPM3tc+pp3vdnMLc3cDgjQrDTwbXSFCrtQpG4F1g6vq+k0V7SyAySLOB49bD/Oy 4dM0eUCEXj4v5uoChQrvjEYRjByN7UXnwO5Ers6jBu7KnDqlsByS3eJqHEzs3YwTfK1I 7nrSMyybna8Db8TVnaqwacfljVsa9uFVtfcls= Received: by 10.103.40.5 with SMTP id s5mr4868914muj.133.1219154930236; Tue, 19 Aug 2008 07:08:50 -0700 (PDT) Received: by 10.103.176.18 with HTTP; Tue, 19 Aug 2008 07:08:50 -0700 (PDT) Message-ID: Date: Tue, 19 Aug 2008 17:08:50 +0300 From: Evgeny To: "Ant Users List" Subject: Re: Initializing Task variables at taskdef time? In-Reply-To: <19048295.post@talk.nabble.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_26915_22791974.1219154930230" References: <19048295.post@talk.nabble.com> X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_26915_22791974.1219154930230 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline You can use something like a "presetdef" to set default values for your task, and then use the presetdef when calling the task instead of the original one. Is this what you want? On Tue, Aug 19, 2008 at 3:56 PM, cowwoc wrote: > > Hi, > > This seems like such an obvious use-case but from what I read in this forum > there doesn't seem to be a way to do it... is there a way for me to pass > parameters to my custom task at taskdef (initialization time)? > > One obvious use-case is grabbing the classpath used in the taskdef during > the task execution time, but this could pretty much apply to any variable I > want to initialize *once* and reuse anytime the task is invoked. Is this > possible in Ant 1.7? > > Thank you, > Gili > -- > View this message in context: > http://www.nabble.com/Initializing-Task-variables-at-taskdef-time--tp19048295p19048295.html > Sent from the Ant - Users mailing list archive at Nabble.com. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@ant.apache.org > For additional commands, e-mail: user-help@ant.apache.org > > ------=_Part_26915_22791974.1219154930230--