Return-Path: Mailing-List: contact ant-user-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-user@jakarta.apache.org Received: (qmail 14775 invoked from network); 7 Aug 2000 13:56:49 -0000 Received: from public.ndh.net (HELO public.ndh.com) (195.94.90.21) by locus.apache.org with SMTP; 7 Aug 2000 13:56:49 -0000 Received: from sbodewig.bost.de ([195.227.98.11]) by public.ndh.com (8.9.3/8.8.0) with ESMTP id PAA21911 for ; Mon, 7 Aug 2000 15:56:46 +0200 (MET DST) Received: (from bodewig@localhost) by sbodewig.bost.de (8.9.3/8.9.3) id PAA10404; Mon, 7 Aug 2000 15:56:47 +0200 X-Authentication-Warning: sbodewig.bost.de: bodewig set sender to bodewig@bost.de using -f To: ant-user@jakarta.apache.org Subject: Re: Nested property expansion... References: <007501c00068$9e5d7e60$0100000a@patronix.com> From: Stefan Bodewig Date: 07 Aug 2000 15:56:46 +0200 In-Reply-To: "Scotte Zinn"'s message of "Mon, 7 Aug 2000 08:11:28 -0400" Message-ID: Lines: 23 User-Agent: Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Capitol Reef) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N >>>>> "SZ" == Scotte Zinn writes: SZ> I don't know if there is a Java/Ant equivalent, but DMake had SZ> this nested macro ability. It made making multi-platform SZ> makefiles easy to do. For example, if you had different CFLAGS SZ> for each of the platforms, you would use: SZ> $(CFLAGS_$(PLATFORM)) I think I get the idea, but probably this would be solved with attributes to tasks, much like which generates -J-mx128m in JDK 1.1 and -J-Xmx128m in JDK >=1.2. What I'm trying to say is that the task can detect which platform it is running on and choose the right arguments itself. We might get into trouble with tasks but at the moment we are still rather Java centric. Stefan