@Override
protected Object doExecute() throws Exception {
ServerConnection connection = connect();
AbstractCommand command = new CommandRedeploy();
List<String> commandArgs = new LinkedList<String>();
if (moduleName != null) {
commandArgs.add(moduleName);
}
if (modulePlan != null) {
commandArgs.add(modulePlan);
}
if (moduleIds != null) {
commandArgs.addAll(moduleIds);
}
BaseCommandArgs args = new BaseCommandArgs(commandArgs.toArray(new String[commandArgs.size()]));
command.execute(this, connection, args);
return null;
}