AW: [vfs] Google App Engine plug-in (GaeVFS)

2009-05-31 Thread Mario Ivankovits
Hi!

  http://gaevfs.appspot.com/

cool stuff!

 This is kind of cool. My first thought was that it might be nice to  
 include it in VFS itself, but after looking at 
 http://code.google.com/appengine/terms.html 
   I have my doubts that including this at Apache would be doable even  
 as an optional component. However, I see no reason it couldn't be  
 referenced on the web site and added to providers.xml to load if it is  
 present. Unless, of course, someone else has a different opinion.

There is no need to add this to VFS's providers.xml as a vfs plugin is able to 
provides its own vfs-providers.xml [1] which will be loaded by VFS then 
automatically.

Ciao,
Mario

[1] http://commons.apache.org/vfs/api.html

-
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org



Re: AW: [vfs] Google App Engine plug-in (GaeVFS)

2009-05-31 Thread Vince Bonfanti
There are two reasons for this:

  1. GAE does not set the os.arch or os.version system properties.
When Commons VFS initializes, it tries to do this (OS.java line 36), which
throws NullPointerExceptions:

* private* *static* *final* String *OS_ARCH* = System.*getProperty*(
os.arch).toLowerCase(Locale.*US*);
*private* *static* *final* String *OS_VERSION* = System.*getProperty*(
os.version).toLowerCase(Locale.*US*);

  The GaeVFS class sets these system properties to avoid the
NullPointerExceptions.

  2. GAE does not allow background threads, which causes RuntimeExceptions
if you try to initialize the default SoftRefFileCache. The GaeVFS class
binds in the LRUFilesCache instead.

All of this is documented within the GaeVFS source code.

On Sun, May 31, 2009 at 10:48 AM, Ralph Goers ralph.go...@dslextreme.comwrote:


 On May 31, 2009, at 2:44 AM, Mario Ivankovits wrote:



 There is no need to add this to VFS's providers.xml as a vfs plugin is
 able to provides its own vfs-providers.xml [1] which will be loaded by VFS
 then automatically.


 Thanks for reminding me.  Then I wonder what the requirement that the
 application do

 FileSystemManager fsManager = GaeVFS.getManager();

 is about.