ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 20222] New: - [PATCH] TypeSelector for choosing directories/regular files
Date Sun, 25 May 2003 04:50:26 GMT
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

Mime
View raw message