return true;
}
public void execute() throws Exception {
TaskManager taskManager = getTaskManager();
if (mode == LIST_TASKS) {
String [] taskIds = taskManager.getTaskIds();
System.out.println("Tasks:");
for (int i=0; i<taskIds.length; i++)
System.out.println(" " + taskIds[i]);
System.out.println();
}
else if (mode == DESCRIBE_TASK) {
TaskDef taskDef = taskManager.getTaskDefinition(moduleName);
System.out.println(taskDef);
}
else if (mode == RUN_TASK) {
Task task = taskManager.getTask(moduleName);
System.out.println("Loading parameters...");
Map inputs = parseInputs(task);
printParams(inputs, "Loaded:");