geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sppa...@apache.org
Subject svn commit: r452516 - /geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/GeronimoServerBehaviourDelegate.java
Date Tue, 03 Oct 2006 14:42:09 GMT
Author: sppatel
Date: Tue Oct  3 07:42:08 2006
New Revision: 452516

URL: http://svn.apache.org/viewvc?view=rev&rev=452516
Log:
fix start of app when model cannot load configID from plan

Modified:
    geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/GeronimoServerBehaviourDelegate.java

Modified: geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/GeronimoServerBehaviourDelegate.java
URL: http://svn.apache.org/viewvc/geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/GeronimoServerBehaviourDelegate.java?view=diff&rev=452516&r1=452515&r2=452516
==============================================================================
--- geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/GeronimoServerBehaviourDelegate.java
(original)
+++ geronimo/devtools/eclipse-plugin/trunk/plugins/org.apache.geronimo.st.core/src/org/apache/geronimo/st/core/GeronimoServerBehaviourDelegate.java
Tue Oct  3 07:42:08 2006
@@ -410,7 +410,7 @@
 			ModuleArtifactMapper mapper = ModuleArtifactMapper.getInstance();
 			mapper.addEntry(getServer(), module.getProject(), ids[0].getModuleID());
 
-			status = start(module);
+			status = start(ids);
 			if (!status.isOK()) {
 				doFail(status, Messages.START_FAIL);
 			}
@@ -503,6 +503,11 @@
 	protected IStatus start(IModule module) throws Exception {
 		TargetModuleID id = DeploymentUtils.getTargetModuleID(module, DeploymentCommandFactory.getDeploymentManager(getServer()));
 		IDeploymentCommand cmd = DeploymentCommandFactory.createStartCommand(new TargetModuleID[]
{ id }, module, getServer());
+		return cmd.execute(_monitor);
+	}
+	
+	protected IStatus start(TargetModuleID[] ids) throws Exception {
+		IDeploymentCommand cmd = DeploymentCommandFactory.createStartCommand(ids, null, getServer());
 		return cmd.execute(_monitor);
 	}
 



Mime
View raw message