infoPListTemplate = ProjectTemplate.loadProjectTemplateNamed("MiscTemplates", "FrameworkInfoPList");
}
else {
infoPListTemplate = ProjectTemplate.loadProjectTemplateNamed("MiscTemplates", "ApplicationInfoPList");
}
infoPListTemplate.addInput(new ProjectInput("buildProperties", projectAdapter.getBuildProperties()));
targetContainer.refreshLocal(IResource.DEPTH_ZERO, null);
infoPListTemplate.createProjectContents(project, targetContainer, new NullProgressMonitor());
IFile infoPList = targetContainer.getFile(new Path("Info.plist"));
infoPList.refreshLocal(IResource.DEPTH_ZERO, null);