}
getLogger().debug("</incremental build>");
}
protected void createInfoPlist(IContainer targetContainer) throws Exception {
ProjectTemplate infoPListTemplate;
IProject project = getProject();
ProjectAdapter projectAdapter = (ProjectAdapter) project.getAdapter(ProjectAdapter.class);
if (projectAdapter.isFramework()) {
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);
infoPList.setDerived(true, null);
}