From 60085afd992888b260161504993ab39ff8392fab Mon Sep 17 00:00:00 2001 From: rfeng Date: Fri, 31 Jul 2009 05:51:00 +0000 Subject: Don't generate Import-Package header for the 3rd party jars so that either local package is used if there are split packages git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@799522 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/tuscany/sca/node/equinox/launcher/NodeLauncherUtil.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/java/sca/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/NodeLauncherUtil.java b/java/sca/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/NodeLauncherUtil.java index 47480635f0..c059811e3b 100644 --- a/java/sca/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/NodeLauncherUtil.java +++ b/java/sca/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/NodeLauncherUtil.java @@ -29,7 +29,6 @@ import static org.osgi.framework.Constants.BUNDLE_VENDOR; import static org.osgi.framework.Constants.BUNDLE_VERSION; import static org.osgi.framework.Constants.DYNAMICIMPORT_PACKAGE; import static org.osgi.framework.Constants.EXPORT_PACKAGE; -import static org.osgi.framework.Constants.IMPORT_PACKAGE; import static org.osgi.framework.Constants.REQUIRE_BUNDLE; import static org.osgi.framework.Constants.RESOLUTION_DIRECTIVE; import static org.osgi.framework.Constants.RESOLUTION_OPTIONAL; @@ -503,9 +502,11 @@ final class NodeLauncherUtil { if (exports.length() > 0) { attributes.putValue(EXPORT_PACKAGE, exports.substring(0, exports.length() - 1)); } + /* if (imports.length() > 0) { attributes.putValue(IMPORT_PACKAGE, imports.substring(0, imports.length() - 1)); } + */ if (classpath.length() > 0) { attributes.putValue(BUNDLE_CLASSPATH, classpath.substring(0, classpath.length() - 1)); } -- cgit v1.2.3