diff --git a/tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/BaselineServiceImpl.java b/tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/BaselineServiceImpl.java index cc049a7c68..2ebd4931f4 100644 --- a/tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/BaselineServiceImpl.java +++ b/tycho-core/src/main/java/org/eclipse/tycho/core/osgitools/BaselineServiceImpl.java @@ -27,6 +27,7 @@ import java.util.Map; import java.util.Map.Entry; +import org.apache.commons.io.FilenameUtils; import org.codehaus.plexus.component.annotations.Component; import org.codehaus.plexus.component.annotations.Requirement; import org.codehaus.plexus.logging.Logger; @@ -85,7 +86,8 @@ public Map getProjectBaseline(Collection result = new LinkedHashMap<>(); for (Map.Entry reactorArtifact : reactor.entrySet()) { - IArtifactDescriptor descriptor = reactorArtifact.getValue().getArtifactDescriptor(); + IP2Artifact value = reactorArtifact.getValue(); + IArtifactDescriptor descriptor = value.getArtifactDescriptor(); Entry baselineDescriptorEntry = getBaselineDescriptor( baselineArtifacts, descriptor); @@ -93,10 +95,10 @@ public Map getProjectBaseline(Collection getProjectBaseline(Collection units = new ArrayList<>(); - for (IInstallableUnit unit : reactorArtifact.getValue().getInstallableUnits()) { + for (IInstallableUnit unit : value.getInstallableUnits()) { IInstallableUnit baselineUnit = getBaselineUnit(baselineUnits, unit.getId(), unit.getVersion()); if (baselineUnit != null) { units.add(baselineUnit); @@ -126,6 +128,17 @@ public Map getProjectBaseline(Collection getBaselineDescriptor( List baselineArtifacts, IArtifactDescriptor descriptor) {