Try using patternsets with the copy task. Here's one idea:-
<project name="test" default="dotest" basedir=".">
<patternset id="srcfiles" >
<include name="*.yourext"/>
</patternset>
<target name="dotest">
<copy todir="d:\temp" filtering="on">
<fileset dir="c:\">
<patternset refid="srcfiles"/>
</fileset>
<fileset dir="d:\">
<patternset refid="srcfiles"/>
</fileset>
</copy>
</target>
</project>
Devan
-----Original Message-----
From: Skip Hovsmith [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, November 20, 2001 4:24 PM
To: [EMAIL PROTECTED]
Subject: Fileset in Win2k with files from different drives?
How does one specify a <fileset> containing files from different drives on
Win2k?
Something like
<fileset dir="/" includes="c:/file1.txt,d:/file2.txt"/>
doesn't seem to work, "/" seems to refer to the root directory of the
current drive instead of the root of all drives.
What I actually want to do is to copy a comma separated list of external jar
files into a single directory. I was going to use <copy> with the flatten
attribute, but I can't get a fileset to include files from different drives.
Is there a better way?
Regards, Skip
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>