You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2003/05/25 06:50:26 UTC
DO NOT REPLY [Bug 20222] New: -
[PATCH] TypeSelector for choosing directories/regular files
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20222>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=20222
[PATCH] TypeSelector for choosing directories/regular files
Summary: [PATCH] TypeSelector for choosing directories/regular
files
Product: Ant
Version: 1.6Alpha (nightly)
Platform: Other
OS/Version: Other
Status: NEW
Severity: Enhancement
Priority: Other
Component: Core tasks
AssignedTo: dev@ant.apache.org
ReportedBy: jefft@apache.org
Hi,
Attached is a patch implementing a <type> Selector, which lets one select only
directories:
<filetype src="${src}">
<type type="dir"/>
</filetype>
Or only regular files, with <type type="file"/>
I found this useful in conjunction with the <different> selector, which regards
directories as always different. Possibly this is a separate bug, but I thought
a generic 'type' selector would be a useful addition anyway.
The idea of a 'type' selector could easily be extended further to include:
- is file readable
- is file writeable
- file exists
- file is hidden
Feedback on whether/how to do this appreciated.
Thanks,
--Jeff