You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

README 1.2 kB

12345678910111213141516171819202122232425262728293031323334
  1. Selector API
  2. ============
  3. Currently our filesets allow us to select a set of files based on name patterns.
  4. For instance we could create a set of all the files that end with ".java".
  5. However there are cases when you wish to select files based on their other
  6. attributes, such as if they are read only or if they are older than a specified
  7. date etc.
  8. The selector API is one such mechanism to do this. The selector API will allow
  9. you to build file sets based on criteria other than name. Some possible criteria
  10. would be
  11. Is the file readable?
  12. Is the file writeable?
  13. What date was the file modified on?
  14. What size is the file?
  15. Does the contents contain the string "magic"?
  16. If we end up supporting a VFS then we could expand the number of selectors
  17. considerably. A mock representation that has been proposed before is the
  18. following. Of course this is subject to change as soon as someone wants to
  19. tackle this action ;)
  20. <include name="**/*.java">
  21. <selector type="permission" value="r"/>
  22. <!-- could optionally be directory/or some other system specific features -->
  23. <selector type="type" value="file"/>
  24. <selector type="modify-time"
  25. operation="greater-than"
  26. value="29th Feb 2003"/>
  27. </include>