ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Patrick Martin <antu...@gmail.com>
Subject Re: Copying a static list of files
Date Fri, 25 Jun 2010 13:50:26 GMT
This looks really promising! How do you use it with copy? where is the
equivalent of the "dir" attribute of <fileset> or <filelist>?

On Fri, Jun 25, 2010 at 3:11 PM, Stefan Bodewig <bodewig@apache.org> wrote:
> On 2010-06-25, Michael Ludwig wrote:
>
>> Patrick Martin schrieb am 25.06.2010 um 09:06 (+0200):
>
>>> Using embedded <file name="..."/> would work if i had the list of
>>> files upfront. But I only have it at runtime.
>
>> You could probably generate at runtime an Ant file filelist.xml
>> including all the <file name="..."/> you need and then run a <subant>
>> task to do what you want.
>
> If you can generate any file at runtime, then make that a file with one
> file name per line and use <resourcelist>.  Actually you don't even need
> an external file if you can read said list from a property, something
> like
>
> <resourcelist id="files">
>  <propertyresource name="property-holding-list-of-files"/>
> </resourcelist>
>
> Stefan
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>

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


Mime
View raw message