Return-Path: Mailing-List: contact ant-dev-help@jakarta.apache.org; run by ezmlm Delivered-To: mailing list ant-dev@jakarta.apache.org Received: (qmail 4968 invoked from network); 3 Apr 2000 18:47:24 -0000 Received: from out5.prserv.net (HELO prserv.net) (32.97.166.35) by locus.apache.org with SMTP; 3 Apr 2000 18:47:24 -0000 Received: from SUCCUBUS ([32.100.148.26]) by prserv.net (out5) with SMTP id <2000040318470624301p0ekoe>; Mon, 3 Apr 2000 18:47:07 +0000 Message-ID: <007901bf9d9c$fc87a3f0$0200a8c0@SUCCUBUS> Reply-To: "Scott M Stark" From: "Scott M Stark" To: References: <852568B6.00418E49.00@d54mta04.raleigh.ibm.com> Subject: Help with porting gnumake construct to Ant Date: Mon, 3 Apr 2000 11:46:54 -0700 Organization: Displayscape.com MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N I'm working on porting a gnumake based build scheme over to an Ant based scheme. One construct I can't find in Ant is defining a varible using macros. Here is an example where I build up a large classpath(THIRD_PARTY_CLASSPATH) using gnumake's foreach & subst functions. What is the analagous Ant mechanism? ### Begin gnumake Makefile stub # Define the platform classpath separator char empty := space := $(empty) $(empty) OS_TYPE := $(shell uname) ifeq ($(findstring NT,$(OS_TYPE)),NT) path_separator :=; else path_separator :=: endif # The src location of third party jar files SRC_3RDPARTY_JARS_DIR = $(JAVA_PROJ)/../vendorlibs/jars # Third party jars third_party_jars = activation.jar idate.jar imask.jar \ inumeric.jar itime.jar jcchart361J.jar jconn40.jar \ jgl.jar jhall.jar jndi_bundle.jar mail.jar sfc.jar \ ssoesapi.jar xml4j.jar third_party_src_jars = $(foreach jar,$(third_party_jars),$(SRC_3RDPARTY_JARS_DIR)/$(jar)) THIRD_PARTY_CLASSPATH = $(subst $(space),$(path_separator),$(third_party_src_jars)) ### End gnumake Makefile stub