Author: maartenc
Date: Mon Feb 19 13:53:49 2007
New Revision: 509348

URL: http://svn.apache.org/viewvc?view=rev&rev=509348
Log:
Attempt to fix the failing VFS tests in gump.

Modified:
    
incubator/ivy/core/trunk/src/java/org/apache/ivy/plugins/repository/vfs/VfsRepository.java
    
incubator/ivy/core/trunk/test/java/org/apache/ivy/plugins/repository/vfs/VfsTestHelper.java

Modified: 
incubator/ivy/core/trunk/src/java/org/apache/ivy/plugins/repository/vfs/VfsRepository.java
URL: 
http://svn.apache.org/viewvc/incubator/ivy/core/trunk/src/java/org/apache/ivy/plugins/repository/vfs/VfsRepository.java?view=diff&rev=509348&r1=509347&r2=509348
==============================================================================
--- 
incubator/ivy/core/trunk/src/java/org/apache/ivy/plugins/repository/vfs/VfsRepository.java
 (original)
+++ 
incubator/ivy/core/trunk/src/java/org/apache/ivy/plugins/repository/vfs/VfsRepository.java
 Mon Feb 19 13:53:49 2007
@@ -83,7 +83,11 @@
                         * Using StandardFileSystemManager lets us specify 
which schemes to support as well as 
                         * providing a mechanism to change this support without 
recompilation.
                         */
-                       result = new StandardFileSystemManager();
+                       result = new StandardFileSystemManager() {
+                               protected void configurePlugins() throws 
FileSystemException {
+                                       // disable automatic loading potential 
unsupported extensions 
+                               }
+                       };
                        
result.setConfiguration(getClass().getResource(IVY_VFS_CONFIG));
                        result.init();
 

Modified: 
incubator/ivy/core/trunk/test/java/org/apache/ivy/plugins/repository/vfs/VfsTestHelper.java
URL: 
http://svn.apache.org/viewvc/incubator/ivy/core/trunk/test/java/org/apache/ivy/plugins/repository/vfs/VfsTestHelper.java?view=diff&rev=509348&r1=509347&r2=509348
==============================================================================
--- 
incubator/ivy/core/trunk/test/java/org/apache/ivy/plugins/repository/vfs/VfsTestHelper.java
 (original)
+++ 
incubator/ivy/core/trunk/test/java/org/apache/ivy/plugins/repository/vfs/VfsTestHelper.java
 Mon Feb 19 13:53:49 2007
@@ -21,6 +21,7 @@
 import java.util.ArrayList;
 import java.util.List;
 
+import org.apache.commons.vfs.FileSystemException;
 import org.apache.commons.vfs.impl.StandardFileSystemManager;
 import org.apache.ivy.Ivy;
 import org.apache.ivy.util.FileUtil;
@@ -48,7 +49,11 @@
        
        public VfsTestHelper() throws Exception {
                // setup and initialize VFS
-               fsManager = new StandardFileSystemManager();
+               fsManager = new StandardFileSystemManager() {
+                       protected void configurePlugins() throws 
FileSystemException {
+                               // disable automatic loading potential 
unsupported extensions 
+                       }
+               };
                
fsManager.setConfiguration(getClass().getResource(VFS_CONF).toString());
                fsManager.init();
                


Reply via email to