ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <>
Subject Re: Copying a static list of files
Date Fri, 25 Jun 2010 14:08:44 GMT
On 2010-06-25, Patrick Martin wrote:

> This looks really promising! How do you use it with copy?

<resourcelist> is a resource collection, you can use it everywhere where
Ant supports them.


In particular you can use it as a nested element of <copy> directly.

> where is the equivalent of the "dir" attribute of <fileset> or
> <filelist>?

There is none.  Do you need one?

If all your path's are relative to a common dir ${dir} and you have
those relative path inside a file "myfiles.txt" you'd do something like

<copy ...>
    <file file="myfiles.txt"/>
    <prefixlines prefix="${dir}/"/>

to turn your relative paths into absolute paths.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message