And you should ensure that you _really_ need a fileset.
2 years ago (or so) I wanted to write a new fileset and end on a selector.

Jan 

>-----Ursprüngliche Nachricht-----
>Von: Matt Benson [mailto:[EMAIL PROTECTED] 
>Gesendet: Mittwoch, 21. September 2005 17:00
>An: Ant Developers List
>Betreff: Re: Fileset and Custom Fileset in Ant 1.7
>
>--- JP Fiset <[EMAIL PROTECTED]> wrote:
>[snip]
>> Can anyone comment on the impact of those changes as to the 
>> compatibility of fileset-based tasks between 1.6 and 1.7?
>> 
>> After reviewing the code (without testing my assumptions), it looks 
>> like:
>> 1. Fileset-based tasks written to take advantage of 
>ResourceCollection 
>> instead of FileSet will not run in Ant prior to 1.7 2. Fileset-based 
>> tasks written prior to 1.7 (dependent on FileSet) will not 
>be able to 
>> support custom file sets, even if running in 1.7
>> 
>> Are my assumptions right?
>> 
>For the most part, yes.  However, depending on your needs you 
>have some options.  If your "custom fileset"
>follows basic fileset semantics you can subclass fileset and 
>use your implementation freely in version current and future 
>Ant.  See zipfileset for an example of a fileset subclass with 
>(very) different behavior from the parent.  Another option you 
>have is--if your resources will always be true files--to 
>program to the path class.  In current Ant versions a path can 
>contain fileset|dirset|filelist in addition to its own path 
>attribute and pathelement child elements, but in Ant >= 1.7 
>path will accept any ResourceCollection as long as it consists 
>of filesystem resources only.  In effect ResourceCollections 
>are transparent to tasks that make use of paths instead of filesets.
>
>-Matt
>
>> JP
>> 
>>
>---------------------------------------------------------------------
>> To unsubscribe, e-mail:
>> [EMAIL PROTECTED]
>> For additional commands, e-mail:
>> [EMAIL PROTECTED]
>> 
>> 
>
>
>
>               
>__________________________________
>Yahoo! Mail - PC Magazine Editors' Choice 2005 http://mail.yahoo.com
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED] For 
>additional commands, e-mail: [EMAIL PROTECTED]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to