[jboss-cvs] JBossAS SVN: r61169 - trunk/system/src/main/org/jboss/system/server/profile/basic.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Tue Mar 6 20:15:39 EST 2007


Author: scott.stark at jboss.org
Date: 2007-03-06 20:15:39 -0500 (Tue, 06 Mar 2007)
New Revision: 61169

Modified:
   trunk/system/src/main/org/jboss/system/server/profile/basic/ProfileImpl.java
Log:
There is no reason to go through the VFS.getVFS call as the applicationDir is a VirtualFile.

Modified: trunk/system/src/main/org/jboss/system/server/profile/basic/ProfileImpl.java
===================================================================
--- trunk/system/src/main/org/jboss/system/server/profile/basic/ProfileImpl.java	2007-03-06 23:11:32 UTC (rev 61168)
+++ trunk/system/src/main/org/jboss/system/server/profile/basic/ProfileImpl.java	2007-03-07 01:15:39 UTC (rev 61169)
@@ -302,9 +302,7 @@
             // TODO: this could check metadata files modifications as well
          }
          // Now check for additions
-         VFS deployVFS = VFS.getVFS(applicationDir.toURI());
-         VirtualFile deployDir = deployVFS.getRoot();
-         List<VirtualFile> children = deployDir.getChildren();
+         List<VirtualFile> children = applicationDir.getChildren();
          for(VirtualFile vf : children)
          {
             if( applications.containsKey(vf.getPathName()) == false )




More information about the jboss-cvs-commits mailing list