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=43348>.
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=43348

           Summary: add FileProvider interface for file providing resources
           Product: Ant
           Version: 1.7Alpha (nightly)
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Core
        AssignedTo: dev@ant.apache.org
        ReportedBy: [EMAIL PROTECTED]


In ant1.7, the only valid resource that provides filename is a FileResource, or
subclass. Other resources should be able to serve files. I propose we factor
this out into an interface that those tasks/types that want file sources should
be able to work with directly. Here it is, posted for discussion before I commit
the change

/**
 * This is an interface that resources that can provide a file should implement.
 * This is a refactoring of [EMAIL PROTECTED] FileResource}, to allow other 
resources
 * to act as sources of files (and to make components that only support
 * file-based resources from only support FileResource resources.
 */
public interface FileProvider {
    /**
     * Get the file represented by this Resource.
     * @return the file.
     */
    File getFile();
}

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to