Return-Path: Mailing-List: contact user-help@ant.apache.org; run by ezmlm Delivered-To: mailing list user@ant.apache.org Received: (qmail 41932 invoked from network); 12 May 2003 21:05:22 -0000 Received: from rwcrmhc52.attbi.com (216.148.227.88) by daedalus.apache.org with SMTP; 12 May 2003 21:05:22 -0000 Received: from nicki.visi.com (c-24-118-17-192.mn.client2.attbi.com[24.118.17.192]) by attbi.com (rwcrmhc52) with SMTP id <20030512210527052004vhbde>; Mon, 12 May 2003 21:05:27 +0000 Message-Id: <5.2.0.9.2.20030512155417.03180900@shell.visi.com> X-Sender: hoju@shell.visi.com X-Mailer: QUALCOMM Windows Eudora Version 5.2.0.9 Date: Mon, 12 May 2003 16:07:12 -0500 To: "Ant Users List" From: Jacob Kjome Subject: Re: fileset with multiple source directories? In-Reply-To: <3EBFFA16.ABECE605@alcatel.com> References: <5.2.0.9.2.20030512132831.02f210e0@cismail.creativeis.com> <5.2.0.9.2.20030512141735.031afe38@shell.visi.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=====================_455963421==.ALT" X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N --=====================_455963421==.ALT Content-Type: text/plain; charset="us-ascii"; format=flowed Ok, but how do I derive the individual directories for each fileset without looping through the colon-separated list of directories? So, from... contrib/subdir1 : contrib/subdir2 : contrib/subdir3 How to I create separate filesets corresponding to each of the dirs above? Am I missing something? And why the extra elements. The refid for is said to take a refid for a , so why not just use that directly by adding an id to each fileset? I also can't hardcode the or statements. I need to be able to run this on as many (or as few) paths as there exist colon-separated directories. Am I just being very dense today or is your solution not quite matching what I need? Jake At 02:46 PM 5/12/2003 -0500, you wrote: > > Or did you mean > > create individual filesets and then create one fileset that contains all > > those filesets? > >yes, call pathconvert for all filesets (u can create these filesets rite >?) and >incrementally build the property that concatenates all of them to have a final >property containing all the files under all ur dirs: > > > > > > >... > > >... >assign global property to p1,p2,p3 .... >then convert ur global property into a fileset using the includes attribute. >if do so, u don't need to use the foreach since ur copy task will already >be in >fileset format. >also note that if this list is directly the list of subdirs under one dir >then u >can compute it dynamically with the same dirset/pathconvert strategy, if >not then >hardcode the list (as u wd have to do anyway with for-each) >seb. > > >--------------------------------------------------------------------- >To unsubscribe, e-mail: user-unsubscribe@ant.apache.org >For additional commands, e-mail: user-help@ant.apache.org --=====================_455963421==.ALT--