[seam-commits] Seam SVN: r7391 - trunk/src/jbas5/org/jboss/seam/as5/vfs.

seam-commits at lists.jboss.org seam-commits at lists.jboss.org
Thu Feb 7 14:20:19 EST 2008


Author: alesj
Date: 2008-02-07 14:20:19 -0500 (Thu, 07 Feb 2008)
New Revision: 7391

Modified:
   trunk/src/jbas5/org/jboss/seam/as5/vfs/VFSScanner.java
Log:
Fix last '/' assumption.

Modified: trunk/src/jbas5/org/jboss/seam/as5/vfs/VFSScanner.java
===================================================================
--- trunk/src/jbas5/org/jboss/seam/as5/vfs/VFSScanner.java	2008-02-07 10:40:12 UTC (rev 7390)
+++ trunk/src/jbas5/org/jboss/seam/as5/vfs/VFSScanner.java	2008-02-07 19:20:19 UTC (rev 7391)
@@ -172,7 +172,11 @@
       else
       {
          String rootPathName = root.getPathName();
-         int rootPathNameLength = rootPathName.length() + 1; // past last '/'
+         int rootPathNameLength = rootPathName.length();
+         // past last '/'
+         if (rootPathName.endsWith("/"))
+            rootPathNameLength++;
+
          List<VirtualFile> children = root.getChildrenRecursively();
          for (VirtualFile child : children)
          {




More information about the seam-commits mailing list