You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by Dean Hiller <de...@xsoftware.biz> on 2003/08/25 02:19:31 UTC

reverse FileSet utility?

Is there a reverse FileSet Utility somewhere in the code?  Writing an 
ant task and I want to take a FileSet and make it's inverse.  I couldn't 
find one.
thanks,
dean



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


Re: reverse FileSet utility?

Posted by Dean Hiller <de...@xsoftware.biz>.
actually I was looking for an easy way to take one FileSet and create 
another FileSet where everything was the opposite.  I needed to pass 
these FileSets to other ant tasks.  At any rate, I discovered a 
different method 5 seconds before your e-mail and just finished it.  It 
is not as clean as a
FileSet normal;
FileSet inverse = normal.getInverseFileSet();
call, but I think it will do fine for now.
thanks,
dean

Stefan Bodewig wrote:

>On Sun, 24 Aug 2003, Dean Hiller <de...@xsoftware.biz> wrote:
>
>  
>
>>Writing an ant task and I want to take a FileSet and make it's
>>inverse.
>>    
>>
>
>What is the inverse of a FileSet?
>
>The set of files that are not in the FileSet?  See the <not> selector
>or the getNotIncludedFiles and getExcludedFiles methods in
>DirectoryScanner.
>
>Stefan
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
>For additional commands, e-mail: dev-help@ant.apache.org
>
>
>  
>

Re: reverse FileSet utility?

Posted by Stefan Bodewig <bo...@apache.org>.
On Sun, 24 Aug 2003, Dean Hiller <de...@xsoftware.biz> wrote:

> Writing an ant task and I want to take a FileSet and make it's
> inverse.

What is the inverse of a FileSet?

The set of files that are not in the FileSet?  See the <not> selector
or the getNotIncludedFiles and getExcludedFiles methods in
DirectoryScanner.

Stefan

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