Thanks Diane, but this doesn't work for me because I want my ant script to be invariant, only changing the properties to customize behaviour, Bill. ----- Original Message ----- From: "Diane Holt" <[EMAIL PROTECTED]> To: "Ant Users List" <[EMAIL PROTECTED]> Sent: Monday, February 04, 2002 11:51 AM Subject: Re: <classpath >as a source for <copy> ?
> --- Bill Winspur <[EMAIL PROTECTED]> wrote: > > I would like to specify a comma-separated list of filepaths in a > > property, to parmeterize a copy command, so that it copies the files > > to a specified directory. There does not seem to be a way to do this > > in the copy command or in the fileset command. > > You can't do a comma-separated list, but you can specify a <fileset> for > each each directory you want to copy from. For example: > <target name="copyfiles"> > <copy todir="${outdir}"> > <fileset dir="${basedir}/files"> > <include name="a.file"/> > <include name="b.file"/> > </fileset> > <fileset dir="${basedir}/src"> > <include name="Foo.java"/> > </fileset> > <fileset dir="/usr/local/lib/properties"> > <include name="default.properties"/> > </fileset> > </copy> > </target> > > Diane > > ===== > ([EMAIL PROTECTED]) > > > > __________________________________________________ > Do You Yahoo!? > Great stuff seeking new owners in Yahoo! Auctions! > http://auctions.yahoo.com > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>