ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sebastien Blanc <>
Subject Re: fileset with multiple source directories?
Date Mon, 12 May 2003 19:46:30 GMT
> 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:
<path id="path1">
<fileset dir="dir1">
<path id="path2">
<fileset dir="dir2">
<pathconvert property="p1" refid="path1">
<pathconvert property="p2" refid="path2">
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)

View raw message