geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jdil...@apache.org
Subject svn commit: r712970 - in /geronimo/gshell/trunk/gshell-support/gshell-vfs/src/main/java/org/apache/geronimo/gshell/vfs: FileSystemAccess.java FileSystemAccessImpl.java
Date Tue, 11 Nov 2008 07:22:30 GMT
Author: jdillon
Date: Mon Nov 10 23:22:29 2008
New Revision: 712970

URL: http://svn.apache.org/viewvc?rev=712970&view=rev
Log:
Expose virtial fs creation to make sure we build them correctly

Modified:
    geronimo/gshell/trunk/gshell-support/gshell-vfs/src/main/java/org/apache/geronimo/gshell/vfs/FileSystemAccess.java
    geronimo/gshell/trunk/gshell-support/gshell-vfs/src/main/java/org/apache/geronimo/gshell/vfs/FileSystemAccessImpl.java

Modified: geronimo/gshell/trunk/gshell-support/gshell-vfs/src/main/java/org/apache/geronimo/gshell/vfs/FileSystemAccess.java
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-support/gshell-vfs/src/main/java/org/apache/geronimo/gshell/vfs/FileSystemAccess.java?rev=712970&r1=712969&r2=712970&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-support/gshell-vfs/src/main/java/org/apache/geronimo/gshell/vfs/FileSystemAccess.java
(original)
+++ geronimo/gshell/trunk/gshell-support/gshell-vfs/src/main/java/org/apache/geronimo/gshell/vfs/FileSystemAccess.java
Mon Nov 10 23:22:29 2008
@@ -50,4 +50,8 @@
     boolean isLocalFile(FileObject file);
 
     File getLocalFile(FileObject file) throws FileSystemException;
+
+    FileObject createVirtualFileSystem(String rootUri) throws FileSystemException;
+
+    FileObject createVirtualFileSystem(FileObject rootFile) throws FileSystemException;
 }

Modified: geronimo/gshell/trunk/gshell-support/gshell-vfs/src/main/java/org/apache/geronimo/gshell/vfs/FileSystemAccessImpl.java
URL: http://svn.apache.org/viewvc/geronimo/gshell/trunk/gshell-support/gshell-vfs/src/main/java/org/apache/geronimo/gshell/vfs/FileSystemAccessImpl.java?rev=712970&r1=712969&r2=712970&view=diff
==============================================================================
--- geronimo/gshell/trunk/gshell-support/gshell-vfs/src/main/java/org/apache/geronimo/gshell/vfs/FileSystemAccessImpl.java
(original)
+++ geronimo/gshell/trunk/gshell-support/gshell-vfs/src/main/java/org/apache/geronimo/gshell/vfs/FileSystemAccessImpl.java
Mon Nov 10 23:22:29 2008
@@ -150,4 +150,15 @@
             throw new FileSystemException(e);
         }
     }
+
+    public FileObject createVirtualFileSystem(final String rootUri) throws FileSystemException
{
+        assert rootUri != null;
+        FileObject file = getManager().resolveFile(rootUri);
+        return getManager().createVirtualFileSystem(file);
+    }
+
+    public FileObject createVirtualFileSystem(final FileObject rootFile) throws FileSystemException
{
+        assert rootFile != null;
+        return getManager().createVirtualFileSystem(rootFile);
+    }
 }
\ No newline at end of file



Mime
View raw message