geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From djen...@apache.org
Subject svn commit: r393911 - /geronimo/branches/1.1/modules/deploy-jsr88/src/java/org/apache/geronimo/deployment/plugin/local/StartCommand.java
Date Thu, 13 Apr 2006 20:14:35 GMT
Author: djencks
Date: Thu Apr 13 13:14:33 2006
New Revision: 393911

URL: http://svn.apache.org/viewcvs?rev=393911&view=rev
Log:
fix some object name problems, this could use review

Modified:
    geronimo/branches/1.1/modules/deploy-jsr88/src/java/org/apache/geronimo/deployment/plugin/local/StartCommand.java

Modified: geronimo/branches/1.1/modules/deploy-jsr88/src/java/org/apache/geronimo/deployment/plugin/local/StartCommand.java
URL: http://svn.apache.org/viewcvs/geronimo/branches/1.1/modules/deploy-jsr88/src/java/org/apache/geronimo/deployment/plugin/local/StartCommand.java?rev=393911&r1=393910&r2=393911&view=diff
==============================================================================
--- geronimo/branches/1.1/modules/deploy-jsr88/src/java/org/apache/geronimo/deployment/plugin/local/StartCommand.java
(original)
+++ geronimo/branches/1.1/modules/deploy-jsr88/src/java/org/apache/geronimo/deployment/plugin/local/StartCommand.java
Thu Apr 13 13:14:33 2006
@@ -31,7 +31,7 @@
 import org.apache.geronimo.gbean.AbstractName;
 
 /**
- * @version $Rev: 383519 $ $Date$
+ * @version $Rev:392614 $ $Date$
  */
 public class StartCommand extends CommandSupport {
     private final Kernel kernel;
@@ -67,12 +67,14 @@
                     configurationManager.startConfiguration(moduleID);
 
                     // Determine the child modules of the configuration
-                    List kids = loadChildren(kernel, objectName);
+                    //TODO might be a hack
+                    String configName = abstractName.getArtifact().toString();
+                    List kids = loadChildren(kernel, configName);
 
                     // Build a response obect containg the started configuration and a list
of it's contained modules
                     TargetModuleIDImpl id = new TargetModuleIDImpl(modules[i].getTarget(),
objectName,
                             (String[]) kids.toArray(new String[kids.size()]));
-                    if (isWebApp(kernel, objectName)) {
+                    if (isWebApp(kernel, configName)) {
                         id.setType(ModuleType.WAR);
                     }
                     if (id.getChildTargetModuleID() != null) {



Mime
View raw message