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 56C3B770A for ; Fri, 11 Nov 2011 14:32:29 +0000 (UTC) Received: (qmail 78311 invoked by uid 500); 11 Nov 2011 14:32:28 -0000 Delivered-To: apmail-ant-user-archive@ant.apache.org Received: (qmail 78259 invoked by uid 500); 11 Nov 2011 14:32:27 -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 78244 invoked by uid 99); 11 Nov 2011 14:32:27 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Nov 2011 14:32:27 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [88.84.128.168] (HELO samaflost.de) (88.84.128.168) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Nov 2011 14:32:20 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by samaflost.de (Postfix) with ESMTP id 55B4028985D1 for ; Fri, 11 Nov 2011 15:31:59 +0100 (CET) Received: from samaflost.de ([127.0.0.1]) by localhost (v35516.1blu.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id tliEBgAQY9SV for ; Fri, 11 Nov 2011 15:31:58 +0100 (CET) Received: by samaflost.de (Postfix, from userid 1000) id 6438B28985D2; Fri, 11 Nov 2011 15:31:58 +0100 (CET) From: Stefan Bodewig To: user@ant.apache.org Subject: Re: Macrodef and If References: <4EB94EBC.6030203@sas.com> <87zkg5rjcj.fsf@v35516.1blu.de> <4EBA6964.30909@sas.com> Date: Fri, 11 Nov 2011 15:31:58 +0100 In-Reply-To: <4EBA6964.30909@sas.com> (Steve Amerige's message of "Wed, 9 Nov 2011 06:52:04 -0500") Message-ID: <87k476pw69.fsf@v35516.1blu.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Virus-Checked: Checked by ClamAV on apache.org On 2011-11-09, Steve Amerige wrote: > Thanks for your reply. This won't work because the macrodef won't > have any knowledge of what to do as per my need. I have to trust you on that. > I think, therefore, my solution of having 2 macrodef elements is as > close as I can get: > > ... > ... > > So, then the question shifts a bit: in a macrodef, assuming that an > element has optional="true", is there a way to test whether the > element, in fact, is being used by the caller? I don't think so. Stefan --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@ant.apache.org For additional commands, e-mail: user-help@ant.apache.org