ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jose Alberto Fernandez" <j_a_fernan...@yahoo.com>
Subject Re: cullers
Date Wed, 27 Feb 2002 06:50:19 GMT
From: "Adam Murdoch" <adammurdoch_ml@yahoo.com>

> > From: Rob Oxspring [mailto:roxspring@yahoo.com]
> > 
> > Bluesky:
> > Both of the proposals seem to be addressing the short sightedness of the
> > include/exclude mechanism which is great. Ideally I would like to see
> > include and exclude dumped in favour of something more generic:
> > 
> > <fileset dir="...">
> >     <and>
> >         <filesize size="4" units="k" when="more"/>
> >         <not><and>
> >             <filename pattern="Test*.jar"/>
> >             <perimission attrib="readonly"/>
> >             <filesize size="5" units="k" when="more">
> >         </and></not>
> >     </and>
> > </fileset>
> > 
> 
> This is a bloody good idea.  I'm gonna steal it to use in myrmidon.
> 

If you add to this <mappers> in their proper place:

<fileset dir="...">
  <map name="*.java" to="*.class">
   <where>
     <and>
        <filesize size="4" units="k" when="more"/>
        <not><and>
            <filename pattern="Test*.jar"/>
            <perimission attrib="readonly"/>
            <filesize size="5" units="k" when="more">
        </and></not>
     </and>
    </where>
  </map>
</fileset>

Presto! FQL (File Query Language).  :-)

Jose Alberto



--
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