Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Sievers2013-03-19 09:05:18 +0000
committerJan Sievers2013-03-20 12:38:32 +0000
commit95641dc62ed487bd9f5ed7efae2a1387bdfb72fe (patch)
tree2be07c719a10a226669e961422aa952b0d51c542
parentd2c04187e398751a75a7c53a0421cfdacd41373f (diff)
downloadorg.eclipse.tycho.extras-tycho-extras-0.17.x.tar.gz
org.eclipse.tycho.extras-tycho-extras-0.17.x.tar.xz
org.eclipse.tycho.extras-tycho-extras-0.17.x.zip
403716 add eclipse-plugin artifacts to eclipse-run runtime onlytycho-extras-0.17.x
-rw-r--r--tycho-eclipserun-plugin/src/main/java/org/eclipse/tycho/extras/eclipserun/EclipseRunMojo.java7
1 files changed, 4 insertions, 3 deletions
diff --git a/tycho-eclipserun-plugin/src/main/java/org/eclipse/tycho/extras/eclipserun/EclipseRunMojo.java b/tycho-eclipserun-plugin/src/main/java/org/eclipse/tycho/extras/eclipserun/EclipseRunMojo.java
index 3d05495..eb28e37 100644
--- a/tycho-eclipserun-plugin/src/main/java/org/eclipse/tycho/extras/eclipserun/EclipseRunMojo.java
+++ b/tycho-eclipserun-plugin/src/main/java/org/eclipse/tycho/extras/eclipserun/EclipseRunMojo.java
@@ -219,9 +219,10 @@ public class EclipseRunMojo extends AbstractMojo {
EquinoxInstallationDescription installationDesc = new DefaultEquinoxInstallationDescription();
for (P2ResolutionResult result : resolver.resolveDependencies(targetPlatform, null)) {
for (Entry entry : result.getArtifacts()) {
- installationDesc.addBundle(
- new DefaultArtifactKey(ArtifactKey.TYPE_ECLIPSE_PLUGIN, entry.getId(), entry.getVersion()),
- entry.getLocation());
+ if (ArtifactKey.TYPE_ECLIPSE_PLUGIN.equals(entry.getType())) {
+ installationDesc.addBundle(new DefaultArtifactKey(ArtifactKey.TYPE_ECLIPSE_PLUGIN, entry.getId(),
+ entry.getVersion()), entry.getLocation());
+ }
}
}
return installationFactory.createInstallation(installationDesc, work);

Back to the top