]> git.argeo.org Git - gpl/argeo-slc.git/blobdiff - runtime/org.argeo.slc.support.equinox/src/main/java/org/argeo/slc/equinox/ExecutionCommandProvider.java
Improve executions and system calls
[gpl/argeo-slc.git] / runtime / org.argeo.slc.support.equinox / src / main / java / org / argeo / slc / equinox / ExecutionCommandProvider.java
index 9711c3c96ed4720b2a1e37c4e2888d59990359e9..8b9378e17267856d7a1a83269775a4f1cc950d1c 100644 (file)
@@ -58,9 +58,10 @@ public class ExecutionCommandProvider implements CommandProvider {
                                        + executionName);
 
                // Execute
-               if (SLC_WITH_REFRESH.equals(slcCommand))
-                       modulesManager.updateAndExecute(lastLaunch);
-               else if (SLC_NO_REFRESH.equals(slcCommand))
+               if (SLC_WITH_REFRESH.equals(slcCommand)) {
+                       modulesManager.upgrade(lastLaunch.getModuleNameVersion());
+                       modulesManager.execute(lastLaunch);
+               } else if (SLC_NO_REFRESH.equals(slcCommand))
                        modulesManager.execute(lastLaunch);
                else
                        throw new SlcException("Unrecognized SLC command " + slcCommand);