ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Magesh Umasankar" <umag...@apache.org>
Subject Selector API - Syntax Change Proposal
Date Sun, 27 Jan 2002 18:04:46 GMT
Hi,
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"
             operation="greater-than"
             value="29th Feb 2003"/>
 </include>

The following is a slight modification of the idea that Tim Dawson
had provided earlier
(http://marc.theaimsgroup.com/?t=101167322200012&r=1&w=2)

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

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 (http://marc.theaimsgroup.com/?t=100591829400008&r=1&w=2)
proposal making its way in.

What do you think?

Cheers,
Magesh




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