Not all project calendars are read in for Project 2013 files
Multi platform library to read and write schedule data
Brought to you by:
joniles
All Project Calendars do not seem to be read consistently from mpp files created by Project 2013. For example: in the attached "2013-Main-Test-Small.mpp" only a single calendar is read; whereas by saving the same file in 2007 format MPXJ successfully reads 7 calendars.
ProjectReader reader = new MPPReader();
ProjectFile project = reader.read("2013-Main-Test-Small.mpp");
for (ProjectCalendar calendar : project.getCalendars()) {
System.out.println("Calendar: " + calendar.getName());
// Only the single "Standard" calendar is read in as opposed to the 7 total calendars read from the 2007 file
}
To be more specific, the 2013 file read is MISSING calendars whereas the 2007 file read seems fine.
Fix for this bug:
https://sourceforge.net/u/scap-ah/mpxj/ci/23f608097096dbecc9e22a6095d3d8a2eaa66e47/
Thanks for the patch. It looks like I'd already fixed this... let me know if the code in Git doesn't work for you!