diff options
author | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2009-02-04 01:02:41 +0000 |
---|---|---|
committer | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2009-02-04 01:02:41 +0000 |
commit | b6a7235c65cf4aed9dbb8037118e7839c689a070 (patch) | |
tree | a6eaa6f7a4a47fae836eed6ad232bc1756e2bdf1 /java/sca/modules/node-launcher-equinox | |
parent | ddcba0ef91677f87880c846e17dba6c16bfe47b6 (diff) |
Add check for empty imports/exports/classpath
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@740543 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to '')
-rw-r--r-- | java/sca/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/NodeLauncherUtil.java | 12 |
1 files changed, 9 insertions, 3 deletions
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 bc8515a5d6..07eee1ef49 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 @@ -418,9 +418,15 @@ final class NodeLauncherUtil { bundleSymbolicName = LAUNCHER_EQUINOX_LIBRARIES; } attributes.putValue(BUNDLE_SYMBOLICNAME, bundleSymbolicName); - attributes.putValue(EXPORT_PACKAGE, exports.substring(0, exports.length() - 1)); - attributes.putValue(IMPORT_PACKAGE, imports.substring(0, imports.length() - 1)); - attributes.putValue(BUNDLE_CLASSPATH, classpath.substring(0, classpath.length() - 1)); + 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)); + } attributes.putValue(DYNAMICIMPORT_PACKAGE, "*"); return manifest; |