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 40259] New: - FileSet should include an attribute to specify not found behavior
Date Tue, 15 Aug 2006 21:00:00 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40259>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40259

           Summary: FileSet should include an attribute to specify not found
                    behavior
           Product: Ant
           Version: 1.6.5
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: rgeclipse@hotmail.com


FileSet should include an attribute to specify not found behavior.

Currently, if a FileSet is created with a dir attribute that points to a non-
existing dir, then ant fails.

I have run into many situations in which I'd prefer ant to just return an empty 
FileSet.

Therefore, I propose a notFound attribute for FileSet that would support at 
least the following two values:

fail (the current behavior)
empty (returns an empty FIleSet)

The default can be set to fail since that would duplicate current behavior.

If you are contemplating changing default behavior, I think that empty is a 
much better default than fail except for legacy issues.

Thanks,

Ross

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message