commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 36158] New: - [VFS] classpath: provider, similar to res:, but across the entire classpath
Date Fri, 12 Aug 2005 05:49:15 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=36158>.
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=36158

           Summary: [VFS] classpath: provider, similar to res:, but across
                    the entire classpath
           Product: Commons
           Version: unspecified
          Platform: Other
        OS/Version: other
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: VFS
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: hoju@visi.com


See the following thread:
http://www.mail-archive.com/commons-user@jakarta.apache.org/msg12233.html

Seems like this would require (as Mario called it) a CompositeFileObject (cfo)
to represent multiple instances of the same package on the classpath and return
all resources for each of those distinct locations as if they were one.  So, for
the package com.mycompany.myapp existing in both a jar file in, say WEB-INF/lib
and also in WEB-INF/classes, cfo.getChildren() would return resources from both
locations as if they were children of a single FileObject of type directory.

> But there are a couple of problems, e.g. what if a entry is a file in one jar
> and a directory in another? What should the CompositeFileObject say when using
> getType() then?

I find that to be an unlikely circumstance.  However, in that case we can either
throw an exception or treat it as a directory if at least one of the resources
is a directory and return any that aren't directories in the getChildren(). 
Probably still ambiguities with that, but I think it should be a solveable problem.

I'm not really sure how to hook in this CompositeFileObject into VFS?  I'd like
to implement this, but will need some hints to get started.


Jake

-- 
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: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message