ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Magesh Umasankar" <>
Subject Selector API - Syntax Change Proposal
Date Sun, 27 Jan 2002 18:04:46 GMT
The currently voted upon syntax for Selectors is:

 <include name="**/*.java">
   <selector type="permission" value="r"/>

   <!-- could optionally be directory/or some other system specific
features -->
   <selector type="type" value="file"/>
   <selector type="modify-time"
             value="29th Feb 2003"/>

The following is a slight modification of the idea that Tim Dawson
had provided earlier

<include name="**/*.java">
    <type equals="file"/>
    <modtime greaterthan="28-FEB-2001" negate="true"/>
    <permission equals="r"/>
    <modifytime lessthan="28-FEB-2003"/>

The FIleSelector API would have setEquals, setGreaterThan,
setLessThan and setNegate(boolean) methods.  No other
operation is necessary - hence having a separate
operation attribute is not needed.

Implementing the above syntax would depend on Conor's Polymorphic
Types (
proposal making its way in.

What do you think?


To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message