Return-Path: X-Original-To: apmail-ant-user-archive@www.apache.org Delivered-To: apmail-ant-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 3DFEEDCD1 for ; Wed, 10 Oct 2012 19:11:20 +0000 (UTC) Received: (qmail 43243 invoked by uid 500); 10 Oct 2012 19:11:19 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 43209 invoked by uid 500); 10 Oct 2012 19:11:19 -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 43200 invoked by uid 99); 10 Oct 2012 19:11:19 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Oct 2012 19:11:19 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of derek.shockey@gmail.com designates 209.85.214.173 as permitted sender) Received: from [209.85.214.173] (HELO mail-ob0-f173.google.com) (209.85.214.173) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Oct 2012 19:11:07 +0000 Received: by mail-ob0-f173.google.com with SMTP id wc18so844862obb.4 for ; Wed, 10 Oct 2012 12:10:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=ZZGaWa7NusRoCZ3vdsKp6PERF+nij8yFiS0ULE+aXo8=; b=xE2dyVvS/mT4fHy/njoCH+IrsK8WW0vMQ8lDIrVkKA9paVybeS956w1Cwk8JdAyMDX 2k1uQvYaFB6OAhjAPnJlpyNb5o7ov29ikJ/sth20AFadMMCTZcXztIW2H2X2+sy3bMOR h97HvBaXHCgFR2nC1gYqClBCylX8mnh8RM0+IAEYCrP2Fh3N2lBtUfXLxEI2uxc9n3QG cbmzzoNozJhwEhtYqo6QtonELquow6d8HZCLxVJFyQijvRdgSmmv7eNidZLsEth9aQqp IOL0lfKkjhiRtLPgsI3Vz6rSuazbQYoc6XQJVjZ6pz3WLnd/EURZ//Z51PPupr7aRnQF DNsw== MIME-Version: 1.0 Received: by 10.182.10.71 with SMTP id g7mr6464917obb.84.1349896246725; Wed, 10 Oct 2012 12:10:46 -0700 (PDT) Received: by 10.182.24.169 with HTTP; Wed, 10 Oct 2012 12:10:46 -0700 (PDT) Date: Wed, 10 Oct 2012 12:10:46 -0700 Message-ID: Subject: Access value of macrodef attribute dynamically? From: Derek Shockey To: user@ant.apache.org Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hi everyone, Is there any way to access the value of a macrodef attribute dynamically with a property value? e.g. =85 If I have a property named "type" containing "A" or "B", can I get the value of the corresponding attribute? Something like @{type${type}}, but that of course doesn't work. I can't seem to find any information on nesting like this with macrodef attributes (only on nesting properties). Thanks, Derek --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org