ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Magesh Umasankar" <umag...@apache.org>
Subject Re: cullers
Date Mon, 25 Feb 2002 21:51:30 GMT
From: "Magesh Umasankar" <umagesh@apache.org>

> 
> Let us say, I want to include all files
> that have a size > 4 K but exclude those
> that are readonly with names beginning
> with "Test" with extension "jar" whose size
> is greater than 5K
> 
> <fileset>
>     <include name="**/*">
>         <selector type="size"
>             operation="greater-than"
>             value="4K"/>
>     </include>
>     <exclude name="**/Test*.jar">
>         <selector type="size"
>             operation="greater-than"
>             value="5K"/>
>     </exclude>
> </fileset>
> 
> How would you do that in your proposal?
> 

Ooh, I missed the readonly part...

 <fileset>
     <include name="**/*">
         <selector type="size"
             operation="greater-than"
             value="4K"/>
     </include>
     <exclude name="**/Test*.jar">
         <selector type="permission"
             value="r"/>
         <selector type="size"
             operation="greater-than"
             value="5K"/>
     </exclude>
 </fileset>

Cheers,
Magesh

******************************************
  Why do we wash bath towels? Aren't we  *
  clean when we use them?                *
******************************************



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


Mime
View raw message