ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bill Winspur" <bwins...@wynnon.com>
Subject Re: <classpath >as a source for <copy> ?
Date Mon, 04 Feb 2002 20:36:21 GMT
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" <holtdl@yahoo.com>
To: "Ant Users List" <ant-user@jakarta.apache.org>
Sent: Monday, February 04, 2002 11:51 AM
Subject: Re: <classpath >as a source for <copy> ?


> --- Bill Winspur <bwinspur@wynnon.com> 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
>
> =====
> (holtdl@yahoo.com)
>
>
>
> __________________________________________________
> Do You Yahoo!?
> Great stuff seeking new owners in Yahoo! Auctions!
> http://auctions.yahoo.com
>
> --
> To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>
>
>


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message