[Jboss-cvs] JBossAS SVN: r55517 - branches/MC_VDF_WORK/system/src/main/org/jboss/deployers/plugins

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Fri Aug 11 02:40:14 EDT 2006


Author: scott.stark at jboss.org
Date: 2006-08-11 02:40:12 -0400 (Fri, 11 Aug 2006)
New Revision: 55517

Modified:
   branches/MC_VDF_WORK/system/src/main/org/jboss/deployers/plugins/DefaultGraphBuilder.java
Log:
Add the deployment contexts to the graph as verticies

Modified: branches/MC_VDF_WORK/system/src/main/org/jboss/deployers/plugins/DefaultGraphBuilder.java
===================================================================
--- branches/MC_VDF_WORK/system/src/main/org/jboss/deployers/plugins/DefaultGraphBuilder.java	2006-08-11 06:39:01 UTC (rev 55516)
+++ branches/MC_VDF_WORK/system/src/main/org/jboss/deployers/plugins/DefaultGraphBuilder.java	2006-08-11 06:40:12 UTC (rev 55517)
@@ -43,6 +43,7 @@
       Graph<DeploymentContext> graph = new Graph<DeploymentContext>();
       DeploymentContext dc = deployment.getRootContext();
       Vertex<DeploymentContext> v = new Vertex<DeploymentContext>(dc.getFile().getName(), dc);
+      graph.addVertex(v);
       depthFirst(graph, v, dc.getSubDeployments());
       return graph;
    }
@@ -54,10 +55,8 @@
       {
          DeploymentContext dc = children.get(n);
          Vertex<DeploymentContext> v = new Vertex<DeploymentContext>(dc.getFile().getName(), dc);
+         graph.addVertex(v);
          graph.addEdge(parent, v, 0);
       }
-      // If there were
-      if( children.size() == 0 )
-         graph.addVertex(parent);
    }
 }




More information about the jboss-cvs-commits mailing list