diff options
author | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2009-03-16 17:16:27 +0000 |
---|---|---|
committer | rfeng <rfeng@13f79535-47bb-0310-9956-ffa450edef68> | 2009-03-16 17:16:27 +0000 |
commit | aca3e3b6814e7cc0755ecfba4729630a78b0019b (patch) | |
tree | cc662b3c27830ca17b0eac6bff6a56267f1621d9 /java/sca | |
parent | 4c0d03c1ba996b758e50476e1d7d253e6a6050d0 (diff) |
Allow bundle symbolic name to be introspected from the file
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@754960 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca')
-rw-r--r-- | java/sca/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/EquinoxHost.java | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/java/sca/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/EquinoxHost.java b/java/sca/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/EquinoxHost.java index c1c15db1c7..4918f165bc 100644 --- a/java/sca/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/EquinoxHost.java +++ b/java/sca/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/EquinoxHost.java @@ -356,12 +356,15 @@ public class EquinoxHost { } return libraryBundle; } - - public Collection<String> collectJarsFromManifestClassPath() { - return null; - } public void installBundle(URL bundleFile, String bundleName) throws MalformedURLException, BundleException { + if (bundleName == null) { + try { + bundleName = bundleName(file(bundleFile)); + } catch (IOException e) { + bundleName = null; + } + } Bundle bundle = allBundles.get(bundleName); if (bundle == null) { long installStart = currentTimeMillis(); |