Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Arthorne2008-11-25 16:01:17 +0000
committerJohn Arthorne2008-11-25 16:01:17 +0000
commit652b935f5a422ee537b0e22b9f5c5a9d2c475988 (patch)
tree2676c6f95b02d15d0b6015ccba485b05b66b2e12 /bundles/org.eclipse.equinox.p2.touchpoint.eclipse
parent10be996af4f5f29f1e45b1b8097a4f3d5c7429b3 (diff)
downloadrt.equinox.p2-652b935f5a422ee537b0e22b9f5c5a9d2c475988.tar.gz
rt.equinox.p2-652b935f5a422ee537b0e22b9f5c5a9d2c475988.tar.xz
rt.equinox.p2-652b935f5a422ee537b0e22b9f5c5a9d2c475988.zip
Bug 256037 Generalize NestedBundleAdvicev20081125_prePathFunMerge
Diffstat (limited to 'bundles/org.eclipse.equinox.p2.touchpoint.eclipse')
-rw-r--r--bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/EclipseTouchpoint.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/EclipseTouchpoint.java b/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/EclipseTouchpoint.java
index 289d48243..77f00417f 100644
--- a/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/EclipseTouchpoint.java
+++ b/bundles/org.eclipse.equinox.p2.touchpoint.eclipse/src/org/eclipse/equinox/internal/p2/touchpoint/eclipse/EclipseTouchpoint.java
@@ -22,8 +22,7 @@ import org.eclipse.equinox.internal.provisional.p2.engine.*;
import org.eclipse.equinox.internal.provisional.p2.metadata.IArtifactKey;
import org.eclipse.equinox.internal.provisional.p2.metadata.IInstallableUnit;
import org.eclipse.equinox.p2.publisher.PublisherInfo;
-import org.eclipse.equinox.p2.publisher.eclipse.BundleNestedAdvice;
-import org.eclipse.equinox.p2.publisher.eclipse.BundlesAction;
+import org.eclipse.equinox.p2.publisher.eclipse.*;
import org.eclipse.osgi.service.resolver.BundleDescription;
import org.eclipse.osgi.util.NLS;
@@ -194,7 +193,9 @@ public class EclipseTouchpoint extends Touchpoint {
private IInstallableUnit createBundleIU(IArtifactKey artifactKey, File bundleFile) {
BundleDescription bundleDescription = BundlesAction.createBundleDescription(bundleFile);
PublisherInfo info = new PublisherInfo();
- info.addAdvice(new BundleNestedAdvice());
- return BundlesAction.createBundleIU(bundleDescription, (Map) bundleDescription.getUserObject(), bundleFile.isDirectory(), artifactKey, info);
+ info.addAdvice(new AdviceFileAdvice(new Path(bundleFile.getAbsolutePath()), AdviceFileAdvice.BUNDLE_ADVICE_FILE));
+ String shape = bundleFile.isDirectory() ? IBundleShapeAdvice.DIR : IBundleShapeAdvice.JAR;
+ info.addAdvice(new BundleShapeAdvice(bundleDescription.getSymbolicName(), bundleDescription.getVersion(), shape));
+ return BundlesAction.createBundleIU(bundleDescription, artifactKey, info);
}
}

Back to the top