String projectId)
throws Exception {
System.out.println(
"Adding task '" + id + "' to project '" + projectId + "'...");
Task t = new Task();
t.setId(Integer.parseInt(id));
t.setName(name);
t.setStart(SimpleDateFormat.getInstance().parse(start));
t.setEnd(SimpleDateFormat.getInstance().parse(end));
System.out.println("Start: " + t.getStart());
System.out.println("End: " + t.getEnd());
AddTask cmd = new AddTask();
cmd.setTask(t);
cmd.setProjectId(Integer.parseInt(projectId));
prevayler.execute(cmd);