MS Project 2013. All resources have "Material" property
Multi platform library to read and write schedule data
Brought to you by:
joniles
After open and read filed of the MS Project 2013 with lastest Git version MPXJ, I've noteced that all resources have "Material" property.
I.e resource.getType() doesn't return ResourceType.WORK, but should return - see the attached file.
It seеms to me, I found a solution to the problem:
Changes in a line (near number 2302) of the processResourceData() method in MPP14Reader.java:
resource.setType((MPPUtility.getShort(data, (data.length < 172) ? 14 : 170) == 0 ? ResourceType.WORK : ((metaData2[8] & 0x10) == 0) ? ResourceType.MATERIAL : ResourceType.COST));
I've applied a fix for this. The changes are available in Git, and will form part of the next MPXJ release.