ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Bodewig <bode...@apache.org>
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.

<http://ant.apache.org/manual/Types/resources.html#resourcelist>

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 ...>
  <resourcelist>
    <file file="myfiles.txt"/>
    <prefixlines prefix="${dir}/"/>
  </resourcelist>
</copy>

to turn your relative paths into absolute paths.

Stefan

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


Mime
View raw message