]> git.argeo.org Git - gpl/argeo-slc.git/commitdiff
Adapt to new launch structure
authorMathieu Baudier <mbaudier@argeo.org>
Fri, 13 Mar 2009 13:37:55 +0000 (13:37 +0000)
committerMathieu Baudier <mbaudier@argeo.org>
Fri, 13 Mar 2009 13:37:55 +0000 (13:37 +0000)
git-svn-id: https://svn.argeo.org/slc/trunk@2259 4cfe0d0a-d680-48aa-b62c-e0a02a3f76cc

runtime/org.argeo.slc.support.equinox/src/main/java/org/argeo/slc/equinox/ExecutionCommandProvider.java

index ca49e8fdc6b8db7370f79ed26d0343b2d215c5c3..a63708286ce9bad66d75d4bab8b7679c5a49fecd 100644 (file)
@@ -2,8 +2,8 @@ package org.argeo.slc.equinox;
 
 import java.util.List;
 
+import org.argeo.slc.execution.ExecutionFlowDescriptor;
 import org.argeo.slc.execution.ExecutionModule;
-import org.argeo.slc.process.SlcExecution;
 import org.eclipse.osgi.framework.console.CommandInterpreter;
 import org.eclipse.osgi.framework.console.CommandProvider;
 
@@ -14,9 +14,6 @@ public class ExecutionCommandProvider implements CommandProvider {
                String moduleName = ci.nextArgument();
                String executionName = ci.nextArgument();
                
-               SlcExecution slcExecution = new SlcExecution();
-               slcExecution.getAttributes().put("slc.flows", executionName);
-
                ExecutionModule module = null;
                for (ExecutionModule moduleT : executionModules) {
                        if(moduleT.getName().equals(moduleName)){
@@ -26,8 +23,10 @@ public class ExecutionCommandProvider implements CommandProvider {
                        }
                }
 
+               ExecutionFlowDescriptor descriptor = new ExecutionFlowDescriptor();
+               descriptor.setName(executionName);
                if(module!=null)
-                       module.execute(slcExecution);
+                       module.execute(descriptor);
                
                return null;
        }