//System.out.println("baseline " + baseline + " " + new Date(start) + " " + new Date(end) + " " + value);
Assignment baselineAssignment = getBaselineAssignment(baseline, true); // get or create baseline assignment
// update the task schedule too
TaskSchedule schedule = baselineAssignment.getTaskScheduleOfAssignment();
long baselineStart = schedule.getStart();
long baselineFinish = schedule.getFinish();
if (baselineStart == 0 || baselineStart > start)
schedule.setStart(start);
if (baselineFinish == 0 || baselineFinish < end)
schedule.setEnd(end);
baselineAssignment.setWorkInterval(start,end,value);
}
}
}