Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Niefer2010-04-23 19:58:48 +0000
committerAndrew Niefer2010-04-23 19:58:48 +0000
commite8cfb0de35f0660ce195f27cabd0762c74e50e6d (patch)
tree0ac56d077495265ade6399b682fe2b6b1e58cc85 /bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/ant
parent386d2f6c6da38eeac681149813e82c2224f43c31 (diff)
downloadrt.equinox.p2-e8cfb0de35f0660ce195f27cabd0762c74e50e6d.tar.gz
rt.equinox.p2-e8cfb0de35f0660ce195f27cabd0762c74e50e6d.tar.xz
rt.equinox.p2-e8cfb0de35f0660ce195f27cabd0762c74e50e6d.zip
bug 310318 - don't remove IUs that had no artifacts when artifact filter is used
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/ant')
-rw-r--r--bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/ant/RepoTasksTests.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/ant/RepoTasksTests.java b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/ant/RepoTasksTests.java
index 037c23683..64588efaa 100644
--- a/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/ant/RepoTasksTests.java
+++ b/bundles/org.eclipse.equinox.p2.tests/src/org/eclipse/equinox/p2/tests/ant/RepoTasksTests.java
@@ -55,6 +55,10 @@ public class RepoTasksTests extends AbstractAntProvisioningTest {
AntTaskElement removeIU = new AntTaskElement(REMOVE_IU_TASK);
removeIU.addElement(getRepositoryElement(destinationRepo, TYPE_BOTH));
removeIU.addElement(getIUElement("anotherplugin", null));
+ AntTaskElement iuElement = new AntTaskElement("iu");
+ iuElement.addAttribute("query", "");
+ iuElement.addAttribute("artifacts", "(format=packed)");
+ removeIU.addElement(iuElement);
addTask(removeIU);
runAntTask();
@@ -62,6 +66,7 @@ public class RepoTasksTests extends AbstractAntProvisioningTest {
IMetadataRepository metadata = loadMetadataRepository(destinationRepo);
IInstallableUnit iu = getIU(metadata, "anotherplugin");
assertNull(iu);
+ assertNotNull(getIU(metadata, "anotherfeature.feature.group"));
IArtifactRepository artifacts = getArtifactRepositoryManager().loadRepository(destinationRepo, null);
IQueryResult keys = artifacts.query(new ArtifactKeyQuery(null, "anotherplugin", null), null);

Back to the top