[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
[tycho-dev] tycho-versions-plugin does not consider source-features
|
Hello Tycho team,
I am not sure if this is a bug or an intended behavior.
When I run the tycho-versions-plugin (0.26.0) on a project with
packaging 'eclipse-repository' which contains a category.xml with a
source-feature-entry (the source feature is generated using the
source-feature-plugin), that entry is not considered during a change
of the version. After looking into the CategoryXmlManipulator of the
plugin, I created a small workaround which solves this issue for me.
In the updateFeatureReferences-method I check for both, original and
source-feature-id (starting at line 52):
for (SiteFeatureRef feature : categoryXml.getFeatures()) {
String featureId = featureVersionChange.getArtifactId();
String srcFeatureId = featureId + ".source";
if ((featureId.equals(feature.getId()) ||
srcFeatureId.equals(feature.getId()))
&&
featureVersionChange.getVersion().equals(feature.getVersion())) {
Best regards,
Jakob