commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Murdoch" <>
Subject Re: [VFS][PATCH] ClassLoader
Date Wed, 21 Aug 2002 13:29:25 GMT


Patch applied, thanks.

Something I'm thinking of doing, is replace FileObject.getRoot() and
FileObject.getParentLayer(), with a single FileObject.getFileSystem()
method.  I'm trying to avoid bloating FileObject too much, and given that
these methods return the same thing for every file in a file system, it
makes sense to move 'em.  It would also give us a good place to add file
system specific extensions.

With the Jar provider patch, send it in as-is if you like, I can tidy it up.

----- Original Message -----
From: Brian Olsen
To: Jakarta Commons Developers List
Sent: Wednesday, August 21, 2002 9:17 PM
Subject: [VFS][PATCH] ClassLoader

I finally finished moving the VFS class loader so that it complies with the
new location, test data location and code conventions (removed the m_ prefix

The patch changes the FileObject.getContent implementation so it doesn't
fail when called on a folder instead the individual calls in FileContent
that are illegal on a folder ( getInputStream, getOutputStream, etc ) fail.

If one of the FileObjects in the class loader's classpath is a file the
class loader will try to switch to the "jar" file scheme.

I have also added a unit test that checks the ClassLoader with each

This patch does not support all the features that come with jars, but the
ground work is done.
A jar provider is on the way but I have to make the same changes as where
made to this patch.

Have fun :-)
- Brian

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message