return serializeProject(project,false);
}
public ModifiedMSPDIWriter serializeProject(Project project,boolean globalIdsOnly) throws Exception{
if (globalIdsOnly)
makeGLobal(project);
ModifiedMSPDIWriter projectData=new ModifiedMSPDIWriter();
ProjectFile projectFile = new ProjectFile();
projectData.setProjectFile(projectFile);
projectData.setProjityProject(project);
//this doesn't appear in 2007 version of mpxj projectData.setMicrosoftProjectCompatibleOutput(true);
projectFile.setAutoTaskUniqueID(true);
projectFile.setAutoResourceUniqueID(true);
//project
ProjectHeader projectHeader=projectFile.getProjectHeader();