Return-Path: Delivered-To: apmail-ant-user-archive@www.apache.org Received: (qmail 81091 invoked from network); 25 Jan 2011 21:40:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Jan 2011 21:40:22 -0000 Received: (qmail 80674 invoked by uid 500); 25 Jan 2011 21:40:21 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 80628 invoked by uid 500); 25 Jan 2011 21:40:21 -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 80620 invoked by uid 99); 25 Jan 2011 21:40:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Jan 2011 21:40:21 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of ddevienne@gmail.com designates 209.85.214.45 as permitted sender) Received: from [209.85.214.45] (HELO mail-bw0-f45.google.com) (209.85.214.45) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Jan 2011 21:40:15 +0000 Received: by bwz16 with SMTP id 16so784979bwz.4 for ; Tue, 25 Jan 2011 13:39:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type:content-transfer-encoding; bh=slx+pGyCgEa0j2sW/lNpXl4XRHWLFkKrnQTXGbPhkOE=; b=eqnvx+hcHFxxQ733eUL0ShJpQrKUxOvyeYWRfrOl1Qhf+zspmY9k2trS42wr2M7Ux9 KvKNTePNBGGX0W7L3rvUZZvEfBqi0nsSrBty8zIzcHdTpnARt+BQ5mpvE8QHkdCco9HQ vkCJp07aFSK7Hd9Iya1V9n6R2WQBvgoGH4vYg= 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:content-transfer-encoding; b=Ok/CRggt4v1oRmYPUxtaSuVqnZ5WKV0zPqFn15btnZWXeeL4UCT8Mzt0mHL+dO8M0K 8YG5QyHCFNoNYeRYznyuJOAX4t4CjJO/v6vlJP1foUERzHdIIZ5YFwYZGDYi16+YoFmI IU6we8i01UZT+qy8BuSpMLTzAIIs7nOiXBK+M= MIME-Version: 1.0 Received: by 10.204.72.137 with SMTP id m9mr5140566bkj.191.1295991593085; Tue, 25 Jan 2011 13:39:53 -0800 (PST) Received: by 10.204.56.208 with HTTP; Tue, 25 Jan 2011 13:39:53 -0800 (PST) In-Reply-To: <20110125213238.10912.qmail@server282.com> References: <4D3DB5B3.9040402@gmail.com> <20110125213238.10912.qmail@server282.com> Date: Tue, 25 Jan 2011 15:39:53 -0600 Message-ID: Subject: Re: Possible to dynamically reference a property? From: Dominique Devienne To: Ant Users List , dave.alvarado@cartridgeorder.com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On Tue, Jan 25, 2011 at 3:32 PM, wrote: > Then I pass in this command line argument to my script "-Denv=3D...". =A0= So, in my ant script, how do I dynamically access a property using the ${en= v} param? =A0For example, if "-Denv=3Ddev" is passed in to the command line= , what is a generic way of accessing the property, "dev.baseurl"? See http://ant.apache.org/faq.html#propertyvalue-as-name-for-property Thanks, --DD --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org