use of org.eclipse.tycho.model.PluginRef in project tycho by eclipse.
the class CategoryXmlManipulator method updatePluginReferences.
private void updatePluginReferences(PomVersionChange pluginVersionChange, ProjectMetadata project) {
Category categoryXml = getCategoryXml(project);
if (categoryXml == null) {
return;
}
for (PluginRef plugin : categoryXml.getPlugins()) {
if (pluginVersionChange.getArtifactId().equals(plugin.getId()) && pluginVersionChange.getVersion().equals(plugin.getVersion())) {
logger.info(" category.xml//site/bundle[@id=" + plugin.getId() + "]/@version: " + pluginVersionChange.getVersion() + " => " + pluginVersionChange.getNewVersion());
plugin.setVersion(pluginVersionChange.getNewVersion());
}
}
}
Aggregations