From 6dac536bc05f48b1898134f47d1a7290ca283672 Mon Sep 17 00:00:00 2001 From: dj Date: Thu, 3 Nov 2011 11:24:21 -0400 Subject: Added test case for bug 362692. --- .../p2/tests/planner/AbstractPlannerTest.java | 44 +- .../equinox/p2/tests/planner/Bug362692.java | 128 ++++ .../bootProfile.profile/1320249157454.profile.gz | Bin 0 -> 1370982 bytes .../bootProfile.profile/1320261982041.profile.gz | Bin 0 -> 1371061 bytes .../bootProfile.profile/1320270552610.profile.gz | Bin 0 -> 1371355 bytes .../testData/bug362692/repo/content.xml | 726 +++++++++++++++++++++ .../testData/bug362692/shared/content.jar | Bin 0 -> 2093366 bytes 7 files changed, 893 insertions(+), 5 deletions(-) create mode 100644 bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/Bug362692.java create mode 100644 bundles/org.eclipse.equinox.p2.tests/testData/bug362692/p2/org.eclipse.equinox.p2.engine/profileRegistry/bootProfile.profile/1320249157454.profile.gz create mode 100644 bundles/org.eclipse.equinox.p2.tests/testData/bug362692/p2/org.eclipse.equinox.p2.engine/profileRegistry/bootProfile.profile/1320261982041.profile.gz create mode 100644 bundles/org.eclipse.equinox.p2.tests/testData/bug362692/p2/org.eclipse.equinox.p2.engine/profileRegistry/bootProfile.profile/1320270552610.profile.gz create mode 100644 bundles/org.eclipse.equinox.p2.tests/testData/bug362692/repo/content.xml create mode 100644 bundles/org.eclipse.equinox.p2.tests/testData/bug362692/shared/content.jar diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/AbstractPlannerTest.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/AbstractPlannerTest.java index 76819b131..46758010b 100644 --- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/AbstractPlannerTest.java +++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/AbstractPlannerTest.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2010 IBM Corporation and others. + * Copyright (c) 2010, 2011 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -10,12 +10,11 @@ *******************************************************************************/ package org.eclipse.equinox.p2.tests.planner; -import org.eclipse.equinox.internal.p2.director.ProfileChangeRequest; - import java.io.File; import java.lang.reflect.Field; -import java.util.Collection; -import java.util.Iterator; +import java.net.URI; +import java.util.*; +import org.eclipse.equinox.internal.p2.director.ProfileChangeRequest; import org.eclipse.equinox.internal.p2.engine.*; import org.eclipse.equinox.p2.engine.*; import org.eclipse.equinox.p2.metadata.IInstallableUnit; @@ -42,6 +41,41 @@ public abstract class AbstractPlannerTest extends AbstractProvisioningTest { */ protected abstract String getProfileId(); + protected IProfile getProfile() { + return profile; + } + + /* + * Take the given plan and compress additons/removals so they look like updates. + * Good for viewing while debugging. + */ + protected Collection compress(IProvisioningPlan plan) { + Map result = new HashMap(); + Operand[] operands = ((ProvisioningPlan) plan).getOperands(); + for (int i = 0; i < operands.length; i++) { + if (!(operands[i] instanceof InstallableUnitOperand)) + continue; + InstallableUnitOperand operand = (InstallableUnitOperand) operands[i]; + String id = operand.first() == null ? operand.second().getId() : operand.first().getId(); + InstallableUnitOperand existing = result.get(id); + if (existing == null) { + result.put(id, operand); + } else { + IInstallableUnit first = existing.first() == null ? operand.first() : existing.first(); + IInstallableUnit second = existing.second() == null ? operand.second() : existing.second(); + result.put(id, new InstallableUnitOperand(first, second)); + } + } + return result.values(); + } + + protected ProvisioningContext getContext(Collection repoLocations) { + ProvisioningContext result = new ProvisioningContext(getAgent()); + result.setMetadataRepositories(repoLocations == null ? new URI[0] : repoLocations.toArray(new URI[repoLocations.size()])); + result.setArtifactRepositories(new URI[0]); + return result; + } + /* (non-Javadoc) * @see org.eclipse.equinox.p2.tests.AbstractProvisioningTest#setUp() */ diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/Bug362692.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/Bug362692.java new file mode 100644 index 000000000..71fe40b99 --- /dev/null +++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/planner/Bug362692.java @@ -0,0 +1,128 @@ +/******************************************************************************* + * Copyright (c) 2011 IBM Corporation and others. + * All rights reserved. This program and the accompanying materials + * are made available under the terms of the Eclipse Public License v1.0 + * which accompanies this distribution, and is available at + * http://www.eclipse.org/legal/epl-v10.html + * + * Contributors: + * IBM Corporation - initial API and implementation + *******************************************************************************/ +package org.eclipse.equinox.p2.tests.planner; + +import java.net.URI; +import java.util.*; +import org.eclipse.core.runtime.*; +import org.eclipse.equinox.p2.engine.IProvisioningPlan; +import org.eclipse.equinox.p2.engine.ProvisioningContext; +import org.eclipse.equinox.p2.metadata.IInstallableUnit; +import org.eclipse.equinox.p2.metadata.Version; +import org.eclipse.equinox.p2.planner.IPlanner; +import org.eclipse.equinox.p2.planner.IProfileChangeRequest; +import org.eclipse.equinox.p2.query.*; +import org.eclipse.equinox.p2.tests.TestActivator; + +public class Bug362692 extends AbstractPlannerTest { + + // path to our data + protected String getTestDataPath() { + return "testData/bug362692"; + } + + // profile id + protected String getProfileId() { + return "bootProfile"; + } + + public void testInstall() { + IPlanner planner = createPlanner(); + + // this is the set of IUs we expect in the final result - highest version only + Set expected = new HashSet(); + IQueryResult queryResult = repo.query(QueryUtil.createIUQuery("PluginA", Version.createOSGi(1, 1, 1, null)), new NullProgressMonitor()); + expected.addAll(queryResult.toSet()); + queryResult = repo.query(QueryUtil.createIUQuery("PluginB", Version.createOSGi(1, 1, 2, null)), new NullProgressMonitor()); + expected.addAll(queryResult.toSet()); + queryResult = repo.query(QueryUtil.createIUQuery("PluginC", Version.createOSGi(1, 1, 3, null)), new NullProgressMonitor()); + expected.addAll(queryResult.toSet()); + queryResult = repo.query(QueryUtil.createIUQuery("PluginD", Version.createOSGi(1, 1, 4, null)), new NullProgressMonitor()); + expected.addAll(queryResult.toSet()); + queryResult = repo.query(QueryUtil.createIUQuery("PluginE", Version.createOSGi(1, 1, 5, null)), new NullProgressMonitor()); + expected.addAll(queryResult.toSet()); + + // create the actual plan - install everything in the repo as optional (mimic the dropins folder) + Set toAdd = new HashSet(); + IQueryResult allIUs = repo.query(QueryUtil.createIUAnyQuery(), new NullProgressMonitor()); + // we don't want to re-install units which are already installed in the profile so remove them. (this is what the reconciler does) + for (Iterator iter = allIUs.iterator(); iter.hasNext();) { + IInstallableUnit iu = iter.next(); + queryResult = getProfile().query(QueryUtil.createIUQuery(iu.getId(), iu.getVersion()), new NullProgressMonitor()); + if (queryResult.isEmpty()) + toAdd.add(iu); + else + System.out.println("Already installed: " + iu.getId() + " " + iu.getVersion()); + } + validate(expected, toAdd); + + // set the metadata repositories on the provisioning context. one for the dropins and one for the shared area + Collection repoURLs = new ArrayList(); + repoURLs.add(repo.getLocation()); + repoURLs.add(new Path(getTestDataPath()).append("shared").toFile().toURI()); + ProvisioningContext context = getContext(repoURLs); + context.setExtraInstallableUnits(new ArrayList(toAdd)); + IProfileChangeRequest actualChangeRequest = createProfileChangeRequest(toAdd, null, null); + IProvisioningPlan plan = planner.getProvisioningPlan(actualChangeRequest, context, new NullProgressMonitor()); + Collection compressedPlan = compress(plan); + for (Iterator iter = compressedPlan.iterator(); iter.hasNext();) { + System.out.println("Plan: " + iter.next()); + } + validate(expected, plan); + } + + /* + * All of the expected IUs should either already be installed in the profile (and not be removed) + * or in the list of additions. + */ + private void validate(Collection expected, Collection toAdd) { + MultiStatus errors = new MultiStatus(TestActivator.PI_PROV_TESTS, IStatus.OK, "Errors while validating plan.", null); + for (IInstallableUnit unit : expected) { + IQuery query = QueryUtil.createIUQuery(unit.getId(), unit.getVersion()); + // already in the profile? + IQueryResult queryResult = getProfile().query(query, new NullProgressMonitor()); + if (queryResult.isEmpty()) { + // not in the profile, should be an incoming addition then + if (!toAdd.contains(unit)) { + errors.add(new Status(IStatus.ERROR, TestActivator.PI_PROV_TESTS, unit.getId() + " " + unit.getVersion() + " isn't in the profile and isn't an incoming addition.")); + } + } else { + // expected IU is already in the profile + } + } + assertOK("Errors while validating plan.", errors); + } + + /* + * All of the expected IUs should either already be installed in the profile (and not be removed) + * or in the plan as an addition. + */ + private void validate(Collection expected, IProvisioningPlan plan) { + MultiStatus errors = new MultiStatus(TestActivator.PI_PROV_TESTS, IStatus.OK, "Errors while validating plan.", null); + for (IInstallableUnit unit : expected) { + IQuery query = QueryUtil.createIUQuery(unit.getId(), unit.getVersion()); + // already in the profile? + IQueryResult queryResult = getProfile().query(query, new NullProgressMonitor()); + if (queryResult.isEmpty()) { + // not in the profile, should be an incoming addition then + if (plan.getAdditions().query(query, new NullProgressMonitor()).isEmpty()) { + errors.add(new Status(IStatus.ERROR, TestActivator.PI_PROV_TESTS, unit.getId() + " " + unit.getVersion() + " isn't in the profile and isn't an incoming addition.")); + } + } else { + // IU is in the profile, ensure we aren't removing it + if (!plan.getRemovals().query(query, new NullProgressMonitor()).isEmpty()) { + errors.add(new Status(IStatus.ERROR, TestActivator.PI_PROV_TESTS, unit.getId() + " " + unit.getVersion() + " is in the profile but is being removed.")); + } + } + } + assertOK("Errors while validating plan.", errors); + } +} diff --git a/bundles/org.eclipse.equinox.p2.tests/testData/bug362692/p2/org.eclipse.equinox.p2.engine/profileRegistry/bootProfile.profile/1320249157454.profile.gz b/bundles/org.eclipse.equinox.p2.tests/testData/bug362692/p2/org.eclipse.equinox.p2.engine/profileRegistry/bootProfile.profile/1320249157454.profile.gz new file mode 100644 index 000000000..65b983ea5 Binary files /dev/null and b/bundles/org.eclipse.equinox.p2.tests/testData/bug362692/p2/org.eclipse.equinox.p2.engine/profileRegistry/bootProfile.profile/1320249157454.profile.gz differ diff --git a/bundles/org.eclipse.equinox.p2.tests/testData/bug362692/p2/org.eclipse.equinox.p2.engine/profileRegistry/bootProfile.profile/1320261982041.profile.gz b/bundles/org.eclipse.equinox.p2.tests/testData/bug362692/p2/org.eclipse.equinox.p2.engine/profileRegistry/bootProfile.profile/1320261982041.profile.gz new file mode 100644 index 000000000..f71be1daf Binary files /dev/null and b/bundles/org.eclipse.equinox.p2.tests/testData/bug362692/p2/org.eclipse.equinox.p2.engine/profileRegistry/bootProfile.profile/1320261982041.profile.gz differ diff --git a/bundles/org.eclipse.equinox.p2.tests/testData/bug362692/p2/org.eclipse.equinox.p2.engine/profileRegistry/bootProfile.profile/1320270552610.profile.gz b/bundles/org.eclipse.equinox.p2.tests/testData/bug362692/p2/org.eclipse.equinox.p2.engine/profileRegistry/bootProfile.profile/1320270552610.profile.gz new file mode 100644 index 000000000..e849296c9 Binary files /dev/null and b/bundles/org.eclipse.equinox.p2.tests/testData/bug362692/p2/org.eclipse.equinox.p2.engine/profileRegistry/bootProfile.profile/1320270552610.profile.gz differ diff --git a/bundles/org.eclipse.equinox.p2.tests/testData/bug362692/repo/content.xml b/bundles/org.eclipse.equinox.p2.tests/testData/bug362692/repo/content.xml new file mode 100644 index 000000000..538c76d72 --- /dev/null +++ b/bundles/org.eclipse.equinox.p2.tests/testData/bug362692/repo/content.xml @@ -0,0 +1,726 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Bundle-Activator: plugind.Activator Require-Bundle: org.eclipse.ui,org.eclipse.core.runtime Manifest-Version: 1.0 Bundle-RequiredExecutionEnvironment: JavaSE-1.6 Bundle-Name: PluginD Bundle-Version: 1.0.0 Bundle-ManifestVersion: 2 Bundle-ActivationPolicy: lazy Bundle-SymbolicName: PluginD; singleton:=true + + + + + + + + + + + + + + + + + + + + + + + + + + + + Bundle-Activator: plugind.Activator Require-Bundle: org.eclipse.ui,org.eclipse.core.runtime Manifest-Version: 1.0 Bundle-RequiredExecutionEnvironment: JavaSE-1.6 Bundle-Name: PluginD Bundle-Version: 1.1.0 Bundle-ManifestVersion: 2 Bundle-ActivationPolicy: lazy Bundle-SymbolicName: PluginD; singleton:=true + + + + + + + + + + + + + + + + + + + + + + + + + + + + Bundle-Activator: plugind.Activator Require-Bundle: org.eclipse.ui,org.eclipse.core.runtime Manifest-Version: 1.0 Bundle-RequiredExecutionEnvironment: JavaSE-1.6 Bundle-Name: PluginD Bundle-Version: 1.1.1 Bundle-ManifestVersion: 2 Bundle-ActivationPolicy: lazy Bundle-SymbolicName: PluginD; singleton:=true + + + + + + + + + + + + + + + + + + + + + + + + + + + + Bundle-Activator: plugind.Activator Require-Bundle: org.eclipse.ui,org.eclipse.core.runtime Manifest-Version: 1.0 Bundle-RequiredExecutionEnvironment: JavaSE-1.6 Bundle-Name: PluginD Bundle-Version: 1.1.2 Bundle-ManifestVersion: 2 Bundle-ActivationPolicy: lazy Bundle-SymbolicName: PluginD; singleton:=true + + + + + + + + + + + + + + + + + + + + + + + + + + + + Bundle-Activator: plugind.Activator Require-Bundle: org.eclipse.ui,org.eclipse.core.runtime Manifest-Version: 1.0 Bundle-RequiredExecutionEnvironment: JavaSE-1.6 Bundle-Name: PluginD Bundle-Version: 1.1.3 Bundle-ManifestVersion: 2 Bundle-ActivationPolicy: lazy Bundle-SymbolicName: PluginD; singleton:=true + + + + + + + + + + + + + + + + + + + + + + + + + + + + Bundle-Activator: plugind.Activator Require-Bundle: org.eclipse.ui,org.eclipse.core.runtime Manifest-Version: 1.0 Bundle-RequiredExecutionEnvironment: JavaSE-1.6 Bundle-Name: PluginD Bundle-Version: 1.1.4 Bundle-ManifestVersion: 2 Bundle-ActivationPolicy: lazy Bundle-SymbolicName: PluginD; singleton:=true + + + + + + + + + + + + + + + + + + + + + + + + + + + + Bundle-Activator: pluginb.Activator Require-Bundle: org.eclipse.ui,org.eclipse.core.runtime Manifest-Version: 1.0 Bundle-RequiredExecutionEnvironment: JavaSE-1.6 Bundle-Name: PluginB Bundle-Version: 1.0.0 Bundle-ManifestVersion: 2 Bundle-ActivationPolicy: lazy Bundle-SymbolicName: PluginB; singleton:=true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Bundle-Activator: pluginb.Activator Require-Bundle: org.eclipse.ui,org.eclipse.core.runtime,PluginC;bundle-version="1.1.0",PluginD;bundle-version="1.1.0" Manifest-Version: 1.0 Bundle-RequiredExecutionEnvironment: JavaSE-1.6 Bundle-Name: PluginB Bundle-Version: 1.1.0 Bundle-ManifestVersion: 2 Bundle-ActivationPolicy: lazy Bundle-SymbolicName: PluginB; singleton:=true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Bundle-Activator: pluginb.Activator Require-Bundle: org.eclipse.ui,org.eclipse.core.runtime,PluginC;bundle-version="1.1.0",PluginD;bundle-version="1.1.0" Manifest-Version: 1.0 Bundle-RequiredExecutionEnvironment: JavaSE-1.6 Bundle-Name: PluginB Bundle-Version: 1.1.1 Bundle-ManifestVersion: 2 Bundle-ActivationPolicy: lazy Bundle-SymbolicName: PluginB; singleton:=true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Bundle-Activator: pluginb.Activator Require-Bundle: org.eclipse.ui,org.eclipse.core.runtime,PluginC;bundle-version="1.1.0",PluginD;bundle-version="1.1.0" Manifest-Version: 1.0 Bundle-RequiredExecutionEnvironment: JavaSE-1.6 Bundle-Name: PluginB Bundle-Version: 1.1.2 Bundle-ManifestVersion: 2 Bundle-ActivationPolicy: lazy Bundle-SymbolicName: PluginB; singleton:=true + + + + + + + + + + + + + + + + + + + + + + + + + + + + Bundle-Activator: plugine.Activator Require-Bundle: org.eclipse.ui,org.eclipse.core.runtime Manifest-Version: 1.0 Bundle-RequiredExecutionEnvironment: JavaSE-1.6 Bundle-Name: PluginE Bundle-Version: 1.0.0 Bundle-ManifestVersion: 2 Bundle-ActivationPolicy: lazy Bundle-SymbolicName: PluginE; singleton:=true + + + + + + + + + + + + + + + + + + + + + + + + + + + + Bundle-Activator: plugine.Activator Require-Bundle: org.eclipse.ui,org.eclipse.core.runtime Manifest-Version: 1.0 Bundle-RequiredExecutionEnvironment: JavaSE-1.6 Bundle-Name: PluginE Bundle-Version: 1.1.0 Bundle-ManifestVersion: 2 Bundle-ActivationPolicy: lazy Bundle-SymbolicName: PluginE; singleton:=true + + + + + + + + + + + + + + + + + + + + + + + + + + + + Bundle-Activator: plugine.Activator Require-Bundle: org.eclipse.ui,org.eclipse.core.runtime Manifest-Version: 1.0 Bundle-RequiredExecutionEnvironment: JavaSE-1.6 Bundle-Name: PluginE Bundle-Version: 1.1.1 Bundle-ManifestVersion: 2 Bundle-ActivationPolicy: lazy Bundle-SymbolicName: PluginE; singleton:=true + + + + + + + + + + + + + + + + + + + + + + + + + + + + Bundle-Activator: plugine.Activator Require-Bundle: org.eclipse.ui,org.eclipse.core.runtime Manifest-Version: 1.0 Bundle-RequiredExecutionEnvironment: JavaSE-1.6 Bundle-Name: PluginE Bundle-Version: 1.1.2 Bundle-ManifestVersion: 2 Bundle-ActivationPolicy: lazy Bundle-SymbolicName: PluginE; singleton:=true + + + + + + + + + + + + + + + + + + + + + + + + + + + + Bundle-Activator: plugine.Activator Require-Bundle: org.eclipse.ui,org.eclipse.core.runtime Manifest-Version: 1.0 Bundle-RequiredExecutionEnvironment: JavaSE-1.6 Bundle-Name: PluginE Bundle-Version: 1.1.3 Bundle-ManifestVersion: 2 Bundle-ActivationPolicy: lazy Bundle-SymbolicName: PluginE; singleton:=true + + + + + + + + + + + + + + + + + + + + + + + + + + + + Bundle-Activator: plugine.Activator Require-Bundle: org.eclipse.ui,org.eclipse.core.runtime Manifest-Version: 1.0 Bundle-RequiredExecutionEnvironment: JavaSE-1.6 Bundle-Name: PluginE Bundle-Version: 1.1.4 Bundle-ManifestVersion: 2 Bundle-ActivationPolicy: lazy Bundle-SymbolicName: PluginE; singleton:=true + + + + + + + + + + + + + + + + + + + + + + + + + + + + Bundle-Activator: plugine.Activator Require-Bundle: org.eclipse.ui,org.eclipse.core.runtime Manifest-Version: 1.0 Bundle-RequiredExecutionEnvironment: JavaSE-1.6 Bundle-Name: PluginE Bundle-Version: 1.1.5 Bundle-ManifestVersion: 2 Bundle-ActivationPolicy: lazy Bundle-SymbolicName: PluginE; singleton:=true + + + + + + + + + + + + + + + + + + + + + + + + + + + + Bundle-Activator: pluginc.Activator Require-Bundle: org.eclipse.ui,org.eclipse.core.runtime Manifest-Version: 1.0 Bundle-RequiredExecutionEnvironment: JavaSE-1.6 Bundle-Name: PluginC Bundle-Version: 1.0.0 Bundle-ManifestVersion: 2 Bundle-ActivationPolicy: lazy Bundle-SymbolicName: PluginC; singleton:=true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Bundle-Activator: pluginc.Activator Require-Bundle: org.eclipse.ui,org.eclipse.core.runtime,PluginD;bundle-version="1.1.0",PluginE;bundle-version="1.1.0" Manifest-Version: 1.0 Bundle-RequiredExecutionEnvironment: JavaSE-1.6 Bundle-Name: PluginC Bundle-Version: 1.1.0 Bundle-ManifestVersion: 2 Bundle-ActivationPolicy: lazy Bundle-SymbolicName: PluginC; singleton:=true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Bundle-Activator: pluginc.Activator Require-Bundle: org.eclipse.ui,org.eclipse.core.runtime,PluginD;bundle-version="1.1.0",PluginE;bundle-version="1.1.0" Manifest-Version: 1.0 Bundle-RequiredExecutionEnvironment: JavaSE-1.6 Bundle-Name: PluginC Bundle-Version: 1.1.1 Bundle-ManifestVersion: 2 Bundle-ActivationPolicy: lazy Bundle-SymbolicName: PluginC; singleton:=true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Bundle-Activator: pluginc.Activator Require-Bundle: org.eclipse.ui,org.eclipse.core.runtime,PluginD;bundle-version="1.1.0",PluginE;bundle-version="1.1.0" Manifest-Version: 1.0 Bundle-RequiredExecutionEnvironment: JavaSE-1.6 Bundle-Name: PluginC Bundle-Version: 1.1.2 Bundle-ManifestVersion: 2 Bundle-ActivationPolicy: lazy Bundle-SymbolicName: PluginC; singleton:=true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Bundle-Activator: pluginc.Activator Require-Bundle: org.eclipse.ui,org.eclipse.core.runtime,PluginD;bundle-version="1.1.0",PluginE;bundle-version="1.1.0" Manifest-Version: 1.0 Bundle-RequiredExecutionEnvironment: JavaSE-1.6 Bundle-Name: PluginC Bundle-Version: 1.1.3 Bundle-ManifestVersion: 2 Bundle-ActivationPolicy: lazy Bundle-SymbolicName: PluginC; singleton:=true + + + + + + + + + + + + + + + + + + + + + + + + + + + + Bundle-Activator: plugina.Activator Require-Bundle: org.eclipse.ui,org.eclipse.core.runtime Manifest-Version: 1.0 Bundle-RequiredExecutionEnvironment: JavaSE-1.6 Bundle-Name: PluginA Bundle-Version: 1.0.0 Bundle-ManifestVersion: 2 Bundle-ActivationPolicy: lazy Bundle-SymbolicName: PluginA; singleton:=true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Bundle-Activator: plugina.Activator Require-Bundle: org.eclipse.ui,org.eclipse.core.runtime,PluginB;bundle-version="1.1.0" Manifest-Version: 1.0 Bundle-RequiredExecutionEnvironment: JavaSE-1.6 Bundle-Name: PluginA Bundle-Version: 1.1.0 Bundle-ManifestVersion: 2 Bundle-ActivationPolicy: lazy Bundle-SymbolicName: PluginA; singleton:=true + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Bundle-Activator: plugina.Activator Require-Bundle: org.eclipse.ui,org.eclipse.core.runtime,PluginB;bundle-version="1.1.0" Manifest-Version: 1.0 Bundle-RequiredExecutionEnvironment: JavaSE-1.6 Bundle-Name: PluginA Bundle-Version: 1.1.1 Bundle-ManifestVersion: 2 Bundle-ActivationPolicy: lazy Bundle-SymbolicName: PluginA; singleton:=true + + + + + + diff --git a/bundles/org.eclipse.equinox.p2.tests/testData/bug362692/shared/content.jar b/bundles/org.eclipse.equinox.p2.tests/testData/bug362692/shared/content.jar new file mode 100644 index 000000000..b9e7d49dd Binary files /dev/null and b/bundles/org.eclipse.equinox.p2.tests/testData/bug362692/shared/content.jar differ -- cgit v1.2.3