[jboss-cvs] JBossAS SVN: r70738 - projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context/file.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Mar 11 11:09:37 EDT 2008


Author: alesj
Date: 2008-03-11 11:09:37 -0400 (Tue, 11 Mar 2008)
New Revision: 70738

Modified:
   projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context/file/FileSystemContext.java
Log:
Better debug msg + moving code which is not needed for jar handlilng.

Modified: projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context/file/FileSystemContext.java
===================================================================
--- projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context/file/FileSystemContext.java	2008-03-11 14:50:25 UTC (rev 70737)
+++ projects/vfs/trunk/src/main/java/org/jboss/virtual/plugins/context/file/FileSystemContext.java	2008-03-11 15:09:37 UTC (rev 70738)
@@ -175,20 +175,19 @@
       if (file == null)
          throw new IllegalArgumentException("Null file");
       
-      URI fileURL = getFileURI(file);
-      if (file.isFile() && JarUtils.isArchive(file.getName()))
+      String name = file.getName();
+      if (file.isFile() && JarUtils.isArchive(name))
       {
-         String name = file.getName();
          try
          {
             return new JarHandler(this, parent, file, file.toURL(), name);
          }
          catch (IOException e)
          {
-            log.debug(e.getMessage());
+            log.debug("Exception while trying handle file (" + name + ") as a jar: " + e.getMessage());
          }
       }
-      return createVirtualFileHandler(parent, file, fileURL);
+      return createVirtualFileHandler(parent, file, getFileURI(file));
    }
 
    /**




More information about the jboss-cvs-commits mailing list