logger.logError("Unable to refresh Bnd workspace", e);
}
/* Version control ignores */
VersionControlIgnoresPluginTracker versionControlIgnoresPluginTracker = Plugin.getDefault().getVersionControlIgnoresPluginTracker();
Set<String> enabledIgnorePlugins = new BndPreferences().getVersionControlIgnoresPluginsEnabled(versionControlIgnoresPluginTracker, cnfJavaProject, null);
versionControlIgnoresPluginTracker.createProjectIgnores(enabledIgnorePlugins, cnfJavaProject, ProjectPaths.get(ProjectLayout.BND));
String templateIgnores = null;
try {
templateIgnores = templateConfig.getAttribute("ignores");
} catch (Exception e) {
logger.logError("Could not retrieve the 'ignores' property from the cnf template " + bsn, e);
}
if (templateIgnores != null && !templateIgnores.isEmpty()) {
versionControlIgnoresPluginTracker.addIgnores(enabledIgnorePlugins, cnfJavaProject.getProject().getLocation().toFile(), templateIgnores);
}
/* Headless build files */
HeadlessBuildPluginTracker headlessBuildPluginTracker = Plugin.getDefault().getHeadlessBuildPluginTracker();
Set<String> enabledPlugins = new BndPreferences().getHeadlessBuildPluginsEnabled(headlessBuildPluginTracker, null);
headlessBuildPluginTracker.setup(enabledPlugins, true, cnfJavaProject.getProject().getLocation().toFile(), true, enabledIgnorePlugins);
/* refresh the project; files were created outside of Eclipse API */
cnfProject.getProject().refreshLocal(IResource.DEPTH_INFINITE, null);
}