summaryrefslogtreecommitdiffstats
path: root/sca-java-2.x/trunk/modules/node-launcher-equinox/src/main/java/org/apache
diff options
context:
space:
mode:
authorantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2010-06-25 12:05:30 +0000
committerantelder <antelder@13f79535-47bb-0310-9956-ffa450edef68>2010-06-25 12:05:30 +0000
commit7b2bc4f51a7623804215c1ebd1c95748a6761149 (patch)
treee1790d970933086e36aaa6386c119233e166dcee /sca-java-2.x/trunk/modules/node-launcher-equinox/src/main/java/org/apache
parent84224f4f575d39eb3e3a2a906a8b4733973287d8 (diff)
Update to also support running OSGi with the agregated tuscany-base jar
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@957908 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'sca-java-2.x/trunk/modules/node-launcher-equinox/src/main/java/org/apache')
-rw-r--r--sca-java-2.x/trunk/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/EquinoxHost.java2
-rw-r--r--sca-java-2.x/trunk/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/NodeLauncherUtil.java5
2 files changed, 6 insertions, 1 deletions
diff --git a/sca-java-2.x/trunk/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/EquinoxHost.java b/sca-java-2.x/trunk/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/EquinoxHost.java
index 90c89fda70..f82e855abb 100644
--- a/sca-java-2.x/trunk/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/EquinoxHost.java
+++ b/sca-java-2.x/trunk/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/EquinoxHost.java
@@ -294,7 +294,7 @@ public class EquinoxHost {
for (int i = 0, n = bundleFiles.size(); i < n; i++) {
URL bundleFile = bundleFiles.get(i);
String bundleName = bundleNames.get(i);
- if (bundleName.contains("org.eclipse.jdt.junit")) {
+ if (bundleName.contains("org.eclipse.jdt.junit") || bundleName.contains("org.apache.tuscany.sca.base")) {
continue;
}
installBundle(bundleFile, bundleName);
diff --git a/sca-java-2.x/trunk/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/NodeLauncherUtil.java b/sca-java-2.x/trunk/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/NodeLauncherUtil.java
index 43d5965cc7..851df85d35 100644
--- a/sca-java-2.x/trunk/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/NodeLauncherUtil.java
+++ b/sca-java-2.x/trunk/modules/node-launcher-equinox/src/main/java/org/apache/tuscany/sca/node/equinox/launcher/NodeLauncherUtil.java
@@ -86,6 +86,7 @@ import org.osgi.framework.Constants;
*/
final class NodeLauncherUtil {
private static final String NODE_API_BUNDLE = "org.apache.tuscany.sca.node.api";
+ private static final String BASE_BUNDLE = "org.apache.tuscany.sca.base";
private static final Logger logger = Logger.getLogger(NodeLauncherUtil.class.getName());
@@ -129,6 +130,10 @@ final class NodeLauncherUtil {
bundle = b;
break;
}
+ if (b.getSymbolicName().contains(BASE_BUNDLE)) {
+ bundle = b;
+ break;
+ }
}
if (bundle == null) {
throw new IllegalStateException("Bundle " + NODE_API_BUNDLE + " is not installed");